Lucky, attendons lundi pour voir en conditions réelles.
Sinon, on peut remplacer DPO par MyDPO avec le code suivant :
// **** DPO of past moving average and not future ones :
Spoiler:
Code : #
// **** DPO of past moving average and not future ones :
p = 14
avg = average[p](customclose)
r = round(p/2) +1
b = customclose - avg[r]
myDPO = b
RETURN myDPO as "Detrented Price Oscillator of past datas"