Simulated Trading
Forums › ProRealTime English forum › ProOrder support › Simulated Trading
- This topic has 52 replies, 7 voices, and was last updated 3 years ago by zilliq.
Tagged: equity curve, simulated trades
-
-
12/25/2020 at 9:50 PM #155208
….and how would that equity curve look if you had a big loser so stayed out of the market until the simulated equity curve went positive (so totally missed that great bit of positive equity curve) and then entered a trade and that trade was a big loser so you stayed out of the market again until the simulated equity curve went positive (so totally missed that great bit of positive equity curve)? If you don’t know the answer then it is you would go broke faster than if you had taken every trade.
The idea is great but the reality is that you can easily turn a fantastic equity curve into an average or awful equity curve. Better to have a good strategy and know that the bad trades are compensated for by the good trades than look for a way to avoid the bad trades that might actually end up with you missing all the good trades and taking all the bad trades.
12/25/2020 at 10:03 PM #15521112/25/2020 at 10:17 PM #155213If the win rate is 90% then don’t worry about trying to miss the 10% losers. Worry about how much each win wins compared to how much each loser loses and forget about trying to avoid some of the 1 in 10 losers with simulated trading magic.
If you only have 110 trades in 3 years in a backtest then forward test it for the next 10 years before worrying about trying to avoid the 1 in 10 losers.
I’m only trying to save you time and effort. Make a good, well tested, robustness proved strategy before trying to turn a turd into a diamond with simulated trading.
1 user thanked author for this post.
12/26/2020 at 3:03 PM #15524612/27/2020 at 1:19 PM #155322I believe that this event that I propose is different.
There is no equity curve, the results will be different, without a doubt.It is not about average, nor about being above or below it.
Just an example:
The system reaches a maximum profit, if then it begins to lose, it would never operate again, there would be no bankruptcy.You’re mixing pears with Vonasi crocodiles.
12/27/2020 at 2:04 PM #1553321234567891011121314151617181920212223242526positionsize = 5lasttradestotal = trade1if lasttradestotal >= 0 and Maxprofit > Strategyprofit thentrading = 1endifif lasttradestotal < 0 and Maxprofit < Strategyprofit thentrading = 0endifif trading and not onmarket thenbuy positionsize contracts at marketbuyprice = closeendifif trading = 0 and not onmarket thenbuyprice = closetradeonmarket = 1endif12/27/2020 at 2:33 PM #155338Fran55 – I cleaned up the mess of cut and paste HTML and also inserted your PRT code. You must know by now where to find the ‘Insert PRT Code’ button?!
Please try to be much more careful when posting future messages in the forums.
12/27/2020 at 2:35 PM #15534012/27/2020 at 2:40 PM #15534212/27/2020 at 2:42 PM #155343Your code makes no sense at all. If you turn off trading by switching ‘trading’ to zero then you will never open a trade again and so strategyprofit will never change so you will never ever switch trading back on again. That’s why you have to simulate the trades and keep a record of them – but as I said before using simulated trades to decide when to turn trading on or off just gives you one more curve fit. Fit it one way and you hit all the winners in the back test and miss all the losers but you will just as easily hit all the losers in future trading when the distribution of wins and losses is in a different order to the past.
12/27/2020 at 2:52 PM #155345https://www.prorealcode.com/topic/drawdowns-safety/
This is an example, and correctly function on my bots, really good and similar results.
Minor risk, minor drawdown, similar economic results.
The only difference is operate to middle of money on next operations when drawdown.
In this case is, no operate on next operations when drawdown.
My logic say when the new code the new results are good.
12/27/2020 at 3:06 PM #15534812/27/2020 at 3:16 PM #15534912/28/2020 at 1:30 PM #155431Try something like this example code – and stop double posting and asking the same questions in multiple places. Follow the forum rules!
1234567891011121314151617181920212223242526272829303132defparam cumulateorders = falsepositionsize = 1spread = 1.6entrycond = close < open and close[1] < open[1]exitcond = (close > positionprice * 1.02) or (close < positionprice *0.95)once tradeon = 1if not onmarket and tradeon and entrycond thenbuy positionsize contract at marketentryprice = closeendifif not tradeon and entrycond thenentryprice = closeendifif (onmarket or not tradeon) and exitcond thensell at marketmyprofit = myprofit + (close - entryprice - spread) * positionsizemaxprofit = max(maxprofit, myprofit)if myprofit < maxprofit thentradeon = 0elsetradeon = 1endifendifgraph tradeon//graph myprofit//graph maxprofit12/28/2020 at 1:42 PM #155433….and here are the results of that stupidly simple strategy with and without simulated trading that stops tarding if you have a loss until the simulated equity curve goes back into profit. On the left with the simulated trade filter and on the right without it.
1 user thanked author for this post.
-
AuthorPosts
Find exclusive trading pro-tools on