Ahoj,
přecházím z VT na MT4 a chybí mi tam indikátor S/R, který ve VT rád používám. Neuměl by někdo z pokročilejších přepsat následující skript do MQL4?
Díky
Radek
Res :=valuewhen(1, Cross(Mov(C, LBP,S),C), HHV(H, LBP));
Sup :=valuewhen(1, Cross(C,Mov(C, LBP,S)), LLV(L, LBP));
v lidské řeči...
Resistance = when "CLOSE" cross moving average happen, draw the highest value for LPB period.
Support = when Moving average cross "CLOSE" happen, draw the Lowest value for LBP period.
Mov is moving average,
LBP is Look back period
HHV is Highest High value for LBP
LLV is Lowest Low value for LBP
Valuewhen(Nth, EXPRESSION,Dataarray) is Returns the value of the DATA ARRAY when the EXPRESSION was true on the Nth most recent occurrence.