- Indicator installation problem please help !
- Can't use EA I downloaded
- Wrong Values
Probably because your code has other event handlers not used in Indicators. For example if your code has an OnTick() event handler, then it will be classified as an EA and not an Indicator. So, remove the other event handlers and other non Indicator things.
To find your hidden product, should you wish to reactivated it, then go Market→My Products→Hidden (https://www.mql5.com/en/market/my/hidden)
Probably because your code has other event handlers not used in Indicators. For example if your code has an OnTick() event handler, then it will be classified as an EA and not an Indicator. So, remove the other event handlers and other non Indicator things.
To find your hidden product, should you wish to reactivated it, then go Marker→My Products→Hidden (https://www.mql5.com/en/market/my/hidden)
You cant use OnStart() on an Indicator. That is for Scripts and Services, not Indicators nor EAs.
EDIT: For Indicators, you can only use OnInit(), OnDeinit(), OnCalculate(), OnChartEvent() and OnBookEvent().
You cant use OnStart on an Indicator. That is for Scripts and Services, not Indicators nor EAs.
I agree with you 100% but still All the indicator that i have, use the onstart() just because i am using hide/ show button and they function normally.
I agree with you 100% but still All the indicator that i have, use the onstart() just because i am using hide/ show button and they function normally.
I repeat, you can't use OnStart() in Indicators, even for non Market products. It is reserved for the handling Scripts and Services. If you are using it in your own Indicators, then you are coding it incorrectly. OnStart is never called in Indicators. You are probable calling it yourself as a normal function.
Also, please don't mix this up with the old style of coding which used the "start()" event handler.
Forum on trading, automated trading systems and testing trading strategies
Difference between OnStart() and OnTick()
Fernando Carreiro, 2022.03.05 00:02
You are mixing things up. The old "start()" event handler is from the old (almost obsolete) ways of coding MQL4 and has nothing to do with the newer "OnStart()" of MQL4+/MQL5.
"OnTick()" handles tick events in an Expert Advisors (EA) and is called on new ticks to be processed (in MQL4+/MQL5), while the "OnStart()" is called only once when running a Script (MQL4+/MQL5) or Service (only available on MQL5).
"OnTick()" is not used in Scripts, Services nor Indicators, while "OnStart()" is not used in EAs nor Indicators.
You should not be using the old ways to code in MQL4. Stick with the more modern MQL4+ which is more compatible with MQL5.
Also, please note that by the newer rules of the Market, you cannot publish "demos". They have to be fully pledged working products without any limitations. If you publish "demos" they can end up being removed and if you insist you can end up being banned.
Please read the following: Updates in Rules to improve Market products

- 2021.06.11
- www.mql5.com
Also, please note that by the newer rules of the Market, you cannot publish "demos". They have to be fully pledged working products without any limitations. If you publish "demos" they can end up being removed and if you insist you can end up being banned.
Please read the following: Updates in Rules to improve Market products
Yes Feranando,
I have added my properties:
#property copyright "**"
#property link "**"
#property version "1.00"
#property strict
#property description "**"
#property icon "**"
#property indicator_chart_window
#property indicator_buffers 1
#property indicator_color1 Red

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use