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.
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
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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