ProOrder – how to set variables when a stop is triggered

Forums ProRealTime English forum ProOrder support ProOrder – how to set variables when a stop is triggered

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

    Hi, I am setting a variable every time I exit a position in my system due to CCI in a certain position, this is a Technical Indicator driven exit. I also use stops to protect the capital, money management is important after all.

    But I would like to ensure, when I exit a position due to a stop, that a variable, say “Precursor” is reset to zero. I am able to do this in the Technical exit as the variable assignment is include in the condition (if..then..endif)

    I can tell ProOrder when to stop and limit but can’t actually get feedback once the event is triggered. How do I get notification that the stop is triggered or how do I get ProOrder to reset “Precursor” to zero?

     

    Thanks

    #15518

    Just a thought which I will try tomorrow,

    From the ProOrder manual “ONMARKET[1] is equal to 1 if you had an open position at the close of the previous bar, or 0 otherwise.”

    So I could test IF ONMARKET[1]=1 and ONMARKET=0 then Precursor=0 endif
    Which I will do tomorrow..

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