Instruction introducing a stop order in x units. Pending orders must be re-placed at each new bar.
Syntax:
1 |
BUY AT x STOP |
Example :
1 2 3 4 5 6 |
myMACD = MACD[12,26,9](close) long = myMACD crosses over 0 IF long THEN BUY 1 LOT AT close+10 STOP ENDIF |