Indicators with alerts/signal - page 251

 

edit: actually, if any body knows of an envelope filter that has this alert and arrow codded in...just for clarification.

 

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:
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
 
mladen:
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

Wow....!

Mladen, just another little request.... can you trade my live account, please?

 

awosum!!! master delivers yet again thank you!!

mladen:
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
 

RSI Divergence with Alert

Can someone create am rsi divergence indicator that can alarm

when there is negative divergence (as I see it) ie rsi is climbing

still and price is headed down, but only if the rsi is above the 80 level

when this occurs, and the same positive divergence (again as I

see it for a system I am developing) for when rsi is going down

and price is heading up, while the rsi is below the 20 level ONLY>

Alerting ONLY at the close of the candle, so no matter how many

times it occurs during an open candle it doesnt matter just the

condition applies at the close of that candle then we can

get alert.

Can someone help?

GF

 

HELP! add sound code on indicator.

Hi Good day.

I need help on how to add a sound alarm on this code:

#property copyright "Copyright ?2005, Yura Prokofiev"

#property link "Yura.prokofiev@gmail.com"

#property indicator_separate_window

#property indicator_buffers 3

#property indicator_color1 Black

#property indicator_color2 Lime

#property indicator_color3 Red

extern int period=10;

double ExtBuffer0[];

double ExtBuffer1[];

double ExtBuffer2[];

int init()

{

SetIndexStyle(0,DRAW_NONE);

SetIndexStyle(1,DRAW_HISTOGRAM);

SetIndexStyle(2,DRAW_HISTOGRAM);

IndicatorDigits(Digits+1);

SetIndexBuffer(0,ExtBuffer0);

SetIndexBuffer(1,ExtBuffer1);

SetIndexBuffer(2,ExtBuffer2);

IndicatorShortName("Fisher");

SetIndexLabel(1,NULL);

SetIndexLabel(2,NULL);

return(0);

}

int start()

{

//int period=10;

int limit;

int counted_bars=IndicatorCounted();

double prev,current,old;

double Value=0,Value1=0,Value2=0,Fish=0,Fish1=0,Fish2=0;

double price;

double MinL=0;

double MaxH=0;

if(counted_bars>0) counted_bars--;

limit=Bars-counted_bars;

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

{ MaxH = High;

MinL = Low[Lowest(NULL,0,MODE_LOW,period,i)];

price = (High+Low)/2;

Value = 0.33*2*((price-MinL)/(MaxH-MinL)-0.5) + 0.67*Value1;

Value=MathMin(MathMax(Value,-0.999),0.999);

ExtBuffer0=0.5*MathLog((1+Value)/(1-Value))+0.5*Fish1;

Value1=Value;

Fish1=ExtBuffer0;

}

bool up=true;

for(i=limit-2; i>=0; i--)

{

current=ExtBuffer0;

prev=ExtBuffer0;

if (((current0))||(current<0)) up= false;

if (((current>0)&&(prev0)) up= true;

if(!up)

{

ExtBuffer2=current;

ExtBuffer1=0.0;

}

else

{

ExtBuffer1=current;

ExtBuffer2=0.0;

}

}

return(0);

}

Adding like a ".wav" or something to hit the alarm whenever the 3rd Bar (Negative - RED) is different from the 2nd Bar (Positive - GREEN).

If i had the knowledge on coding, then this should be easy (i think). But i cant understand the messy part.

Anyways, hoping for someone who can lend me a hand.

Thanks in advance.

Nelbin

 

thanks alot! i think i got it now.

 

Zero cross alert please

Some generous expert please put a zero-line cross alert on this great indicator. A vertical line will be very useful visual aid.

Thanks.

 
mladen:
In cut/paste mood today

Same thing done as for the above

regards

mladen

Hey, hey, hey .....!!!!

Mladen in a good mood today...!!

 

Fantastic

Thanks, Mladen.

Very useful addition.

Regards.

Reason: