Using multiple timeframes in code

Forums ProRealTime English forum ProOrder support Using multiple timeframes in code

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

    Hello Everybody,

     

    Hope someone can help me. For a while i was having no trouble with a tradingsystem that run on multiple timeframes. On the four hour chart it watsches the historic volatility and on the 5 minutes charts i watch the trend . The system has worked perfectly, but suddenly i got the error that there was a division by zero.

    I checked everything and pinpointed it to the coding i use to first check the 4 hour chart and use this as a condition in my 5 minute chart.

    The coding without multiple timeframes was:

    When i add the coding for the multple timerframes it now gives the error “divison by 0”. Does anybody know what i am doing wrong?

    kind regards,

    Jaldidee

    #171903

    A “division by zero”error is expected to be reported by a division,

    I can’t spot any division in your code, so it’s impossible to know the source.

    Maybe there’s a division in the indicator or in the missing code.

     

    #171912

    Check your “Moving Average” indicator’s code for any division.

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