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.