Design Issue on Lowest and Highest functions impacts on Donchian Ichimoku

Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • #85747 quote
    Nicolas
    Keymaster
    Master

    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.

    Etienne thanked this post
    #85762 quote
    Etienne
    Participant
    Average

    Hi Nicolas,

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

    #85796 quote
    Nicolas
    Keymaster
    Master

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

    #94504 quote
    rajiwas
    Participant
    Junior

    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)
  • You must be logged in to reply to this topic.

Design Issue on Lowest and Highest functions impacts on Donchian Ichimoku


Platform Support: Charts, Data & Broker Setup

New Reply
Author
author-avatar
Etienne @etienne Participant
Summary

This topic contains 18 replies,
has 6 voices, and was last updated by rajiwas
6 years, 11 months ago.

Topic Details
Forum: Platform Support: Charts, Data & Broker Setup
Language: English
Started: 11/22/2018
Status: Active
Attachments: 2 files
Logo Logo
Loading...