Help with EA
I have written the following code to test a simple strategy. However, the trades shown are nowhere near what I want. Can anyone tell me what I'm doing wrong?
Ok,
First you need to check whether order is already at the place, when you try to open:
if ( longticket <= 0 ) { OrderSend(); } if ( shortticket <= 0 ) { OrderSend(); }
This will reduce the number of pendings, I believe=)
Next, you need to check if levels that you want to use are ok to use, I mean check the Stop Level distance.
I have written the following code to test a simple strategy. However, the trades shown are nowhere near what I want. Can anyone tell me what I'm doing wrong?