by fxlion » Fri Dec 02, 2016 5:29 am
hi apprendice ,
can you create strategy based on this indicator:
buying conditions:
if(source.volume[period] >= ma_volume.DATA[period] * PVA_Rising_Factor)
and (source.close[period] > source.open[period]) then buy
elseif {(source.high[period]-source.low[period])*source.volume[period]}
>= {mathex.max( Range, period -PVA_Climax_Period, period-1 )}
or (source.volume[period] >= ma_volume.DATA[period] * PVA_Extreme_Factor)
and (source.close[period] > source.open[period]) then buy
selling conditions:
if(source.volume[period] >= ma_volume.DATA[period] * PVA_Rising_Factor)
(source.close[period] < source.open[period]) then sell
elseif {(source.high[period]-source.low[period])*source.volume[period]}
>= {mathex.max( Range, period -PVA_Climax_Period, period-1 )}
or (source.volume[period] >= ma_volume.DATA[period] * PVA_Extreme_Factor)
and (source.close[period] < source.open[period]) then sell