Elite indicators :) - page 857

Mladen Rakic
151109
Mladen Rakic  
Alibydubby:
And here, too, the arrows on the cross intersection of lines)))

Thank U)

Gyazo - 0abf003bea9e9da4c7ebfbe9fd974931.png

//+------------------------------------------------------------------//|

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

#property copyright "mladen"

#property link "www.forex-tsd.com"

#property indicator_separate_window

#property indicator_buffers 2

#property indicator_color1 PaleVioletRed

#property indicator_color2 DimGray

#property indicator_width1 2

#property indicator_style2 STYLE_DOT

//

//

//

//

//

extern int TrixPeriod = 5;

extern int TrixPrice = PRICE_CLOSE;

extern int SignalPeriod = 8;

//

//

//

//

//

double TrixBuffer[];

double SignBuffer[];

double work[];

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

//|

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

//

//

//

//

//

int init()

{

IndicatorBuffers(3);

SetIndexBuffer(0,TrixBuffer);

SetIndexBuffer(1,SignBuffer);

SetIndexBuffer(2,work);

//

//

//

//

//

IndicatorShortName("Trix ("+TrixPeriod+")");

return(0);

}

//

//

//

//

//

int start()

{

int limit,i,counted_bars=IndicatorCounted();

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

if(counted_bars>0) counted_bars--;

limit = MathMin(Bars-counted_bars,Bars-1);

//

//

//

//

//

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

{

work = iEma(iEma(iEma(MathLog(iMA(NULL,0,1,0,MODE_SMA,TrixPrice,i)),TrixPeriod,i,0),TrixPeriod,i,1),TrixPeriod,i,2);

if (work!=0)

TrixBuffer = 10000*(work-work)/work;

else TrixBuffer = 0.00;

SignBuffer = iLinr(TrixBuffer,SignalPeriod,i,0);

}

//

//

//

//

//

return(0);

}

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

//|

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

//

//

//

//

//

double workEma[][3];

double iEma(double price, double period, int r, int instanceNo=0)

{

if (ArraySize(workEma)!= Bars) ArrayResize(workEma,Bars); r = Bars-r-1;

//

//

//

//

//

double alpha = 2.0 / (1.0+period);

workEma[r] = workEma[r-1]+alpha*(price-workEma[r-1]);

return(workEma[r]);

}

//

//

//

//

//

double workLinr[][1];

double iLinr(double price, double period, int r, int instanceNo=0)

{

if (ArraySize(workLinr)!= Bars) ArrayResize(workLinr,Bars); r = Bars-r-1;

//

//

//

//

//

period = MathMax(period,1);

workLinr[r] = price;

double lwmw = period; double lwma = lwmw*price;

double sma = price;

for(int k=1; k=0; k++)

{

double weight = period-k;

lwmw += weight;

lwma += weight*workLinr[r-k];

sma += workLinr[r-k];

}

return(3.0*lwma/lwmw-2.0*sma/period);

}

Alibydubby

Can you please attach the mql files (use the attachments tool as marked on the lower picture)

Files:
attach.gif 33 kb
Albert Idrisov
945
Albert Idrisov  

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

Заранее большое спасибо)

Gyazo - 1522f153d0e03f31edd7619d23ef3869.pngalf_non_lag_bands_mtf_nmc.mq4

младен:
Alibydubby Может вы приложите, пожалуйста, mql файлы (используйте инструмент вложения помечено как на нижней картинке)
Albert Idrisov
945
Albert Idrisov  

Here, too, the arrows on the touch, if you please))

Gyazo - 548a704b674a80e59387339da243d779.png

Albert Idrisov
945
Albert Idrisov  

Here indicator) arrows on the touch, you're the best programmer))

Alibydubby:
Пожалуйста, добавьте стрелку на ощупь границы

Gyazo - bcbd7da7b734e448b844817fd2b063d8.png

[Код]//+------------------------------------------------------------------+//| асимметричные полосы.mq4 |

//| |

//| forex-tsd элиты только раздела |

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

#property copyright "младен"

#property link "mladenfx@gmail.com"

