Pathfinder Trading System
Forums › ProRealTime English forum › ProOrder support › Pathfinder Trading System
- This topic has 1,834 replies, 139 voices, and was last updated 1 year ago by CFD AutoTrading.
Tagged: Pathfinder
-
-
08/23/2017 at 10:46 AM #44418
Hey there,
I have again some problems with the system. In backtest/demo it switched from 5 long to 1 short on thursday. In live account it only closed the 5 long but didn’t start the short trade. The problem seems to be the same like a few weeks ago with the “limited risk” account (no opposite trades possible) so the changes seem not to work.
Yesterday the system opened 3 long contracts in backtest/demo but in live account niothing happened (also no denied orders). This is a new problem. So where is the difference between live and demo?
08/23/2017 at 8:42 PM #4449208/24/2017 at 5:48 AM #4450608/24/2017 at 7:49 AM #4451109/01/2017 at 3:00 PM #4512109/01/2017 at 3:20 PM #4512209/01/2017 at 3:37 PM #4512309/01/2017 at 3:51 PM #4512409/01/2017 at 4:08 PM #4512609/01/2017 at 5:47 PM #4513009/01/2017 at 7:57 PM #45135+3
12 069 on demo
but the strange thing is that the system has stopped because of a preloadbar issue (not enough historical data) and the position is still open (and i have set the option to close if the system is stopped)
i suppose this is a demo problem? because i have never had this problem when running prorder live
09/01/2017 at 8:56 PM #4516709/01/2017 at 8:57 PM #4516809/02/2017 at 8:43 AM #45203Hello,
I have understood where the issue was, thks
But I discovered a bug too. The strat is well adapted for someone who has 10k capital and uses 1 mini contract.
But if you want to increase positionsize from 1 to 1.5 or 5, it won’t multiply your P&L by the multiplicator factor and remain at the same level!!
Instead of the code given by Reiner :
12345678910111213141516// define position and money management parameterONCE positionSize = 1ONCE maxDynamicPositionSize = 2 // >1 with dynamic position sizing; 1 withoutONCE maxPositionSizeLong = 10ONCE maxPositionSizeShort = 10// dynamic position sizing based on weekly performanceONCE profitLastWeek = 0if DayOfWeek <> DayOfWeek[1] and DayOfWeek = 1 thenif strategyProfit > profitLastWeek + 1 thenpositionSize = min(maxDynamicPositionSize, positionSize + 1) // increase riskelsepositionSize = max(1, positionSize-1) // decrease riskendifprofitLastWeek = strategyProfitendifI would propose this solution
12345678910111213141516// define position and money management parameterONCE positionSize = 1 // default start sizeONCE trendMultiplier = 2*positionsize // >1 with dynamic position sizing; 1 withoutONCE maxPositionSizeLong = 10*positionsize // maximu size for a long positionONCE maxPositionSizeShort = 10*positionsize // maximum size for a short position// dynamic position sizing based on weekly performanceONCE profitLastWeek = 0IF DayOfWeek <> DayOfWeek[1] and DayOfWeek = 1 THENIF StrategyProfit > profitLastWeek + 1 THENpositionSize = min(trendMultiplier, positionSize + 1) // increase riskELSEpositionSize = max(positionsize*1, positionSize - 1) // decrease riskENDIFprofitLastWeek = strategyProfitENDIFas attachments, you find Reiner’s code with positionsize=1, Reiner’s code with positionsize=5, and my proposal with positionsize=5
it will be more effective when we ‘ll be rich :-)))
1 user thanked author for this post.
09/03/2017 at 1:16 PM #45286 -
AuthorPosts
Find exclusive trading pro-tools on