Coding help - page 216

 

hi sorry for distirb but the indi test tick is a mistake dont added it please

thanks in advance

 

Dear Mladen,please,i want to ask to make shift in this indicator. On axes Y, that is shift, shift up down with expanded settings. I want to make of this indicator the channel on a chart ,if it is possible.

 
Air92:
Dear Mladen,please,i want to ask to make shift in this indicator. On axes Y, that is shift, shift up down with expanded settings. I want to make of this indicator the channel on a chart ,if it is possible.

Air92

The frequent sentence : that is a decompiled code

 
mladen:
Air92 The frequent sentence : that is a decompiled code

Thank you.I understood

 
Air92:
Thank you.I understood

Np. They are spread so wide by now that it is impossible to avoid them any more

 
mayoune08:
Hi mrTools hi malden

Can you please make some special thing for me i want tu joint all the indicators attached on one, i mean one arrow appears when minimum 2 arrows are on the same side (excuse my poor english) it must be minimum 2 arrows and if there is one on the opposite way it doesn t appear

Please just before the fsd indi shows lines can you remove theme and let only arrows and please i know i m exagirating with the fsd the arrow appears on the current bar can you make it appears the bar before

So normally i ll get only one arrow

By the way the are 2 iinwmarrows the one without alerts repaints can you fix it with the same parameters (3.3.3.3) even if it s wrong signal?

Thanks a lot and sorry for the request

imed

mayoune08

When you cobine such a lot of indicators, almost sure that the result will be lagging a lot. Combinations of a lot of indicators in order to get a signal tend to give signal always at the slowest possible indicator at that moment. Better to find simpler combinations (at leas that is my opinion) and to take care that the indicators are not actually showing same things in different form

__________________

PS: swing arrows is using future data for calculation. It is in general bad idea to use indicators that use future data in a signaling mode

 

Hi mladen, can you help me to correct this indicator?

#property indicator_separate_window

#property indicator_buffers 3

#property indicator_color1 Red

//----

extern int N = 30;

//----

double UpperBuf[];

double UpperBuf1[];

double UpperBufIndicator[];

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

//| |

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

void init()

{

SetIndexStyle(0, DRAW_LINE, STYLE_SOLID, 1);

SetIndexDrawBegin(0, N);

SetIndexBuffer(0, UpperBufIndicator);

}

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

//| |

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

void deinit()

{

//----

}

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

//| |

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

void start()

{

int counted = IndicatorCounted();

//----

if(counted < 0)

return (-1);

//----

if(counted > 0)

counted--;

int limit = Bars - counted;

//----

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

{

UpperBuf =(3 * iStochastic(NULL,0,4,2,2,MODE_SMA,0,MODE_MAIN,i)+ 4* iStochastic(NULL,0,75,20,20,MODE_SMA,0,MODE_MAIN,i))/5.2 ;

UpperBuf1 = iMAOnArray(UpperBuf,0,3,0,MODE_SMA,i);

UpperBufIndicator= UpperBuf- UpperBuf1;

}

}

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

 
k3rn3l:
Hi mladen, can you help me to correct this indicator?

#property indicator_separate_window

#property indicator_buffers 3

#property indicator_color1 Red

//----

extern int N = 30;

//----

double UpperBuf[];

double UpperBuf1[];

double UpperBufIndicator[];

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

//| |

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

void init()

{

SetIndexStyle(0, DRAW_LINE, STYLE_SOLID, 1);

SetIndexDrawBegin(0, N);

SetIndexBuffer(0, UpperBufIndicator);

}

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

//| |

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

void deinit()

{

//----

}

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

//| |

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

void start()

{

int counted = IndicatorCounted();

//----

if(counted < 0)

return (-1);

//----

if(counted > 0)

counted--;

int limit = Bars - counted;

//----

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

{

UpperBuf =(3 * iStochastic(NULL,0,4,2,2,MODE_SMA,0,MODE_MAIN,i)+ 4* iStochastic(NULL,0,75,20,20,MODE_SMA,0,MODE_MAIN,i))/5.2 ;

UpperBuf1 = iMAOnArray(UpperBuf,0,3,0,MODE_SMA,i);

UpperBufIndicator= UpperBuf- UpperBuf1;

}

}

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

[/PHP]

k3rn3l

Now it works

[PHP]#property indicator_separate_window

#property indicator_buffers 3

#property indicator_color1 Red

#property indicator_color2 LimeGreen

#property indicator_color3 Orange

//----

extern int N = 30;

//----

double UpperBuf[];

double UpperBuf1[];

double UpperBufIndicator[];

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

//| |

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

void init()

{

SetIndexStyle(0, DRAW_LINE, STYLE_SOLID, 1);

SetIndexDrawBegin(0, N);

SetIndexBuffer(0, UpperBufIndicator);

SetIndexBuffer(1, UpperBuf);

SetIndexBuffer(2, UpperBuf1);

}

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

//| |

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

void deinit()

{

//----

}

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

//| |

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

void start()

{

int counted = IndicatorCounted();

//----

if(counted < 0)

return (-1);

//----

if(counted > 0)

counted--;

int limit = Bars - counted;

//----

for(int i = limit; i >=0; i--) UpperBuf =(3 * iStochastic(NULL,0,4,2,2,MODE_SMA,0,MODE_MAIN,i)+ 4* iStochastic(NULL,0,75,20,20,MODE_SMA,0,MODE_MAIN,i))/5.2 ;

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

{

UpperBuf1 = iMAOnArray(UpperBuf,0,3,0,MODE_SMA,i);

UpperBufIndicator= UpperBuf- UpperBuf1;

}

}

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

 

am looking for a fractals with alert

 
drunkpips:
am looking for a fractals with alert

drunkpips

You can use this one https://www.mql5.com/en/forum/173009/page12 (set the period to 5 and it will be exactly the same as the built in fractals)