When I run it on the market replay it works well (100-150 orders per day). But if I start it on the sim account there are only few very rare orders during the day. I use GetCurrentAsk and GetCurrentBid into my algorithm.
No matter if I use:
- calculate on close bar or false.
- time frame: ticks or range.
- delays: from 0 to 150.
- slippage: from 0 to 10
- market or limit orders.
For example, if I run my strategy on market replay with slippage 5 and using market or limit orders it works well. But if I run it on sim account with slippage 0, delays 0 (perfect conditions) It generates only few orders.
How to improve the strategy? I think that the using ask=bid for calculating signals can help (look like market replay). Can I code it?
Please turn me in the right direction into my searches.
Best regards, Alex
Comment