Indicators with alerts/signal - page 129

Mladen Rakic
154596
Mladen Rakic  

done

Changed it. Upper and lower bands deviations can be set separately now

regards

mladen

ValeoFX:
Hi Mladen,

Would you mind using your genius on this "BolliToucher" you posted and give us the option to have different settings for the upper and lower bands, please. I see John Bollinger's coworkers recommending a 3 for UPPER and a 2 for LOWER bands.

The decimal point is "semantics" IMHO as he suggests that when you go to a 50-period, you increase the deviation by 0.1 and vice verso.

Thanking you in advance.

Best wishes.
Mladen Rakic
154596
Mladen Rakic  

It is T3 indicator with original Tilson smoothing

You can download source for one of the versions from this post too https://www.mql5.com/en/forum/173058/page5

On the picture : 9squared T3 with volume factor 0.7 (cyan) and T3 basic with T3Hot 0.7 and T3Original set to true (dotted)

regards

mladen

generousforex:
... PS: Perhaps someone has the mq4 of the original of these as well??
Mladen Rakic
154596
Mladen Rakic  

Here you go

Default settings from those two you are using (compared on second picture)

regards

mladen

generousforex:
Is there an indicator already to get an alert with arrow painting

for when these t3's cross? Or same thing since you know the

real workings of these t3.

Thanks

Brian
Mladen Rakic
154596
Mladen Rakic  

...

Try this one...

The problem is not where left or right does the indicator draw the arrows (because it must draw them when the change happened) but where does it draw the arrow up or down. People are forgetting that 5 points may mean something on a 1 minute chart but means almost nothing on a daily chart, for example, or that it could even depend on the symbol it is attached to. This one, more or less, solves that issue (pointed out one such change with reddish square on the picture - it is on 1 minute chart but it will behave similarly on any time frame).

PS: it still has its alerts (even though it is not in the name now:))

PPS: the showArrowsoption is "responsible" for showing or not showing arrows

Files:
Mladen Rakic
154596
Mladen Rakic  

...

Did not change the one you posted since I had something similar (not used arrows but dots, like on picture, hope you do not mind ) Results are same for both for same period though.

Just one parameter needs additional info :
alerts.OnCurrent - if true, alerts are generated on opened (current bar) if false, on previous closed bar. Dots (arrows) are drawn on current bar though
regards

mladen

claypot:
HI,

Could someone please add an arrow alerts for this aroon horn indy. Arrow up when bar is blue and arrow down when bar is red. Thanks in advance.

Cheers.
Files:
Mladen Rakic
154596
Mladen Rakic  

...

I knew it :):)

Still dots (you got to allow me at least a bit of laziness )

In fact code for it is much simpler than the separate one (I did not extend the previous one for one reason : it is still not possible to write indicator that is going to draw values in two different sub-windows without using objects, and frankly, drawing objects for the whole history would not be something I like)

PS: the "separate one" is on the picture just for comparison.

PPS: it still got alerts (same rules as the "separate" version)

regards

mladen

claypot:
Thanks mladen, Cooool stuff from you as always. By the way, if you can otherwise not to worry, can you show the dots or arrows on the chart windows? Cheers
Mladen Rakic
154596
Mladen Rakic  

...

Alerts added

regards

mladen

skn:
Some generous expert please put a zero-line cross alert on this great indicator. A vertical line will be very useful visual aid. Thanks.
Files:
Mladen Rakic
154596
Mladen Rakic  

In cut/paste mood today Same thing done as for the above

regards

mladen

ipixtlan:
Can somebody put a sound/popup alert on this one?! Thanks!
Mladen Rakic
154596
Mladen Rakic  

...

Signal line added

As of good/bad mood : to some people I will always stay "in bad mood". Just see what are those really doing. As for the rest of you people (the "normal" ones, whatever that means ) : if I can and if I have time I will help.

regards

mladen

skn:
Thanks Mladen, very useful help.

If you are still in good mood, please attach a signal line too.

