Indicator receives negative value – strategy stop

Forums ProRealTime English forum ProOrder support Indicator receives negative value – strategy stop

  • This topic has 4 replies, 3 voices, and was last updated 1 year ago by avatarJS.
Viewing 5 posts - 1 through 5 (of 5 total)
  • #195253

    Hi

    Can someone help with this issue. I am using the CCI as a overbought and oversold condition below -100 oversold and above 100 overbought. When the CCI value < -100 then the strategy stops because the indicator returns a negative value perhaps someone can make a suggestion as to how I can code around this?

    Thanks

    Johann

    #195265

    This code works correctly, no matter tha value CCI returns:

    1 user thanked author for this post.
    #195267

    Thanks Roberto I will try it.

    #195272

    Hi Roberto, so this example should be ok?

    #195274
    JS

    It works fine…

    After optimization x > 250… 😉

     

    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