I would like to addition a condition code, if last bar increase/decrease 30 point or 0.3%, then buy at market open. And sell it at this bar or next bar close?
May I know how to write? thanks.
if close[1] >30 then
buy 1 contract at market
endif
IF longonmarket AND (BarIndex – TradeIndex) = 1 THEN
SELL AT Market
ENDIF
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue