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
What is the problem?
Since your Ask2 and Bid2 are 0, why not add this line after one of them?
And see if there's any useful information?
Did you call download_history for your "second pair," second TF?
Did you call download_history for your "second pair," second TF?
And here is my start function:
in which I put GBPUSD as SecondPair input and do this backtest on GBPAUD chart.
Since your Ask2 and Bid2 are 0, why not add this line after one of them?
And see if there's any useful information?
Error was 4106 which means "Unknown symbol."
Then I disabled the line below as well:
download_history(SecondPair,PERIOD_H4);
And got error 4066 at first (Requested history data in updating state.) Then it turned 4106 for the rest of backtesting.I've added this line you mentioned to my start function right after defining Ask2,Bid2 when I've disabled the line below in order to let the candles start and chart goes on
Error was 4106 which means "Unknown symbol."
Then I disabled the line below as well:
And got error 4066 at first (Requested history data in updating state.) Then it turned 4106 for the rest of backtesting.I suspect your symbol name isn't just "GBPUSD"... it might have extra characters somewhere... have u tried this:
before to verify that the symbol name is just six cap letters?
I suspect your symbol name isn't just "GBPUSD"... it might have extra characters somewhere... have u tried this:
before to verify that the symbol name is just six cap letters?
My symbol() function shows "GBPAUD" since I put it on GBPAUD chart.
Spite that I'm using normal demo account for backtesting, Exactly 6 cap letters. However I've tried this you suggest and got expected result.
I have a warning also when I compile the code: "implicit enum conversion" which is there I've highlighted below. What does that mean exactly?
I think I found the reason why you get zeros... I put these lines in a script and run it on my MT4:
And I realised that Ask2 and Bid2 will be zero for symbols not in my market watch... but once I include them in my market watch, I can get their bid and ask. There is no need to be bothered about history data.
I think I found the reason why you get zeros... I put these lines in a script and run it on my MT4:
And I realised that Ask2 and Bid2 will be zero for symbols not in my market watch... but once I include them in my market watch, I can get their bid and ask. There is no need to be bothered about history data.
I have those symbols in my market watch window, upper left corner of my MT4.
But if you mean I should include them into my code, How did you include them by code? (If I misunderstood please clarify me since I'm not that pro :D)
I have those symbols in my market watch window, upper left corner of my MT4.
But if you mean I should include them into my code, How did you include them by code? (If I misunderstood please clarify me since I'm not that pro :D)