Try writing the following directive 'tester_everytick_calculate' in the EA
I've zeroed down the problem to when am using a lower or upper timeframe as the base for my custom indicator. when the data is not available in any of those timeframe i.e barscalculated < bars . it returns (0) which usually means calculate the data on the next tick until data is available. during the visual mode the number of bars calculated usually increase until it calculates the data, but in none visual mode the number of bars calculated stays the same. meaning it doesn't calculate data for new bars.
musingila # :
I've zeroed down the problem to when am using a lower or upper timeframe as the base for my custom indicator. when the data is not available in any of those timeframe i.e barscalculated < bars . it returns (0) which usually means calculate the data on the next tick until data is available. during the visual mode the number of bars calculated usually increase until it calculates the data, but in none visual mode the number of bars calculated stays the same. meaning it doesn't calculate data for new bars.
I've zeroed down the problem to when am using a lower or upper timeframe as the base for my custom indicator. when the data is not available in any of those timeframe i.e barscalculated < bars . it returns (0) which usually means calculate the data on the next tick until data is available. during the visual mode the number of bars calculated usually increase until it calculates the data, but in none visual mode the number of bars calculated stays the same. meaning it doesn't calculate data for new bars.
In this case, you need to use the correct indicator. Tip number 1: Throw away the multi-timeframe - first learn how to work with a single timeframe.
the multi-timeframe forms the base of my strategy and with a single timeframe indicator i've never gotten such an error
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
When I test my strategy using the visual mode the trades are executed at the precise and price and time but when i turn the visual mode off. No trades are executed. I have found the problem is in the multi-timeframe indicator am using. When visual mode is turned of it doesn't seem to calculate data and I don't know why is that. Any help will be highly appreciated
here is the code snippet for my indicator test strategy