Design Issue on Lowest and Highest functions impacts on Donchian Ichimoku

Forums ProRealTime English forum ProRealTime platform support Design Issue on Lowest and Highest functions impacts on Donchian Ichimoku

Viewing 4 posts - 16 through 19 (of 19 total)
  • #85747

    I think that it’s normal to get the same behavior with a loop through Lows and Highs than using other internal instructions. If the candlesticks don’t exist, the loop doesn’t pass on them and conditions are not checked.

    You can verify this assumption by storing the barindex in a variable between lines 6 and 7 for instance and compare it with the one found on your chart, you’ll then be able to verify if the empty candles are counted in the loop or not.

    1 user thanked author for this post.
    #85762

    Hi Nicolas,

    thanks! You’re perfectly right, I did obtain the results you’re talking about.

    #85796

    Good! Now we have a perfect understanding of what the code is doing when it meets “empty” candlestick.

    #94504

    If a data is calculated on time series, time should be the determinal of period of consideration for the calculation, eg. arithmetic means of 5 number of series of 0, 1, 3, 1, 3, 3 is 8/5 and of 6 numbers is 11/6. Skipping the undefined value of 0 as suggested is an error.

     

Viewing 4 posts - 16 through 19 (of 19 total)

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