- Perhaps you should read the manual, especially the examples. They all (including iCustom) return a
handle (an int.) You get that in OnInit. In OnTick you use the handle, shift and count to get the data.
Technical Indicators - Reference on algorithmic/automated trading language for MetaTrader 5
Timeseries and Indicators Access / CopyBuffer - Reference on algorithmic/automated trading language for MetaTrader 5
How to start with MQL5 - General - MQL5 programming forum - Page 3 #22 2020.03.08
How to call indicators in MQL5 - MQL5 Articles 12 March 2010Also see my example for encapsulating calls
Detailed explanation of iCustom - MQL4 programming forum 2017.05.23 -
IlowestNumber10=iLowest(symbol,PERIOD_D1,MODE_LOW,10,0);
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 - Simplify your code
Your code if (BoundWithValue[0]<50) return(true); else return(false);
simplified return BoundWithValue[0]<50;
thanks alot my problem solved...
edit my code and put handle off indicator in OnInit() and other in OnTick()
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
i'm new in mql5,
i want to develop expert to find stocks with conditions base on band bollinger (iBand).
with this below code i have Error code 4806 in BarsCalculated,
anybody can help me
thanks alot...