I wrote this simple strategy as an exercise to get used to (and a bit more skilled in) programming ProOrder:
SMA = Average[20](close)
// short positions
IF open < SMA then
SELL 1 CONTRACT AT MARKET
endif
// long positions
IF open > SMA then
BUY 1 CONTRACT AT MARKET
endif
Unfortunately it only opens LONG positions, what’s wrong with my code?
Thank you.
Because SELL instruction is made to close the long positions.
If you want to launch short positions on market, you should use the SELLSHORT instruction instead.
Thanks Nicolas, I Always appreciate your help!