Hello,
Could you help me with a bit of code ?
Here is what I want to code :
If the price is between “R” and “S”
And that I am not in position, And that I have no order in progress
Then place 1 sell order on “R” and 1 purchase order on “S”.
If I’m in position then supress all the current order
Thank you in advance.
WingParticipant
Veteran
If close>S and close<R and onmarket=0 then
buy 1 lot at S limit
sellshort 1 lot at R limit
endif
Does that work?
Yes it is perfect.
thank you very much
Good evening,
What code should I use to take position only in 9:00 and 17:00 and close all positions at 22:00 ?
Thank you for your reply.