Please disregard this post.
Realised that this is an MQL5 forum, I am using MQL4.
P.S> I have figured out how to get all indicators loaded and values captured - the difficulty now is getting the logic right for reading two inndicator lines crossing each other for entry condition, struggling!
mcornbill:
That's fine, we accept both MQL4 and MQL5 discussions here now.Please disregard this post.
Realised that this is an MQL5 forum, I am using MQL4.
P.S> I have figured out how to get all indicators loaded and values captured - the difficulty now is getting the logic right for reading two inndicator lines crossing each other for entry condition, struggling!
As for the logic, all you need is something like: Was the last bar below and is the new bar above? Vice versa for a cross down
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
Hi Guys
I have a template EA script (Robust_EA_Template.mq4 from (commercial link removed by moderator) and have it compiling / working.
I have two indicators that I want this EA to read it's values from. The ALF indicator (AdaptiveLaguerreFilter.mq4), which I need to run in two different timeframes and return its value. And the Linear Price Bar.mq4 indicator, which I also need to return its value.
I think the difficulty is going to come when I need to read the value of the ALF indicator, every minute, running on two different timeframes:
1. Once as if it were being run on a 5 minute chart
2. Once as if it were being run on a 1 minute chart
I know that iCustom is a command to return the values of indicators, however I'm stuck just knowing how to get these indicators into the main EA code. I know I will be checking for the values of these indicators in the "ShortSignal" and "LongSignal" parts of the below EA code:
Are there any fine folk out there that could help me out please? I'm ok with basic programming, but a little out of my depth with MQL!
Thanks
Mark