Encerrado

Metatrader to Esignal, indicator conversion

The following script has been written for use in Metatrader software.... we are looking to convert it into the esignal format. here is the code:

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

//| Metatrader Indicator |

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

#property copyright "Copyright © 2006, [url removed, login to view] "

#property link "http://www.forex-tsd.com/"

#property indicator_chart_window

#property indicator_buffers 4

#property indicator_color1 Blue

#property indicator_color2 Silver

#property indicator_color3 Silver

//---- input parameters

extern int RPeriod=25;

extern int MA_mode=1;

extern int OffSet=40;

//---- indicator buffers

double MABuffer[];

double UpBuffer[];

double DnBuffer[];

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

//| Custom indicator initialization function |

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

int init()

{

string short_name;

//---- indicator line

SetIndexStyle(0,DRAW_LINE);

SetIndexStyle(1,DRAW_LINE);

SetIndexStyle(2,DRAW_LINE);

SetIndexBuffer(0,MABuffer);

SetIndexBuffer(1,UpBuffer);

SetIndexBuffer(2,DnBuffer);

//---- name for DataWindow and indicator subwindow label

short_name="EMA_levels("+RPeriod+")";

IndicatorShortName(short_name);

SetIndexLabel(0,"MA");

SetIndexLabel(1,"Up");

SetIndexLabel(2,"Dn");

//----

SetIndexDrawBegin(0,RPeriod);

SetIndexDrawBegin(1,RPeriod);

SetIndexDrawBegin(2,RPeriod);

//----

return(0);

}

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

//| EMA_Levels |

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

int start()

{

int shift,limit, counted_bars=IndicatorCounted();

if ( counted_bars > 0 ) limit=Bars-counted_bars;

if ( counted_bars < 0 ) return(0);

if ( counted_bars ==0 ) limit=Bars-RPeriod-1;

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

{

MABuffer[shift] = iMA(NULL,0,RPeriod,0,MA_mode,PRICE_CLOSE,shift);

UpBuffer[shift] = MABuffer[shift] + OffSet*Point;

DnBuffer[shift] = MABuffer[shift] - OffSet*Point;

}

return(0);

}

Habilidades: Programação C, Programação C#

Ver mais: esignal metatrader, metatrader esignal, rperiod, up string, ma code, esignal metatrader conversion, null, metatrader c, int, ima, dn, use string offset, extern, looking forex indicator, custom indicator metatrader, name forex software, metatrader custom indicator, conversion code, convert forex indicator format, convert metatrader code, convert custom indicator, indicator custom, indicator convert, null software, metatrader string

Acerca do Empregador:
( 0 comentários ) Glendora, United States

ID do Projeto: #588354

2 freelancers estão ofertando em média $75 para este trabalho

virgoasc91

i am very experienced in making apps using c# and c++. since i am responsible you can trust me. i will submit the product as soon as you want. thanks.....

$50 USD in 4 dias
(2 Comentários)
2.8
giusemaria

Discuss more in PM.

$100 USD in 10 dias
(0 Comentários)
0.0