Good morning to everybody, I need a little help to understand the algorithm construction process in probuilder of the following indicators examples.
How to subtract or add to an indicator value, the value of the previous period (yesterday’s indicator value).
For example the PVT:
%var = (close – yesterday’s close) / (yesterday’s close)
PVT = %var * today’s volume + yesterday’s PVT
Or the Williams acc/distr.
TRH = the highest of (yesterday’s close or today’s high)
TRL = the smallest of (yesterday’s close or today’s low)
If the today’s close > yesterday’s close then A/D = today’s close – TRL
if the today’s close < the yesterday’s close then A/D = today’s close – TRH
If the today’s close = yesterday’s close then A/D = 0
A/D William = today’s A/D + yesterday’s A/D William
Thanks so much
Max