
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
Call the indicator handle in OnInit() not in OnTick()
thanks Raj.
can you look to my code and find what's missing?
because it is end up with no value calculated:
thanks Raj.
can you look to my code and find what's missing?
because it is end up with no value calculated:
Don't declare the indicator's handle variable at two places. Use the below code and make sure you are using the correct name of the indicator in iCustom.
Don't declare the indicator's handle variable at two places. Use the below code and make sure you are using the correct name of the indicator in iCustom.
you are awesome Raj ^__^
thanks for your patience and manner.
you helped a lot. you were a great help brotha
Indicators have buffer, and is called by OnCalculate. EAs/scripts don't have buffers, and are called by OnTick()/OnStart().
You can't mix them. Either you have an indicator, EA or script. Your code is bogus.
Event Handling Functions - Functions - Language Basics - MQL4 Reference
Indicators have buffer, and is called by OnCalculate. EAs/scripts don't have buffers, and are called by OnTick()/OnStart().
You can't mix them. Either you have an indicator, EA or script. Your code is bogus.
Event Handling Functions - Functions - Language Basics - MQL4 Reference
yeah. you are right. I am new in writing this stuff and full of questions myself. I would appreciate if you could give me a link that helps me as a starter. thanks