Calling an indicator

Forums ProRealTime English forum ProBuilder support Calling an indicator

Viewing 3 posts - 1 through 3 (of 3 total)
  • #243745

    Im new to the coding language in prorealtime and hope somebody could give me a hint on this issue.

    I have an indicator that draw stochastic divergence lines, see below.
    From an automatic trading robot I know I can CALL this indicator by:

    In my trading system that calls the indicator, how can I know exactly when a divergence line is drawn so I can make a decision if I want to buy or sell.
    Is it possible to find out from the myStoch variable that is returned in the CALL request, or, do I have to incorporate the indicator code into my trading robot and do SELL or BUY instead of drawsegment?

    #243747

    Use this modified version:

    then modify the calling line into:

    then use mySignal to know when a Divergence occurred (1=bullish,  -1=bearish).

     

    1 user thanked author for this post.
    #243749

    Thank you very much!

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

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