need help! EA does not work! - page 2

 
farrokhfa:

No order took palce and result is zero.

It places plenty of orders . . .

and the OrderModify() fails

2013.09.04 10:48:40 2007.06.07 10:00 farrokhfa EURUSD,H1: OrderModify() error - invalid stops

2013.09.04 10:48:40 2007.06.07 10:00 farrokhfa EURUSD,H1: OrderModify error 130

 
RaptorUK:

It places plenty of orders . . .

and the OrderModify() fails


for me it is:

2013.09.04 14:03:30 2013.09.03 23:30 Farrokh GBPUSD,M30: OrderSend() error - invalid stops

2013.09.04 14:03:30 2013.09.03 23:30 Farrokh GBPUSD,M30: OrderSend error 130

 
farrokhfa:

for me it is:

2013.09.04 14:03:30 2013.09.03 23:30 Farrokh GBPUSD,M30: OrderSend() error - invalid stops

2013.09.04 14:03:30 2013.09.03 23:30 Farrokh GBPUSD,M30: OrderSend error 130

For which Order ? what was the TP ? what was the SL ? what was Bid, Ask ? you need to add all these variables to your error reporting and when you Print() them make sure you use DoubleToStr(variable, Digits) to get the correct number of digits.
 
RaptorUK:
For which Order ? what was the TP ? what was the SL ? what was Bid, Ask ? you need to add all these variables to your error reporting and when you Print() them make sure you use DoubleToStr(variable, Digits) to get the correct number of digits.


I got rid of the problem. My mistake was about displacement of { and } of 'if' operator. I put them in right place and it did work.

Thank you very much...

 
farrokhfa:

I got rid of the problem. My mistake was about displacement of { and } of 'if' operator. I put them in right place and it did work.

Thank you very much...

Glad to hear you made some progress