Cannot place a moving average over it.

Regards.
fxnewbie:
Hey, hey, hey .....!!!! Mladen in a good mood today...!!
Files:
edi
3
edi  

Stochastic 8,3,3 Need Alert on Crossing

Hi coder out there , please help me to modify the code to alert on crossing (stochastic 8,3,3) thx alot

#property indicator_separate_window

#property indicator_minimum 0

#property indicator_maximum 100

#property indicator_buffers 2

#property indicator_color1 LightSeaGreen

#property indicator_color2 Red

//---- input parameters

extern int KPeriod=8;

extern int DPeriod=3;

extern int Slowing=3;

//---- buffers

double MainBuffer[];

double SignalBuffer[];

double HighesBuffer[];

double LowesBuffer[];

//----

int draw_begin1=0;

int draw_begin2=0;

//+------------------------------------------------------------------+

//| Custom indicator initialization function |

//+------------------------------------------------------------------+

int init()

{

string short_name;

//---- 2 additional buffers are used for counting.

IndicatorBuffers(4);

SetIndexBuffer(2, HighesBuffer);

SetIndexBuffer(3, LowesBuffer);

//---- indicator lines

SetIndexStyle(0,DRAW_LINE);

SetIndexBuffer(0, MainBuffer);

SetIndexStyle(1,DRAW_LINE);

SetIndexBuffer(1, SignalBuffer);

//---- name for DataWindow and indicator subwindow label

short_name="Sto("+KPeriod+","+DPeriod+","+Slowing+")";

IndicatorShortName(short_name);

SetIndexLabel(0,short_name);

SetIndexLabel(1,"Signal");

//----

draw_begin1=KPeriod+Slowing;

draw_begin2=draw_begin1+DPeriod;

SetIndexDrawBegin(0,draw_begin1);

SetIndexDrawBegin(1,draw_begin2);

//----

return(0);

}

//+------------------------------------------------------------------+

//| Stochastic oscillator |

//+------------------------------------------------------------------+

int start()

{

int i,k;

int counted_bars=IndicatorCounted();

double price;

//----

if(Bars<=draw_begin2) return(0);

//---- initial zero

if(counted_bars<1)

{

for(i=1;i<=draw_begin1;i++) MainBuffer=0;

for(i=1;i<=draw_begin2;i++) SignalBuffer=0;

}

//---- minimums counting

i=Bars-KPeriod;

if(counted_bars>KPeriod) i=Bars-counted_bars-1;

while(i>=0)

{

double min=1000000;

k=i+KPeriod-1;

while(k>=i)

{

price=Low[k];

if(min>price) min=price;

k--;

}

LowesBuffer=min;

i--;

}

//---- maximums counting

i=Bars-KPeriod;

if(counted_bars>KPeriod) i=Bars-counted_bars-1;

while(i>=0)

{

double max=-1000000;

k=i+KPeriod-1;

while(k>=i)

{

price=High[k];

if(max<price) max=price;

k--;

}

HighesBuffer=max;

i--;

}

//---- %K line

i=Bars-draw_begin1;

if(counted_bars>draw_begin1) i=Bars-counted_bars-1;

while(i>=0)

{

double sumlow=0.0;

double sumhigh=0.0;

for(k=(i+Slowing-1);k>=i;k--)

{

sumlow+=Close[k]-LowesBuffer[k];

sumhigh+=HighesBuffer[k]-LowesBuffer[k];

}

if(sumhigh==0.0) MainBuffer=100.0;

else MainBuffer=sumlow/sumhigh*100;

i--;

}

//---- last counted bar will be recounted

if(counted_bars>0) counted_bars--;

int limit=Bars-counted_bars;

//---- signal line is simple movimg average

for(i=0; i<limit; i++)

SignalBuffer=iMAOnArray(MainBuffer,Bars,DPeriod,0,MODE_SMA,i);

//----

return(0);

}

//+------------------------------------------------------------------+