Traduction sur PRT
Ca m'a pris 2 mn, remerciez plutôt Bernard
price =((High+Low)/2)
MaxH = Highest[Len](Price)
MinL = Lowest[Len](Price)
if (MaxH-MinL)<>0 then
Value1 = 0.5*2*((Price-MinL)/(MaxH-MinL)-0.5)+0.5*Value1[1]
If Value1 > 0.9999 then
Value1 = 0.9999
endif
If Value1 < -0.9999 then
Value1 = -0.9999
endif
if (1-Value1) <>0 then
Log1 = log(1+Value1)/(1-Value1)
Fish = (0.25*Log1) + (0.5*Fish[1])
endif
endif
return fish, fish[1]
Ca m'a pris 2 mn, remerciez plutôt Bernard
price =((High+Low)/2)
MaxH = Highest[Len](Price)
MinL = Lowest[Len](Price)
if (MaxH-MinL)<>0 then
Value1 = 0.5*2*((Price-MinL)/(MaxH-MinL)-0.5)+0.5*Value1[1]
If Value1 > 0.9999 then
Value1 = 0.9999
endif
If Value1 < -0.9999 then
Value1 = -0.9999
endif
if (1-Value1) <>0 then
Log1 = log(1+Value1)/(1-Value1)
Fish = (0.25*Log1) + (0.5*Fish[1])
endif
endif
return fish, fish[1]
Envoyé par StarGate1
Voir le message
Commentaire