MACD on chart
Hi, is there a way we can have macd plotted in a chart in MTF?
I have two indocators called MACDTrad3 and MACD trad3!. I do now have the source code for them, but I'm sure it will make for interesting reading if we can plot a higher tf macd on the chart. These indicators don't plot the histogram but justthe lines.
Thank you and God bless.
One More Good MTF Candidate
AMA SLOPE would also make another good MTF indi.
It is great on its own but again would be another tool to cut through noise on lower TFs.
look here alpha24seven
Sorry that I missed those. Thank you for bringing them to my attention.
I had some problems compiling. I've never seen this error before. Any ideas?
i agree with everything you said, but i don't think i made myself clear enough.
keris formula doesn't look like that in real time (without refreshing the charts!), it looks more like that yellow line; if you refresh the charts, yes, everything looks fine - but then why won't we simply use a second chart with the higher timeframe... and confirm the indicator moves only on the higher timeframe?
from the moment you plot a mtf indicator on a lower timeframe, you have another way of averaging some data on that timeframe (and not on a higher tf). it's never gonna look like the original - but it can be approximated. so the question is, how to find the best formula for the closest approximation? and i think this answers your question... right?
Magenta is the Keris way of MTF MA
Golden line are the real values of a higher time frame MA on a lower time frame
As you can see, there is hardly a singe correct value of the aproximated one over a period of time, while Keris's formula gives at least one correct value per period. Anyway, formula for the aproximation in Metatrader would be :
If you try to apply this aproximation to moving average derived indicators (MACD for example), you will end up with big, and I mean BIG differences (I have seen a 7-8% difference of a 4H MACD on an 1H time frame)
Error in Code
I figured it out. This extra code was left in the file -- at the end. Just delete it, compile and voila'.
Excellent indicator BTW.
void drawLine(double lvl,string name, color Col )
ObjectCreate(name, OBJ_HLINE, WindowFind(name), Time, lvl,Time, lvl);
ObjectSet(name, OBJPROP_STYLE, STYLE_DOT);
ObjectSet(name, OBJPROP_COLOR, Col);
The yellow line is the "real MTF" moving average
There is no need to "refresh" any of the indicators on the picture
As for the rest, please read that post again
Need Mtf For This Indi
I've been wanting to have the ability to plot indicators from different timeframes on my chart
//| Fisher_m11.mq4 |
//| Copyright ฉ forexjr
//| Index of /cam06/fisher |
#property copyright "Copyright ฉ 23.07.2006 MartinG "
#property link "http://home.arcor.de/cam06/fisher"
//#property indicator_minimum -1
//#property indicator_maximum 1
#property indicator_buffers 3
#property indicator_color2 RoyalBlue
#property indicator_color3 Red
#property indicator_width2 0.5
#property indicator_width3 0.5
extern int RangePeriods=35;
extern double PriceSmoothing=0.3; // =0.67 bei Fisher_m10
extern double IndexSmoothing=0.3; // =0.50 bei Fisher_m10
//| Custom indicator initialization function |
Text=Text+" (rPeriods "+RangePeriods;
Text=Text+", pSmooth "+DoubleToStr(PriceSmoothing,2);
Text=Text+", iSmooth "+DoubleToStr(IndexSmoothing,2);
DrawStart=2*RangePeriods+4; // DrawStart= BarNumber calculated from left to right
Alert("Fish61: PriceSmothing factor has to be smaller 1!");
Alert("Fish61: PriceSmothing factor mustn''t be negative!");
//| Custom indicator deinitialization function |
//| Custom indicator iteration function |
Alert("Fish84: Not enough Bars loaded to calculate FisherIndicator with RangePeriods=",RangePeriods);
if (counted_bars<0) return(-1);
if (counted_bars>0) counted_bars--;
int Position=Bars-counted_bars; // Position = BarPosition calculated from right to left
int LeftNum1=Bars-Position; // when more bars are loaded the Position of a bar changes but not its LeftNum
//| Single Bar Calculation function |
int CalculateCurrentBar(int pos)
double LowestLow, HighestHigh, GreatestRange, MidPrice;
double PriceLocation, SmoothedLocation, FishIndex, SmoothedFish;
LowestLow = Low[Lowest(NULL,0,MODE_LOW,RangePeriods,pos)];
HighestHigh = High;
MidPrice = (High[pos]+Low[pos])/2;
// PriceLocation in current Range
PriceLocation= 2.0*PriceLocation - 1.0; // -> -1 < PriceLocation < +1
// Smoothing of PriceLocation
if (SmoothedLocation> 0.99) SmoothedLocation= 0.99; // verhindert, dass MathLog unendlich wird
if (SmoothedLocation<-0.99) SmoothedLocation=-0.99; // verhindert, dass MathLog minuns unendlich wird
else Alert("Fisher129: Unerlaubter Zustand bei Bar Nummer ",Bars-pos);
// Smoothing of FisherIndex
if (SmoothedFish>0) // up trend
else // else down trend
I am serious mladen...
I am a newbie and not a programmer, may be scrat's way is not perfect, but maybe i can use it. I will try it. If it useful, i'll use it. If it's not, i will look for again another great way or other indicator.
I have ever ask Codersguru about the similar thing.
My question to him was if i use 1 EMA in 30M TF, then in 1M TF it's must be 30 EMA.
And he said it was not like that. But i was not satisfied, maybe there is another way, so i find it in here. But if it is not useful, It's all right to me... . At least i know the result is.
BTW, thanks for the latest RSIOMA mladen, i like it very much, and thanks to fxbs and Kalenzo too, for this great indicator.
The trouble is this:
That idea with MA's is probably the oldest idea in technical analysis
I do agree that places like TSD are places for sharing ideas, and knowledge
But please no one should try to do it this way :
Come on, what the hell are we trying to do here, anyway?
I hope that now I made myself clear