The strategy should work in market replay ,Sim and Live. Its tested. Check your logs for issues
Also the strategy halt if the Daily target is reached.
// Daily Target
DailyLossLimit = -100; halt at -100
DailyProfitLimit = 200; halt at 200
DailyTradesCount = 5; halt when reached 5 trades
Adjust the settings for your needs
Thanks for the strategy Bcomas! Looks promising, however I was unable to make it work on my market replay. Any suggestions on what to do or which settings to change?
Thanks.
cskafan123
Sounds great, gonna try it out, thanks!
Thanks for the strategy Bcomas! Using a single chart in NT8 (latest) I got this error log : Indicator 'bcomasLargeTrades': Error on calling 'OnBarUpdate' method on bar -1: You are accessing an index with a value that is invalid since it is out-of-range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
Can you comment pls ? Regards Mike
Hello Futuretrader2,
It can be fixed if you go to the largetrades indicator (NinjaScript editor) into OnBarUpdate and change the minimum bars for trade with 100