Forums › ProRealTime English forum › ProOrder support › Machine Learning in ProOrder ProRealTime › Reply To: Machine Learning in ProOrder ProRealTime
Hi @Nicolas, is it possible to take a look at this heuristic cycle limit initialisation code below? I’m using it at the very beginning of a system but it doesn’t take any trades.
The code below adds an extra HeuristicsAlgo “#3” to the code of a system that does work found here: https://www.prorealcode.com/topic/machine-learning-in-proorder/page/3/#post-121130
That page 3 system Juanj posted (#121130) only uses two algos: HeuristicsAlgo1 and HeuristicsAlgo2. I am attempting to get the machine learning/self optimising system to work with 3 algos using Ehler’s Universal Oscillator:
ValueX for the entry threshold, ValueY for exit threshold, and ValueZ for the bandedge setting.
When I’ve made systems using this machine learning code but without the heuristic cycle limit code, the results are very encouraging: https://www.prorealcode.com/topic/machine-learning-in-proorder/page/8/#post-126009
Thanks for any input,
Cheers Bard.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
once HeuristicsCycle = 0 once HeuristicsAlgo1 = 1 once HeuristicsAlgo2 = 0 once HeuristicsAlgo3 = 0 If HeuristicsCycle >= HeuristicsCycleLimit Then If HeuristicsAlgo1 = 1 Then HeuristicsAlgo2 = 1 HeuristicsAlgo1 = 0 HeuristicsAlgo3 = 1 ElsIf HeuristicsAlgo2 = 1 Then HeuristicsAlgo1 = 1 HeuristicsAlgo2 = 0 HeuristicsAlgo3 = 1 ElsIf HeuristicsAlgo3 = 1 Then HeuristicsAlgo1 = 1 HeuristicsAlgo2 = 1 HeuristicsAlgo3 = 0 EndIf HeuristicsCycle = 0 EndIf If HeuristicsAlgo1 = 1 Then etc |