Disliked{quote} As said earlier, the calculation of your MTF is completly wrong. Let's take your example of a 240 BAM on a M1 chart : When the indicator is plotting the histogram on a M1 bar (example 60 candles back or 1 hour ago), it uses the H4 value 60 bars back (according to your coding) ... which is about 2 weeks ago. Can you see the issue ? By re-reading your post above, I may have misunderstood. If the 240 is the BAM "look back" period applied to the current M1 chart, so that's fine. My statement above is only when the MTF is used (240 = H4).Ignored
1. It does not use iBar shift as the shift when using a different TF other than the current TF. *this is the main thing you are talking about and the main thing I can't address right now.
2. I separated the lookbackperiod to represent smoothing for the bars back and added an input ENUM chart timeframe to indicate the chart time period to calculate from, now it works across any TF, before it didn't even draw some TFs depending on the period, now it does, HOWEVER because as you said it does not have the proper coding for MTF if draws incorrectly on anything other than the current TF if selected as "current". If selected as anything other than "current" it's wrong. I understand.
Thanks for your observations and potential corrections to be made. Personally I can't address it right now....time and ability. Sorry.