I was wondering if any real coders (ie coders who are not just simple hackers like myself) would be able to help with this:
The goal is to be able to see whether the upper trendline or lower trendline of the attached Mouteki indicator has been broken by price.
In order to do this, I need to figure out how to get the levels for each of these trend lines for the current / previous bar. (I have not decided whether I will want the EA to wait for the bar to close, or whether I will let it trigger a trade based on price breaking through on the current bar yet.)
Once I know these trend line levels, I can then compare with the current price and see whether the price is above the upper trendline or below the lower trendline.
My problem is that I don't know how to set up an iCustom call for this indicator to have it tell me the above required values.
Could someone more experienced than myself:
The goal is to be able to see whether the upper trendline or lower trendline of the attached Mouteki indicator has been broken by price.
In order to do this, I need to figure out how to get the levels for each of these trend lines for the current / previous bar. (I have not decided whether I will want the EA to wait for the bar to close, or whether I will let it trigger a trade based on price breaking through on the current bar yet.)
Once I know these trend line levels, I can then compare with the current price and see whether the price is above the upper trendline or below the lower trendline.
My problem is that I don't know how to set up an iCustom call for this indicator to have it tell me the above required values.
Could someone more experienced than myself:
- Reply with the iCustom function calls which will call the information required above.
- Give a little background as to the process of deduction used so that this can be a learning experience for me and anyone else reading.
Thank you in advance!
Invisible
EDIT:
I should also add that the EA I am wanting to incorporate this in is a multi-currency EA which runs off a single chart, so the currency pair that it will need to check the trend lines for may well be one that is not open on the terminal.
Attached File(s)
Mouteki.mq4
20 KB
|
460 downloads