Re: Does this indicator repaint?
Posted: Thu Jan 04, 2018 2:41 am
Many thanks Mr Tools, appreciate it.
This is Mrtools extended version from Mladen's EP version - so i believes there is no chance for repainting issue
thanks mntiwana for your informationmntiwana wrote: Sat Jan 20, 2018 1:43 am
This is Mrtools extended version from Mladen's EP version - so i believes there is no chance for repainting issue
generally all SSA versions recalculates but the one's with EP (end point) never
Hi Mladen;mladen wrote: Sat Dec 16, 2017 5:21 pm
It does
That is a wrongly coded kind of double smoothed stochastic. Here is a version that does not repaint
example.png
I haven't seen a mt5 version of that indicatortradd wrote: Sat Jan 20, 2018 6:10 pm
Hi Mladen;
What is the math logic of Drake Delay ? Is there mt5 version of this indicator?
thanks.
Code: Select all
int start()
{
int counted_bars=IndicatorCounted();
int i,limit;
if(counted_bars < 0) return(-1);
if(counted_bars > 0) counted_bars--;
limit = Bars-counted_bars;
//
//
//
for (i=limit; i>=0; i--)
{
double median = iCustom(NULL,0,"SSA of price",TTMLength,NumberOfComputations,NumberOfBars,Price ,0,i);
double medias = iCustom(NULL,0,"SSA of price",TTMLength,NumberOfComputations,NumberOfBars,Price ,0,i+1);
//
//
//
//
//
buffer1[i] = EMPTY_VALUE;
buffer2[i] = EMPTY_VALUE;
buffer3[i] = EMPTY_VALUE;
buffer4[i] = EMPTY_VALUE;
buffer5[i] = EMPTY_VALUE;
buffer6[i] = EMPTY_VALUE;
buffer7[i] = EMPTY_VALUE;
buffer8[i] = EMPTY_VALUE;
if (median < medias)
{
buffer1[i] = High[i];
buffer2[i] = Low[i];
if (Close[i]>Open[i]) { buffer3[i] = Close[i]; buffer4[i] = Open[i]; }
else { buffer4[i] = Close[i]; buffer3[i] = Open[i]; }
}
if (median > medias)
{
buffer1[i] = Low[i];
buffer2[i] = High[i];
if (Close[i]<Open[i]) { buffer3[i] = Close[i]; buffer4[i] = Open[i]; }
else { buffer4[i] = Close[i]; buffer3[i] = Open[i]; }
}
if (median == medias)
{
buffer5[i] = Low[i];
buffer6[i] = High[i];
buffer7[i] = Open[i];
buffer8[i] = Close[i];
}
}
return(0);
}
You need SSA of price indicator in your indicators folder and SSA of price needs the ssa dll file in your library folder.friend4you wrote: Tue Feb 06, 2018 10:10 pm This is a small, original, good bar coloring indicator, but do few bars repaint?
Please help me, it does paint all bars yellow instead of green and red ONLY on some mt4. Changes and many clicks on compile (mt4 known 1190 bug) does not help.
Complete code attached, but one look on this part may be enough. Thanks:
-TTM_ Ssa Bars.mq4Code: Select all
int start() { int counted_bars=IndicatorCounted(); int i,limit; if(counted_bars < 0) return(-1); if(counted_bars > 0) counted_bars--; limit = Bars-counted_bars; // // // for (i=limit; i>=0; i--) { double median = iCustom(NULL,0,"SSA of price",TTMLength,NumberOfComputations,NumberOfBars,Price ,0,i); double medias = iCustom(NULL,0,"SSA of price",TTMLength,NumberOfComputations,NumberOfBars,Price ,0,i+1); // // // // // buffer1[i] = EMPTY_VALUE; buffer2[i] = EMPTY_VALUE; buffer3[i] = EMPTY_VALUE; buffer4[i] = EMPTY_VALUE; buffer5[i] = EMPTY_VALUE; buffer6[i] = EMPTY_VALUE; buffer7[i] = EMPTY_VALUE; buffer8[i] = EMPTY_VALUE; if (median < medias) { buffer1[i] = High[i]; buffer2[i] = Low[i]; if (Close[i]>Open[i]) { buffer3[i] = Close[i]; buffer4[i] = Open[i]; } else { buffer4[i] = Close[i]; buffer3[i] = Open[i]; } } if (median > medias) { buffer1[i] = Low[i]; buffer2[i] = High[i]; if (Close[i]<Open[i]) { buffer3[i] = Close[i]; buffer4[i] = Open[i]; } else { buffer4[i] = Close[i]; buffer3[i] = Open[i]; } } if (median == medias) { buffer5[i] = Low[i]; buffer6[i] = High[i]; buffer7[i] = Open[i]; buffer8[i] = Close[i]; } } return(0); }
Prefer to say it recalculates since repainting is usually a coding error.friend4you wrote: Wed Feb 07, 2018 4:12 am Thanks, it works with attached files. Dll comes to library folder, rest to indicators. It takes some seconds to load. Does it repaint?
It catches often good trend change points.
SSA of price.mq4
SSA of price.ex4
LibSSA.dll