chickensword wrote: Wed Feb 15, 2023 9:45 am
There is a Cumulative Price Change % indicator on tradingview that has source code my phones not letting me copy anything though
That was mentioned in the Pdf, and also is uni trend balance system for mt4 out there whichc was also menthioned
This one?
https://www.tradingview.com/script/NXm3 ... ce-Change/
If so, source code is below:
Code: Select all
//@version=3
study("Cumulative Price Change %")
val = input(4, type = integer, minval=1, title="Cumulative % Period")
//val1 = input(4, type = integer, minval=1, title="% Change Period")
deltaT = 0
sum = 0.0
for i = 1 to val
sum := sum + (100 * ((close[i] - open[i]) / open[i]))
deltaT := deltaT + ((close[i] - open[i]) > 0 ? 1 : -1)
//plot(ema((100*(close - open) / open),val1), color=red)
//osc = (100 * ((close - open) / open))
hline(0, title="Zero")
plot(sum)
//plot(deltaT, color=lime)