Adding a number of ranges for a number of bars
08.04.2022 06.56

Indicator Design Essentials for NinjaTrader 8

NinjaCoding friend


Hi Yuri,

On this video (link below) you talk about cum range. My question is what if I want to add the HI-LO of each bar for an X number of bars?

so something like this:

(Hi-Lo)[1] + (Hi-Lo)[2] + (Hi-Lo)[3] + (Hi-Lo)[4] + (Hi-Lo)[5]  etc. for an X number of bars.

I think it would be like a for loop maybe?

https://ninjacoding.net/mycourses/indicatordesign/indidesign/cumdayrange

  • Yuri Zolotarev
    08.04.2022 07:53

    Yes, you will need to use a for loop

  • NinjaCoding friend
    08.04.2022 18:02

    Thanks do you have an example shown in any of your courses?

  • NinjaCoding friend
    13.04.2022 17:54

    I found one where you explain it.

    https://www.udemy.com/course/ninjatrader/learn/lecture/10998322?start=795#questions