On M5 chart one bar is 5 minutes and for that bar indicator has only one value.
On M1 chart there are 5 bars in 5 minutes.
So, you have one M5 value and you have to project that value on 5 M1 bars.
Other than just copying M5 value to those 5 bars, what would be, in your opinion, "sensible" mapping function that will project M5 indicator value to M1?
If you can't find such function, then you will have to live with steps.
iBarShift(NULL,_Period,Time[i]);Should work?
tparimore: Can someone tell me if it is possible to add a 5 min MACD to a 1 min chart and have it look as if you where looking at it on the 5 min chart? | It's called a multi-timeframe indicator. (MTF) search the Code Base |
I am sorry I must not have been clear. I have searched the code base and I have only been able to find how to produce a MTF indicator using iBarshift. But, that cause a stair step result. Let me include a couple of pictures. To illustrate what I am saying.
Picture 1 shows what I desire. I want a 5 min MACD on the 1 min chart as seen below. Notice that the MACD looks identical on the M1 and M5 chart. But they are only identical on initialization and after changing to another TF then back to M1. I know M1 price and histogram doesn't match and that's ok.
What I am trying to avoid is the stair step view as seen in picture 2.
Thanks Again,
Tom
I am sorry I must not have been clear. I have searched the code base and I have only been able to find how to produce a MTF indicator using iBarshift. But, that cause a stair step result. Let me include a couple of pictures. To illustrate what I am saying.
Picture 1 shows what I desire. I want a 5 min MACD on the 1 min chart as seen below. Notice that the MACD looks identical on the M1 and M5 chart. But they are only identical on initialization and after changing to another TF then back to M1. I know M1 price and histogram doesn't match and that's ok.
What I am trying to avoid is the stair step view as seen in picture 2.
Thanks Again,
Tom
From what we can see on your picture1, you already have it, not ?
Is this describing what you are after?
Is this describing what you are after?
tparimore: What I am trying to avoid is the stair step view as seen in picture 2.
There is only one value per bar. So If you want the M5 indicator value on the M1 chart there must be a stair step. Same M5 value on 5 M1 bars.
It makes no sense to me to put M5 bar 5 (30 minutes ago) value on a M1 chart (6 minutes ago)
There is only one value per bar. So If you want the M5 indicator value on the M1 chart there must be a stair step. Same M5 value on 5 M1 bars.
It makes no sense to me to put M5 bar 5 (30 minutes ago) value on a M1 chart (6 minutes ago)
Right or Wrong, I like to see if the signal line is coming in asymptotic or at a nice angle when it approaches zero. A stair-step line always looks like a shallow angle.
Below is a picture of an RSI being shown across all time frames as they would appear (not stair-step). I think what I am looking to do is possible? ---Tom
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Can someone tell me if it is possible to add a 5 min MACD to a 1 min chart and have it look as if you where looking at it on the 5 min chart? By simply changing the timeframe to 5 with in the code yields the desired look on initialization and when I change to a higher timeframe chart and back to the M1 chart. But, on a new one minute bar it stops looking like a 5 min MACD. I know I can use iBarShift(NULL, MA_HTF, Time[i], false) to produce a stair step MACD. But, I want it to look smooth and not have to change back and forth between timeframes.
Kind Regards,
Tom
P.S. I am talking MT4