Indicators with alerts/signal - page 1009

Albert Idrisov
734
Albert Idrisov  

Пожалуйста, вставьте стрелки на сенсорном дисплее

Gyazo - 5f30aa9e75c9858b8e0ec6decee984bb.png

Цена коснулась верхней границы вниз, цена коснулась нижней границы - стрелка вверх

#property indicator_chart_window#property indicator_buffers 3

#property indicator_color1 Blue

#property indicator_color2 Blue

#property indicator_color3 Blue

double upper[], middle[], lower[];

extern int HalfLength = 48;

//extern int MA_MODE = 0;

extern int PRICE_MODE = 0;

extern int ATR_PERIOD = 100;

extern double K = 2.0;

//extern bool ATR_MODE = false;

int init()

{

SetIndexStyle(0,DRAW_LINE);

SetIndexShift(0,0);

SetIndexDrawBegin(0,0);

SetIndexBuffer(0,upper);

SetIndexStyle(1,DRAW_LINE,STYLE_DOT);

SetIndexShift(1,0);

SetIndexDrawBegin(1,0);

SetIndexBuffer(1,middle);

SetIndexStyle(2,DRAW_LINE);

SetIndexShift(2,0);

SetIndexDrawBegin(2,0);

SetIndexBuffer(2,lower);

//--— indicators

//----

return(0);

}

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

//| Custor indicator deinitialization function |

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

int deinit()

{

//--— TODO: add your code here

//----

return(0);

}

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

//| Custom indicator iteration function |

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

int start() {

int limit;

int counted_bars=IndicatorCounted();

if(counted_bars<0) return(-1);

if(counted_bars>0) counted_bars--;

limit=Bars-counted_bars;

double avg;

for(int x=0; x<limit; x++) {

middle[x] = iMA(NULL, 0, HalfLength+1 , 0, 3, PRICE_MODE, x);

// if (ATR_MODE)

avg = iATR(NULL,0,ATR_PERIOD, x+10);

// else

// avg = findAvg(ATR_PERIOD, x);

upper[x] = middle[x] + K*avg;

lower[x] = middle[x] - K*avg;

}

return(0);

}

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

// double findAvg(int period, int shift) {

// double sum=0;

// for (int x=shift;x<(shift+period);x++) {

// sum += High[x]-Low[x];

// }

// sum = sum/period;

// return (sum);

// }
Mladen Rakic
154662
Mladen Rakic  
Alibydubby:
Пожалуйста, вставьте стрелки на сенсорном дисплее

Gyazo - 5f30aa9e75c9858b8e0ec6decee984bb.png

Цена коснулась верхней границы вниз, цена коснулась нижней границы - стрелка вверх

#property indicator_chart_window#property indicator_buffers 3

#property indicator_color1 Blue

#property indicator_color2 Blue

#property indicator_color3 Blue

double upper[], middle[], lower[];

extern int HalfLength = 48;

//extern int MA_MODE = 0;

extern int PRICE_MODE = 0;

extern int ATR_PERIOD = 100;

extern double K = 2.0;

//extern bool ATR_MODE = false;

int init()

{

SetIndexStyle(0,DRAW_LINE);

SetIndexShift(0,0);

SetIndexDrawBegin(0,0);

SetIndexBuffer(0,upper);

SetIndexStyle(1,DRAW_LINE,STYLE_DOT);

SetIndexShift(1,0);

SetIndexDrawBegin(1,0);

SetIndexBuffer(1,middle);

SetIndexStyle(2,DRAW_LINE);

SetIndexShift(2,0);

SetIndexDrawBegin(2,0);

SetIndexBuffer(2,lower);

//--— indicators

//----

return(0);

}

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

//| Custor indicator deinitialization function |

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

int deinit()

{

//--— TODO: add your code here

//----

return(0);

}

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

//| Custom indicator iteration function |

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

int start() {

int limit;

int counted_bars=IndicatorCounted();

if(counted_bars<0) return(-1);

if(counted_bars>0) counted_bars--;

limit=Bars-counted_bars;

double avg;

for(int x=0; x<limit; x++) {

middle[x] = iMA(NULL, 0, HalfLength+1 , 0, 3, PRICE_MODE, x);

// if (ATR_MODE)

avg = iATR(NULL,0,ATR_PERIOD, x+10);

// else

// avg = findAvg(ATR_PERIOD, x);

upper[x] = middle[x] + K*avg;

lower[x] = middle[x] - K*avg;

}

return(0);

}

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

// double findAvg(int period, int shift) {

// double sum=0;

// for (int x=shift;x<(shift+period);x++) {

// sum += High[x]-Low[x];

// }

// sum = sum/period;

// return (sum);

// }

Alibydubby

You can use some Keltner channel with arrows (use LWMA fo moving average mode) and then you wil get those results

Albert Idrisov
734
Albert Idrisov  

I'm sorry, but I'm very bad, very very bad understand English, I need the arrows on the touch display, or already estt a ready indicator? can give a link?)

Thank you very much)

mladen:
Alibydubby You can use some Keltner channel with arrows (use LWMA fo moving average mode) and then you wil get those results
William Snyder
9492
William Snyder  
engula:
hi mladen & mrtools,

could you pls modify attached indi in order to have a vertical line displayed (only in the subwindow) when it crosses the zero-line and the current bar is closed?

if the color of the vertical line can be customised based on bull- or bear-cross, even better.

all other alerts already present could be removed.

many thanks in advance as always!

ehlers_fisher_transform_histo_mtfalerts.mq4

Engula added the zero cross lines.

William Snyder
9492
William Snyder  
Alibydubby:
I'm sorry, but I'm very bad, very very bad understand English, I need the arrows on the touch display, or already estt a ready indicator? can give a link?) Thank you very much)

Alibydubby, modified this one with arrows and alerts.

Albert Idrisov
734
Albert Idrisov  

Thank you, brother

mrtools:
Alibydubby, modified this one with arrows and alerts.
talaate
967
talaate  
talaate:
Dear Mladen

Dear MrTools

would you please add arrows and usual alertsto the attached indicator when indicator changing the color

Thanks

Talaat E

Dear Mladen

Dear MrTools

would you please take a look to this

post

Thanks

Talaat E

yikai02
98
yikai02  

Dear MrTools and Mladen,

Please help to add alertsNotify true false function, nmc ready and please put this indicator to elite indicator, next week I will buy the elite pack and this indicator will be 1 of them that I intend to download. As always, thank you very much.

ehlers_fisher_transform_histo_mtfalertslines.mq4

William Snyder
9492
William Snyder  
yvechek:
Dear MrTools and Mladen,

Please help to add alertsNotify true false function, nmc ready and please put this indicator to elite indicator, next week I will buy the elite pack and this indicator will be 1 of them that I intend to download. As always, thank you very much.

ehlers_fisher_transform_histo_mtfalertslines.mq4

Yvechek, added the alertsNotify.

engula
204
engula  
mrtools:
Engula added the zero cross lines.

mrtools, when i double click the indicator in the navigator box, nothing happens. all other indis open the usual window. any idea how to solve the problem? thanks.