Hi
do you know if it possible to optimize the parameter including in the TF coding ?
timeframe(x minutes,updateonclose)
if not, is there a roundabout way of doing it ?
No, variables are not allowed.
i come back about this topic..
would it be possible to add it in the future evolution of PRT ?
It seems to me that it would be great to have it in order to determine the best timeframes for a strategy
or if not possible, the possibility to encapsulate the timeframes in conditions (
choice = X (parameter value for BT)
if choice = 1 then
timeframe (1 hours,..)
else if choice = 2 then
timeframe (2 hours,..)
endif
*************
OR
timeframe (X hours,..)
for example
i had this same problem and i fixed it with this kludge
timeframe(5m)
x5 = ExponentialAverage[9](close)
timeframe(15mn)
x15 = ExponentialAverage[9](close)
timeframe(60mn)
x60 = ExponentialAverage[9](close)
timeframe(default)
TF = 15 //TF flag
if TF = 15 then
EMA = x15
//...
endif