Distinguishing between the entry price and the exit (stop) price

Forums ProRealTime English forum ProOrder support Distinguishing between the entry price and the exit (stop) price

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

    Let’s imagine I enter a trade at 12205

    I only want to add to the position at prices above the 1st entry

    My line of code is

    cond1 = close > tradeprice(1)

    However, when the first trade is stopped out before adding a second position, the algo, as written, is referencing the stop price and not the original entry price

    Rather than referencing tradeprice(1), what should I refer to?

    In intuitive terms, I want to reference entryprice1 and never “stopprice1” which if the original entry is stopped out is tradeprice(1)

    Many thanks

     

    #9773

    I’m not sure I understand .. tradeprice(1) always refer to the entry price level of the previous order, so why do you think it gives you the price where the trade has closed?

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