![]() |
Forex Forums | ForexLasers.com |
#1
|
|||
|
|||
![]()
Hi guys,
I am new to forex. I am into programming since my teenage days. When I went through the awesome indicator, i manage to get the value of the period, but how do I obtain the colour of the bar of the awesome indicator. ie Green or Red. Thanks in advance to anyone who can help. |
#2
|
|||
|
|||
![]() Quote:
|
#3
|
|||
|
|||
![]()
Thanks to Jezzer1961.
I think I did not phrase my question properly. I need to know during the programming of an EA or indicator with the use of an awesome indicator, how do I in the programming process knows the colour of the bar? The function iAO returns a double which is the height of the awesome bar. Thanks. |
#4
|
|||
|
|||
![]() Quote:
You are correct, iAO does return a double for just a single buffer. The only variable which you can use within an EA is the bar shift. If you were using it within an EA, you would perhaps compare the value returned for one shift against the value returned for another shift. For instance, your entry condition might be: if(iAO(Symbol(),0,1)>iAO(Symbol(),0,2)) {Do this}; If you want the Awesome Oscillator source code, here is the link: MQL4 Codebase - Awesome Oscillator |
#5
|
|||
|
|||
![]()
Thanks alot Jezzer1961. You are a great help.
Thanks. |
![]() |
Thread Tools | Search this Thread |
|
|