Instruction to close a short position.
Syntax:
1 |
EXITSHORT x SHARES |
Example :
1 2 3 4 5 6 7 8 9 10 11 |
myMACD = MACD[12,26,9](close) short = myMACD crosses under 0 exit = myMACD crosses over 0 IF NOT SHORTONMARKET AND short THEN SELLSHORT 1 LOT AT MARKET ENDIF IF SHORTONMARKET AND exit THEN EXITSHORT AT MARKET ENDIF |