How to implement the function SMA and REF which is stock interface

 

Dear expert:

Do you know is there any function which has the same function as SMA and REF,if no, how to implement it?

thanks!

 

iMA will do an SMA https://docs.mql4.com/indicators/iMA

What is REF ?

 
RaptorUK:

iMA will do an SMA https://docs.mql4.com/indicators/iMA

What is REF ?


thank you very much!

it has some problem to implement SMA with iMA.

REF is the abbreviation of Reference, I don't know the specific mean actually.

can you get it from the follow script? if you get it, can you help implement SMA and REF?

STICKLINE(100,99,0,5,0),COLOR666600;

LA:=REF(CLOSE,1);

LB:=((SMA(MAX((CLOSE - LA),0),5,1) / SMA(ABS((CLOSE - LA)),5,1)) * 100);

LC:=(HIGH - REF(HIGH,1));

LD:=(REF(LOW,1) - LOW);

LE:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);

LF:=SUM(IF(((LC > 0) AND (LC > LD)),LC,0),10);

LG:=SUM(IF(((LD > 0) AND (LD > LC)),LD,0),10);

LH:=((LF * 100) / LE);

LI:=((LG * 100) / LE);

LJ:=MA(((ABS((LI - LH)) / (LI + LH)) * 100),5);

AV:=(LB + LJ);

LK:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));

LL:=(LB - LK);

LM:=(AV + LL);

LO:=((((2 * CLOSE) + HIGH) + LOW) / 4);

LP:=LLV(LOW,34);

LQ:=HHV(HIGH,34);

LR:=EMA((((LO - LP) / (LQ - LP)) * 100),13);

LS:=EMA(((0.667 * REF(LR,1)) + (0.333 * LR)),2);


thanks!

 

sniff:

REF is the abbreviation of Reference, I don't know the specific mean actually.

LA:=REF(CLOSE,1);

REF(array,n) look like array[n]

reference

 
thank you very much!
 

Доброго времени суток уважаемые форумчане!

Меня зовут Герман, мне 23 года, я являюсь трейдером компании "Инстафорекс"

Помогите в поиске нужного скрипта! Скрипт нужен для сетки отложенных ордеров.