I have found inconsistency when plotting values from higher time frames on smaller time frames...most likely a knowledge gap perhaps? To make this easoer to explain i have had to illustrate a number of scenarios completing with the actual query area.
Thank you in advance for your time :-)
Plotting higher time frame Intraday values on trading time frame Intraday data series
2 charts GBPUSD 60Min, 10Min
5 EMA on 60Min Chart = Close[0]=150779
5 EMA on 10Min Chart with Secondary bars of period/type 60Min, Close[0]=150779
The last value from the 60Min close is carried for 6 10 bar intervals.
Fantastic that is great....you get a stepped series of lines....Just what is required.
HTF secondary bars code used:
init{
Add(PeriodType.Min,60);
}
protectedoverridevoid OnBarUpdate()
{
if((CurrentBar<1) || (BarsInProgress == 1)) return;
Value.Set(EMA(Closes,5)[0]);
}
}
Works great: Plotting this on a 60Min chart gives identical results to just using a EMA(GBPUSD 60MIN CLOSE, 5) as a test.
#Scenario 2
2 charts GBPUSD Daily, 60Min
Intraday to Daily
5 EMA on 1 Day - 365 days Chart = Close[0]=151420
5 EMA on 60Min Chart with Secondary bars of period/type 1 Day, Close[0]=151420
Great!
All synced - the last daily close is plotted on todays trading time frame - this is as expected today has not closed yet....
#Scenario 3
2 charts GBPUSD Weekly, 60Min
Intraday to Weekly
5 EMA on 1 Weekly - 365 days Chart = Close[0]=14922
5 EMA on 60Min Chart with Secondary bars of period/type 1 Week, Close[0]=14912
Cannot get them to sync... i am thinking that that the last closed week value should be plotted...
#Scenario 4
2 charts GBPUSD Weekly, Daily
Daily to Weekly
5 EMA on 1 Weekly - 365 days Chart = Close[0]=14922
5 EMA on Daily Chart with Secondary bars of period/type 1 Week, Close[0]=14922
GREAT
I have not experimented with monthly as yet
THE QUESTION:
Scenario 3 does not work as expected...any ideas how this can be resolved?
intraday to weekly -does not return the same values.
Using Weekly values is actually the most important thing here from a tehcnical analysis stand point for my studies. I need to able to call the values of weekly dynamic support and resistance from a lower intraday time frame - this is not yet an accurate process. In other words the weekly charts says x but calling the same calculationg from a intraday timse series say weekly = y not x....
Comment