When I want to have daily SMA indicator displayed over i.e. 10-min chart, then we have to add additional 1-day dataseries on chart, and then choose that dataseries as "input" for SMA indicator.
However, I am trying to achieve the following (to avoid adding additional subchart datafeed on chart, to avoid distortion):
1) Create indicator (so far this code: https://pastebin.com/KSRNRn5f )
2) Adding SMA on chart, and in "INPUT SERIES" , referring to that XYZ indicator.
3) choosing DAILY feed ( https://i.imgur.com/D6uvOhw.png ) so it will be set as the internal dataseries (with AddDataSeries function ) inside XYZ indicator, so it returned daily data.
However, the XYZ indicator's Value indexing is still resolved to 10-minute timeframe, thus, Value[0] refer to current 10min bar value, and Value[1] refer to previous 10min bar value. So, I couldnt achieve the result. So, any help will be appreciated, to make XYZ indicator to resolve it's Value to i.e Daily timeframe (thus, the SMA function had a "feed" of daily data).


Comment