obchodnik123:
Hello!
A total MQL programming newbie here. I decided to create my first custom indicator in MQL4 based on pin bars. When i finished the writing and compiled the code everything was allright, but when i decided to use it on chart i got the message in expert chart:
An indicator does not use OnTick, it uses OnCalculate.
It seems that it got deinitialized some some reasons...
Keep in mind that you are creating object with always the same name, in case of object already exists you will have some issues.
It's better for you need to build a custom indicator for that, not an EA.
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
Hello!
A total MQL programming newbie here. I decided to create my first custom indicator in MQL4 based on pin bars. When i finished the writing and compiled the code everything was allright, but when i decided to use it on chart i got the message in expert chart:
2020.02.06 14:33:38.665 Custom indicator PB_final EURUSD,M15: removed
2020.02.06 14:33:38.665 Custom indicator PB_final EURUSD,M15: loaded successfully
-and ofcourse nothing visible is loaded.
My indicator should create an arrow for buy and sell on/below the pinbar candle (i set my own conditions for pin bars which you can see in code below), but sadly it does nothing.
I am posting the code here and hopefully someone can teach me a thing or two about the issue im dealing with. If you have the time to help me please use the tactic of "speaking to a child" as i am a beginner in these things.