Sorry but the ma is a ma of the pvt.Lezra wrote: Mon Jan 15, 2024 1:39 pm Hi mrtools, I know what's the problem. I check again and found that the MA actually plotting the price and not the PVT indicator so it is not a signal line of the PVT indicator. (I attached a screenshot that shows the indicator plotting in price).
Code: Select all
val[i] = iPvt(iGetPrice(inpPrice,open,high,low,close,i),(inpVol==VOLUME_TICK?tick_volume[i]:volume[i]),i,rates_total);
sig[i] = iCustomMa(inpMaType,val[i],SigPeriod,i,rates_total);
The values I get are not that big of a difference for me. One picture below using tick volume and the other using real volume.