ON MARKET condition in an indicator

Forums ProRealTime English forum ProOrder support ON MARKET condition in an indicator

Viewing 5 posts - 1 through 5 (of 5 total)
  • #92135

    Hi everyone,

    I am creating a very simple indicator for averaging down purposes. Its launched every day with different levels (grids) above from a levelZERO. The strategy (based in Nicholas’ averaging down example) always goes short. If the operation is positive, the next day start again a new levelZERO and the new grids above.

    My question is that if the strategy start accumulating contracts or is above to (it is still open at the end of the day), the next day I would like to keep the original levelZERO levels, since the operation is still open.

    With the strategy this is solve with the ON MARKET condition, but indicators do not allow OPEN/BUY commands. Anyone knows any trick to keep an indicator passive while ON MARKET, and start again when IS NOT ON MARKET???

    I am posting the indicator. It is very simple.

    Thanks in advance,

     

    #92145

    Without having a chance to test it now, I would say another indicator that receives 0 or 1 from a strategy and retains it for other indicators to retrieve.

    It doesn’t have to display anything on chart, just be CALLed from your indicator to return the 0 or 1 received from the strategy so that it may work or pause.

    But I am not sure this is possible.

    #92146

    Sorry, it won’t work, ProOrder cannot communicate with ProBuilder.

    CALLed indicators are a copy of what is on the chart. You can remove it from your chart and the strategy continues working.

    No way.

    #92148

    Hi Roberto,

    Thanks. I will create the selling (short) conditions in the indicator and will apply 0 or 1 to a successful trade, so next day will continue or not according to that 0 or 1.

    The strategy will work anyway, but I created the indicator to visualise the entry levels. In this case, I will have to imagine those entry levels according to the (n) day in which the first sell short occurred.

    Thanks so much,

    Juan

    #92149

    If this is just about creating an indicator that knows whether you are on the market or not then you just have to simulate the strategies orders in the indicator and create a flag that tells the indicator  whether you are on the market at the days close or not on the market at the days close. As Roberto says just switch a flag from 0 to 1 if a market entry condition is met and switch it to zero if a market exit condition is met.

    1 user thanked author for this post.
Viewing 5 posts - 1 through 5 (of 5 total)

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