An indicator cannot buy and sell
you need an expert advisor
- indicators can not trade.
-
if (PRICE_CLOSE > PRICE_OPEN ) {
PRICE_CLOSE equals zero and PRICCE_OPEN equals one. Zero is never greater than one.
- You never made any buffers.
"Init" is not the same as "init."
You should stop using the old event handlers and IndicatorCounted() and start using new event handlers.
Event Handling Functions - MQL4 Reference
How to do your lookbacks correctly - MQL4 programming forum #9-14 & #19 (2016.05.11)
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 build this indicator whitch has the task of buyng when the ADX is greater than 30 and the candle is bullish and sell when the ADX is greater than 30 and the candle is bearish , but it does not work and I cannot enderstand why , can you tell me where i went wrong ?
Thank you in advance for the answer!!
this is the code :