ProOrder – how to set variables when a stop is triggered

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15516 quote
    PhilippoPhilippo
    Participant
    Average

    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 quote
    PhilippoPhilippo
    Participant
    Average

    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)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

ProOrder – how to set variables when a stop is triggered


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Philippo @philipd Participant
Summary

This topic contains 1 reply,
has 1 voice, and was last updated by PhilippoPhilippo
9 years, 11 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 10/26/2016
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...