
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
Why? Just get the value of the indicator into the EA and do what you want with it. You should encapsulate your iCustom calls to make your code self-documenting.
Detailed explanation of iCustom - MQL4 and MetaTrader 4 - MQL4 programming forum
Something likeBecause the D1 has lots of ticks. Don't do per tick what you can do per bar or per order.
The reason I would like to avoid using the indicator is that I am a seller here on MQL5 and you are not allowed to add additional files to your products. That is why I would like to build in the logic into the EA. I am on a good way (using SetArraysAsSeries etc.) but for some reasons the signal is sometimes not in sync with the indicator (Heiken_Ashi_Smoothed.ex4). On a new bar I am doing this (arraysize it set to 500):
General rules and best pratices of the Forum. - General - MQL5 programming forum
Use the publicly released code - Expert Advisors and Automated Trading - MQL5 programming forum
General rules and best pratices of the Forum. - General - MQL5 programming forum
Use the publicly released code - Expert Advisors and Automated Trading - MQL5 programming forum
Thanks a lot. Everything is clear now. I have also edited my previous post.
Sorry, I was only asking because there was no real confirmation that any or both of the solutions were working. I am also not sure if Marco's suggestion using the PRICE_MEDIAN option was an answer to that the backtesting was slow or if it was posted as a total solution.
Confirmation? :)
Who exactly should confirm? A teacher?
Without joking : when it comes to coding there is one and only one "expert" that confirms all the code - the computer. Either the code works as it is supposed to work or it does not work. No talking or fancy blabbing or getting angry type of "persuading" works for code. The ultimate "judge" does not know how to lie, does not know how to make false statements - so simply take the code, paste it in your code editor compile, and if it works you have the confirmation. That is all