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
here is one, the sell not working here too IINWMARROWS.mq4
You posted an indicator. Indicators can not trade.
Same issue; indicators can not trade.
Where is your EA code referencing either of those indicators?
Do you really expect an answer? There are no mind readers here and our crystal balls are cracked.
How To Ask Questions The Smart Way. (2004)
Be precise and informative about your problem
We can't see your broken code.
Always post all relevant code (using Code button) or attach the source file.
You posted an indicator. Indicators can not trade.
Same issue; indicators can not trade.
Where is your EA code referencing either of those indicators?
Do you really expect an answer? There are no mind readers here and our crystal balls are cracked.
How To Ask Questions The Smart Way. (2004)
Be precise and informative about your problem
We can't see your broken code.
Always post all relevant code (using Code button) or attach the source file.
No, I can not. You posted code accessing an unknown indicator. Then you posted indicators and not the corresponding EA code.
Your indicator “indicator.mq4” is broken.
After the first run, prev_calculated equals rates_total and the loop never runs.
How to do your lookbacks correctly #9 — #14 & #19 (2016)
“IINWMARROWS.mq4” is very old. It also looks at a future bar to paint the current one. Avoid.
Your indicator “indicator.mq4” is broken.
After the first run, prev_calculated equals rates_total and the loop never runs.
How to do your lookbacks correctly #9 — #14 & #19 (2016)
“IINWMARROWS.mq4” is very old. It also looks at a future bar to paint the current one. Avoid.
This can't be the same issue with all my indicators, some that have worked with fine are now giving same issue.
Selling is always the general problem. I think it is of a general problem and not for the indicators
or could it be a malware or something? I just don't knw
RE: your indicator.mq4 that you posted.
Open your indicator.mq4 in the mql4 editor. You will see this relevent code and returns as listed below.
You need to Print the returns for your code so you can see what it says in the terminal.
IE:
Return shows the Buffers are == EMPTY_VALUE which also equals 2147483647.
Also the arrays are initialized with EMPTY_VALUE that is also = 2147483647
See my expert terminal return here:
If this below comparison == true, then it's going to SELL, as will your BUY which is doing the same thing. The Buy = true first this is why it Buys' but then your close trade code that you did NOT post for anyone is likely closing this trade because the SELL is now also true and wants to SELL.
Code is read from top to bottom so your BUY happens first, and you believe it's working but it's not. That is just a happenstance of the order of the code reading.
If your return = true it will buy or sell as designed.
Your close trade code is not shown but I suspect it is doing what is should do when buy or sell condition is true, opening and closing trades as it should because these conditions are true.
https://www.mql5.com/en/forum/146359
I am a novice so this may be a wrong advise, but here is my idea.
RE: your indicator.mq4 that you posted.
Open your indicator.mq4 in the mql4 editor. You will see this relevent code and returns as listed below.
You need to Print the returns for your code so you can see what it says in the terminal.
IE:
Return shows the Buffers are == EMPTY_VALUE which also equals 2147483647.
Also the arrays are initialized with EMPTY_VALUE that is also = 2147483647
See my expert terminal return here:
If this below comparison == true, then it's going to SELL, as will your BUY which is doing the same thing. The Buy = true first this is why it Buys' but then your close trade code that you did NOT post for anyone is likely closing this trade because the SELL is now also true and wants to SELL.
Code is read from top to bottom so your BUY happens first, and you believe it's working but it's not. That is just a happenstance of the order of the code reading.
If your return = true it will buy or sell as designed.
Your close trade code is not shown but I suspect it is doing what is should do when buy or sell condition is true, opening and closing trades as it should because these conditions are true.
https://www.mql5.com/en/forum/146359