Volume Step Indicator
Posted: Wed Oct 30, 2019 2:46 pm
Dear Sir,
could you please convert the following code from ProRealtime into an MT4 indicator?
Thanks a lot
------
p=10 //Please add as a variable
if(barindex>10) then
sRange = (high-low)
if(high<high[1] AND low<low[1]) then
VolStep = VolStep[1]-sRange*Volume
elsif(high>high[1] AND low>low[1]) then
VolStep = VolStep[1]+sRange*Volume
else
VolStep = VolStep[1]
endif
endif
avg = exponentialaverage[p](VolStep)
RETURN VolStep coloured(255,0,0) as "Volume Step", avg coloured(0,0,255) as "signal line"
could you please convert the following code from ProRealtime into an MT4 indicator?
Thanks a lot
------
p=10 //Please add as a variable
if(barindex>10) then
sRange = (high-low)
if(high<high[1] AND low<low[1]) then
VolStep = VolStep[1]-sRange*Volume
elsif(high>high[1] AND low>low[1]) then
VolStep = VolStep[1]+sRange*Volume
else
VolStep = VolStep[1]
endif
endif
avg = exponentialaverage[p](VolStep)
RETURN VolStep coloured(255,0,0) as "Volume Step", avg coloured(0,0,255) as "signal line"