Code_condition for last bar changes

Forums ProRealTime English forum ProOrder support Code_condition for last bar changes

Viewing 2 posts - 1 through 2 (of 2 total)
  • #237249

    Hi

    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

     

     

    #237253

    There you go:

     

    2 users thanked author for this post.
Viewing 2 posts - 1 through 2 (of 2 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login