boggie
24
boggie  

stochastic cross

fxbs:
i put switches, so u can choose kind of signals

SoundON=false;

EmailON=false;

KPeriod=5;

DPeriod=3;

Slowing=3;

MA_Method = 0; // SMA 0, EMA 1, SMMA 2, LWMA 3

PriceField = 0; // Low/High 0, Close/Close 1

OverBoughtLevel = 80;

OverSoldLevel = 20;

show_KD_cross = false;

show_K_OBOScross = true;

show_D_OBOScross = false;

default - K(fast line) cross OBOS levels

in your case you can set D=true, K=false

Holy crap you freakin rock

I can't beleive how fast you put this together

Now let me see if I can make make a total pain in the ass out of myself

Is it possible to add :

show arrow KD_ cross only when that cross occurs above or below set overbought or oversold levels

Thanks

fxbs
3203
fxbs  

when D going out of OBOS levels it's about allways after cross ....

p.s. but well, if you wish...

andama
54
andama  

Please make Alert for MT4-LevelStop-Reverse Indicator

Can someone please encode within it an Alert ( Audible) when the arrows form??

I hope some one can help!

Thanks in advance.

yappe
12
yappe  

ma color based on closing

HI,

is there any ma indicator that color change according to the close of the candle.For example if the candle close above SMA then the line color is blue but if below MA then the color will change to red.

I know there is a indicator that has called "ma_in_color.mq4" sorry but i don't know how to post it, my question is, of there is anybody out there, who could program an sound alert in this indicator.

thx a lot

Linuxser
5921
Linuxser  
yappe:
HI,

is there any ma indicator that color change according to the close of the candle.For example if the candle close above SMA then the line color is blue but if below MA then the color will change to red.

I know there is a indicator that has called "ma_in_color.mq4" sorry but i don't know how to post it, my question is, of there is anybody out there, who could program an sound alert in this indicator.

thx a lot

Hi,

You don't need to post same five times in different sections. I've deleted other posts, keep and follow with this one.

danielp
6
danielp  

Please Help

Can anybody help me with this indicator (flattrend w macd) please. Please make it plays sound when bar change to ROYALBLUE and also when bar changes to RED, also add pop up window please. Thanks a million.

Here is the code :

#property indicator_separate_window

#property indicator_minimum 0

#property indicator_maximum 1

#property indicator_buffers 3

#property indicator_color1 Red

#property indicator_color2 RoyalBlue

#property indicator_color3 Gold

//---- input parameters

extern int Minutes=30;

extern int MACD_Fast = 12;

extern int MACD_Slow = 26;

extern int MACD_MA = 9;

extern int BarsToCount = 1000;

//---- buffers

double ExtMapBuffer1[];

double ExtMapBuffer2[];

double ExtMapBuffer3[];

double Ma;

double hhigh, llow;

double Psar;

double PADX,NADX;

string TimeFrameStr;

double MA1,MA2,MA3;

double MACD_Signal,MACD_Main;

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

//| Custom indicator initialization function |

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

int init()

{

//---- indicators

SetIndexStyle(0,DRAW_HISTOGRAM,STYLE_SOLID,4,Red);

SetIndexBuffer(0,ExtMapBuffer1);

SetIndexStyle(1,DRAW_HISTOGRAM,STYLE_SOLID,4, RoyalBlue);

SetIndexBuffer(1,ExtMapBuffer2);

SetIndexStyle(2,DRAW_HISTOGRAM,STYLE_SOLID,4, Gold);

SetIndexBuffer(2,ExtMapBuffer3);

switch(Minutes)

{

case 1 : TimeFrameStr="Period_M1"; break;

case 5 : TimeFrameStr="Period_M5"; break;

case 15 : TimeFrameStr="Period_M15"; break;

case 30 : TimeFrameStr="Period_M30"; break;

case 60 : TimeFrameStr="Period_H1"; break;

case 240 : TimeFrameStr="Period_H4"; break;

case 1440 : TimeFrameStr="Period_D1"; break;

case 10080 : TimeFrameStr="Period_W1"; break;

case 43200 : TimeFrameStr="Period_MN1"; break;

default : TimeFrameStr="Current Timeframe"; Minutes=0;

}

IndicatorShortName("Flat Trend w MACD ("+TimeFrameStr+")");

//----

return(0);

}

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

//| Custom indicator deinitialization function |

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

int deinit()

{

//----

//----

return(0);

}

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

//| Custom indicator iteration function |

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

int start()

{

int counted_bars=IndicatorCounted();

//----

for (int i = 0; i < BarsToCount; i++){

ExtMapBuffer1=0;

ExtMapBuffer2=0;

ExtMapBuffer3=0;

MACD_Signal=iMACD(NULL,Minutes,MACD_Fast,MACD_Slow,MACD_MA,PRICE_CLOSE,MODE_SIGNAL,i);

MACD_Main =iMACD(NULL,Minutes,MACD_Fast,MACD_Slow,MACD_MA,PRICE_CLOSE,MODE_MAIN,i);

if(MACD_Signal 0)ExtMapBuffer2 = 1;

if(MACD_Signal > MACD_Main && MACD_Main < 0)ExtMapBuffer1 = 1;

if(ExtMapBuffer1 == 0 && ExtMapBuffer2 == 0)

{ExtMapBuffer3 = 1;}

}

//----

return(0);

}

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

fxbs
3203
fxbs  

Danielp, you shouldn't cut head of indi off (with author, copyrights etc.)

either part (section) of the code, either whole thing

florinv75
232
florinv75  

i was thinking to ask the same thing... but your post is already the second request.

this is a very good indicator and a sound alert would help a LOT. well, i can only hope someone would help us...

andama:
Can someone please encode within it an Alert ( Audible) when the arrows form??

I hope some one can help!

Thanks in advance.
fxmaven
3
fxmaven  

Can someone add alert to MTF_RSX indicator?

Hi,

If someone could please help and put an audible alert and pop up when the indicator goes from greater than or equal to 70 down to 55 and then reset. And another alert when the indicator is less than or equal to 30 and goes up to 45.

Any help appreciated or let me know a better place to post this.

aelimian
336
aelimian  

E-mail alert

Please any email alert for the indicator :HMA_Russian_color.mq4