profit target calc

Forums ProRealTime English forum ProOrder support profit target calc

Viewing 3 posts - 1 through 3 (of 3 total)
  • #47321

    Hi,

    How would I code the following please?

    On the bar that the BUY is triggered, calculate x = (close-open).

    Then make the pprofit = x.

    Thanks.

    #47327

    Hi Real Pro

    With such tight profit range it look like youa re coding a scalper?

    The bar the trade was opened can be calculated using (barindex-tradeindex). Thus you can use something like;

    TriggerBar = (barindex-tradeindex)

    TriggerRange = ABS(Close[TriggerBar] – Open[TriggerBar])

    Set Target pProfit = TriggerRange

    #47333

    Hi Juan, thanks.  I’m using on 5 minute bars, so not really scalping as such.  The trigger bar is a big breakout bar.

    I copy/pasted as presented above and it gave me an error.  Does it require some rejigging?

Viewing 3 posts - 1 through 3 (of 3 total)

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