Forums › ProRealTime English forum › ProOrder support › Pathfinder Trading System › Reply To: Pathfinder Trading System
Hi Guys,
Hope you are all well. After a break it’s time to review and optimize the Pathfinder 4H robots.
I have checked the DAX version and unfortunately the current DAX market volatility delivers no profits so far. Please find attached a new version V7 containing error fixes, improvements and new features.
V7 release notes:
- fixed the preloadbars error (Thanks manel)
- fixed the error regarding maxPositionSizeShort variable
- fixed the erroneous calculation of the short position size
- add order cumulation for short trades
- add dynamic position sizing based on weekly performance (Thanks Maz for the idea)
- change the rule engine (add previous daily High as short signal)
- remove dynamic max position size calculation
- optimized all relevant parameters
The new dynamic position size calculation based on the weekly performance is responsible for the much better results and of course for the slightly higher drawdown.
1 2 3 4 5 6 7 8 9 10 11 12 |
ONCE maxDynamicPositionSize = 2 // >1 with dynamic position sizing; 1 without //... // dynamic position sizing based on weekly performance ONCE profitLastWeek = 0 if DayOfWeek <> DayOfWeek[1] and DayOfWeek = 1 then if strategyProfit > profitLastWeek + 1 then positionSize = min(maxDynamicPositionSize, positionSize + 1) // increase risk else positionSize = max(1, positionSize-1) // decrease risk endif profitLastWeek = strategyProfit endif |
The risk is controlled by the variable maxDynamicPositionSize. A value > 1 (default is 2) works as a booster and a value of 1 turns of the feature.
I’ll check the other Pathfinder robots as well.
Best, Reiner