Take profit based on the entry

Forums ProRealTime English forum ProOrder support Take profit based on the entry

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

    Hi I am trying to set the target profit based on the difference from my entry and the lowest point of the last bar. Any idea why it is not working?

    if close[0]>open[1] then

    TL=30-(close[0]-lowest[1])

    buy 10 contracts at  market

    set target profit TL

    endif

    #182207

    In line 2 how can you be sure the prior LOW is lower than current CLOSE and that 30 is greater than that difference? I suggest that you use:

    Furthermore, what is 30? Is it a price difference or pips (in some cases it can be the same, but it’s better to code it correctly).
    If it’s pips then use:

    it will make no difference if used with DOW, DAX, etc…, but will make a huge one with most currency pairs.

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