saving tradeprice when meet conditions

Forums ProRealTime English forum ProOrder support saving tradeprice when meet conditions

Viewing 6 posts - 1 through 6 (of 6 total)
  • #161868

    hi,

    anyone know if i can save tradeprices when it meets my conditions. For example,

    conditions = ………

    if conditions then

    ‘(save tradeprice) ”

    endif

    thank you

    #161872

    hi,

    i have gotten something at the moment but it seems to half work. see picture. the red tick is the correct one i am going for but after that there is 3 red crosses which is not what i what the codes to do because it does not meet my uptrend, c1 , macup , and habullcandle15 conditions. here are my codes.

     

    #161884

    You are triggering an order because of condition at line 10, so I suggest you GRAPH var[n] to see when, how and why it updates its value. I think the problem is located in this variable value.

    #161892

    my var[n] is changing. any ideas how i can fix it?

    #161901

    how do i find the barindex if line 3 satisfy?

     

    #161912

    Sorry i’d like to help, but I don’t understand what is the strategy? Your code is obscure to me… 🙂

    To save the tradeprice into a variable, just do this:

     

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

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