Forums › ProRealTime English forum › ProOrder support › Mother of Dragons trading strategy… › Reply To: Mother of Dragons trading strategy…
05/05/2020 at 9:01 PM
#130140
@Franro – to do an optimisation, you would have a piece of code something like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Period= p1 inner = 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.