السلام عليكم ورحمة الله وبركاته
ما هي مؤشرات التي لا تعيد رسم نفسها
وهل يمكن الإعتماد عليه
وشكرا لكم
Printable View
السلام عليكم ورحمة الله وبركاته
ما هي مؤشرات التي لا تعيد رسم نفسها
وهل يمكن الإعتماد عليه
وشكرا لكم
اتمنى اجابة
الملف المرفق 264602تفضل اخي وليد هذا مؤشر حاول اكتشاف اسراره
الملف المرفق 264603وهذا مؤشر ممتاز
مشكور اخي بارك الله فيك
اخى كل المؤشرات فى الميتاتريدر لا تعيد رسم نفسها ما عدا الزجزاج
I know many of you are wondering how to know for sure if an indicator repaints the past or not. So I propose we update this thread with indicators that we know for a fact do not repaint, and under what conditions that is true.
What is repainting?
Repainting is when a historical bar (a bar in the past) gets changed after the fact. This usually occurs on multicolor plots, but there are a few exceptions.
Why repaint?
The most popular reason is to connect two different colored plots together. if the second plot were not connected to the first (ie: falling and rising colored plots), then there would be a visible gap between the two lines.
How can I avoid it?
The only way to absolutely, positively, avoid repainting is to examine the source code of the indicator. Only then can you know for certain if it
repaints. The giveaway will look something like this:
The first command "Plot0.Set(1, ma[1]);" is the redraw command. It's taking 1 bar in the past and resetting the value of the plot. This in itself is not the real problem. The real problem is that Up, presumably, is an Rising Color plot. So what if 1 bar ago the MA wasn't rising? What if it was actually falling? Not anymore! It just got repainted to show that it was rising. See the problem?كود PHP:if (Rising(ma))
{
Up.Set(1, ma[1]);
Up.Set(0, ma[0]);
}
How can I code to not repaint, but still have multicolor plots?
It's simple really, but it is only going to work on non-Line plots. A line has to be connected, but other plots like Dots don't. So the solution is simply to test to see if the user has selected a Line plot style, and if so, repaint. If not, don't repaint.
First it's better to not repaint every single bar, ie "if (Rising(ma))". That's every single rising bar. So we just look to see if this ma is higher than last bar, and if the prior bar was lower. In other words, a reversal in direction. If so, we then look to see if it's a Line plotstyle. If it is, then we have to repaint 1 bar in the past to connect the two plots. But if it is a Dot plotstyle, no repainting occurs, and you can sleep better at night.كود PHP:if (ma[0] > ma[1] && ma[1] < ma[2] && Plots[0].PlotStyle == PlotStyle.Line)
Up.Set(1, ma[1]);
by dallas fx
chimp 2.1 which is an indicator that resembles CCI woodies but is somewhat diffrent.What makes this indictor worthy is its ability to mimic price on all time frames without a repainting issue which will make this indicator a valuable tool in the right capable hands
no repaint indicators
more
بارك الله فيك