iTime(NULL, PERIOD_D1, i) int Data=CopyRates(Symbol(),PERIOD_D1,0,5,PriceInformation);On MT4: Unless the current chart is that specific pair/TF referenced, you must handle 4066/4073 errors before accessing candle/indicator values.
Download history in MQL4 EA - Forex Calendar - MQL4 programming forum - Page 3 #26 № 4
On MT5: Unless the chart is that specific pair/TF, you must Synchronize the terminal Data from the Server.
Is
it mystical?! It is! - Withdraw - Technical Indicators - MQL5 programming forum
Timeseries
and Indicators Access / Data Access - Reference on algorithmic/automated trading language for MetaTrader 5
Synchronize
Server Data with Terminal Data - Symbols - General - MQL5 programming forum
SymbolInfoInteger
doesn't work - Symbols - General - MQL5 programming forum 2019.09.03
On MT4: Unless the current chart is that specific pair/TF referenced, you must handle 4066/4073 errors before accessing candle/indicator values.
Download history in MQL4 EA - Forex Calendar - MQL4 programming forum - Page 3 #26 № 4
On MT5: Unless the chart is that specific pair/TF, you must Synchronize the terminal Data from the Server.
Is
it mystical?! It is! - Withdraw - Technical Indicators - MQL5 programming forum
Timeseries
and Indicators Access / Data Access - Reference on algorithmic/automated trading language for MetaTrader 5
Synchronize
Server Data with Terminal Data - Symbols - General - MQL5 programming forum
SymbolInfoInteger
doesn't work - Symbols - General - MQL5 programming forum 2019.09.03
Hi William,
thanks for you comment. However the chart on which the expert is placed is the specific symbol / tf. And I use ontick
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
So I use this function to get the value of a trendline for a specific bar:
then I compare it with bar close using:
with
however when I tested this in real life today it produced entry= "buy" when it shouldn't.
Does anyone have an idea why it could happen?
Should I use ChartRedraw(0); ?