I have coded a very basic strategy. It simply enters long or short and always in the market. I did it to be able to understand the scripting language.
Here's the problem:
I have selected 2017 - 2019, 2 years time to backtest. And selected EURUSD 240 minute. But strategy only generates 10 trades in EURUSD and zero trades in GBPUSD.
Then I selected 60 minute. This time, strategy generated like 19 trades. However, it should already be in the market. This is a random strategy.
Is there a setup that i need to do before testing strategy? Also how can i understand that there's a new bar?
Thanks
Comment