#property indicator_chart_window

#property indicator_buffers 3

#property indicator_color1 DimGray

#property indicator_color2 Red

#property indicator_color3 LimeGreen

#property indicator_style1 STYLE_DOT

//

//

//

//

//

extern int bandsPeriod = 14;

extern int bandsMethod = MODE_SMA;

extern int bandsPrice = PRICE_CLOSE;

extern double bandsDeviations = 2;

//

//

//

//

//

двухместный maBuffer[];

двухместный upBuffer[];

двухместный dnBuffer[];

двухместный wuBuffer[];

двухместный wdBuffer[];

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

//| |

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

//

//

//

//

//

int init()

{

IndicatorBuffers(5);

SetIndexBuffer(0,maBuffer);

SetIndexBuffer(1,upBuffer);

SetIndexBuffer(2,dnBuffer);

SetIndexBuffer(3,wuBuffer);

SetIndexBuffer(4,wdBuffer);

return(0);

}

int deinit() { return(0); }

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

//| |

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

//

//

//

//

//

int start()

{

int counted_bars=IndicatorCounted();

int i,предел;

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

if(counted_bars>0) counted_bars--;

limit = MathMin(Bars-counted_bars,бары-1);

//

//

//

//

//

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

{

double price = iMA(NULL,0,1 ,0,MODE_SMA ,bandsPrice,i);

maBuffer = iMA(NULL,0,bandsPeriod,0,bandsMethod,bandsPrice,i);

if (i==(Bars-1))

{

upBuffer = maBuffer;

dnBuffer = maBuffer;

wuBuffer = цена-maBuffer;

wdBuffer = цена-maBuffer;

продолжить;

}

//

//

//

//

//

double diff = цена-maBuffer;

if(diff>=0)

{

wuBuffer = (wuBuffer*(bandsPeriod-1)+MathPow(diff,2))/bandsPeriod;

wdBuffer = wdBuffer*(bandsPeriod-1)/bandsPeriod;

}

еще

{

wdBuffer = (wdBuffer*(bandsPeriod-1)+MathPow(diff,2))/bandsPeriod;

wuBuffer = wuBuffer*(bandsPeriod-1)/bandsPeriod;

}

upBuffer = maBuffer + bandsDeviations*MathSqrt(wuBuffer);

dnBuffer = maBuffer - bandsDeviations*MathSqrt(wdBuffer);

}

return(0);

}

[/CODE]
Files:
talaate
967
talaate  

Dear Mladen

Dear MrTools

Is is possible to make the indicator of "

OnChart_WPRsmooth2 nmc.mq4"

Multi color, I mean the indicator line DeepSkyBlue to change its color on up and down and adding arrows in this case + alerts

Thanks in advance

Talaat E

William Snyder
9497
William Snyder  
Alibydubby:
Пожалуйста, поставьте стрелки на сенсорном дисплее)))

Заранее большое спасибо)

Gyazo - 1522f153d0e03f31edd7619d23ef3869.pngalf_non_lag_bands_mtf_nmc.mq4

Alibydubby, added arrows and alerts.

William Snyder
9497
William Snyder  
Alibydubby:
Here, too, the arrows on the touch, if you please)) Gyazo - 548a704b674a80e59387339da243d779.png

Alibydubby, added the arrows and alerts.

William Snyder
9497
William Snyder  
talaate:
Dear Mladen

Dear MrTools

Is is possible to make the indicator of "

OnChart_WPRsmooth2 nmc.mq4"

Multi color, I mean the indicator line DeepSkyBlue to change its color on up and down and adding arrows in this case + alerts

Thanks in advance

Talaat E

Talaat E, added the nrp coloring along with the arrows and alerts..

Albert Idrisov
945
Albert Idrisov  

Thank you very much, and this indicator can also put the arrows?)

mrtools:
Alibydubby, added the arrows and alerts.
Files:
talaate
967
talaate  
mrtools:
Talaat E, added the nrp coloring along with the arrows and alerts..

Thanks MrTools, you are very helper man, Really thanks

Talaat E