My friend,
The AccountNumber line should be:
Code: Select all
... + StringFormat("AccountNumber : %d\n", AccountNumber() );
StringConcatenate() does the job, but it is not the right way to do it.
And it is much better and easier to create a struct for your order data, like so:
Code: Select all
struct ORDER {
datetime openTime;
int ticket;
};
ORDER orders[];
//...
//...
orders[iOrder].openTime = OrderOpenTime();
if ( OrderSelect( orders[iOrder].ticket, SELECT_BY_TICKET ) ) { // bla bla }
//...
//...
datetime datetime800 = TimeCurrent()
You must have set #property strict at the top of your code. The compiler is giving you 'warnings', which is good. You should always create variables of same type as the value you are assigning. Eg. TimeCurrent() returns a 'datetime' not an 'int'. If you assign it to a variable of type 'int' and you have set #property strict, you get a warning that the compiler needs to do an implicit conversion from datetime to int.
Hope this helps.