Forums › ProRealTime English forum › ProOrder support › Mother of Dragons trading strategy… › Reply To: Mother of Dragons trading strategy…
05/20/2020 at 9:01 AM
#132344
@franro – to do an optimisation, you would have a piece of code something like this:
12345678910111213 Period= p1inner = 2*weightedaverage[round( Period/2)](typicalprice)–weightedaverage[Period](typicalprice)HULLa = weightedaverage[round(sqrt(Period))](inner)c1 = HULLa > HULLa[1]c2 = HULLa < HULLa[1]indicator1 = SuperTrend[m,n]c3 = (close > indicator1)c4 = (close < indicator1)mx1 = average[mas,mas2](close)c11 = mx1 > mx1[1]c12 = mx1 < mx1[1]In this example, p1, m, n, mas, mas2 are all variables, they’re placeholders for what’s in the optimisation box. Once you find the optimum values, you replace each of those with the corresponding value. That’s what I mean when I say ‘insert them in the code’. Then you have to delete everything from the opt box.
Hi,
FYI The Hull moving average is included in PRT. It will accelerate the strategy 😉
Cheers
1 |
HullAverage[20](close) |