hi everyone
my result of probacktest tick by tick moded and real working system as per attached. why there is difference between real automated system trading and probacktest. how can we trust reliability of our trading system?!
actually in my system i look for small pips as TP. entry at my preferred buy limit and sell limit orders every 1h candle. and position will close after 1h candle finished.
my code as per below.
Defparam Cumulateorders=false
price=close-(0.5*AverageTrueRange[10](close))
buy 1 contracts at price limit
price=close+(0.5*AverageTrueRange[10](close))
sellshort 1 contracts at price limit
if barindex-tradeindex=0 then
exitshort at market
sell at market
endif
set target pprofit 3
set stop ploss 150
sorry. the code actually traded after 10th October time 11 am as per charts attached.
If you use limit/stop orders in your code the backtest will always differ to some extend from live results. The reason for this is that in backtest you will receive a fill for your limit/stop order “when touched”. This rarely happens in live trading. Price usually has to trade through your limited for your order to be filled.
Did you include spread in your backtests?
actually, not with spread in backtest. but some entry is not taken in real. how? is what despair said technically true?
how if i use this system for 5 different markets at the same time can disrupt the system action?
1.) What Despair said, is true. No shit. 😉
2.) You can run your system on as many markets as PRT allows without them interfering each other.
Please see the file attached. why there is no buy limit order at the same time?
Maybe you try to go down to a shorter timeframe instead of trying to open and close trades on the same bar.
actually, not with spread in backtest
This is where you should start from to understand why there are differences between your backtests and the real time trading. The spread between Ask and Bid should always be set in your backtest, find what is the average spread for the instrument at your broker website.