Coding Question

 

Evening All:

I was wondering how to access information inside a function say the Awesome oscillator or the Accelerator indicator.

On bar close I wish to check the Awesome Oscillator and place a buy/sell stop depending on whether the bar is red or green (increasing or decreasing). Is there an easy way to do this. Hope this is clear. Thanks in advance. Cheers.

Gaf

 
Gaf:
Evening All:

I was wondering how to access information inside a function say the Awesome oscillator or the Accelerator indicator.

On bar close I wish to check the Awesome Oscillator and place a buy/sell stop depending on whether the bar is red or green (increasing or decreasing). Is there an easy way to do this. Hope this is clear. Thanks in advance. Cheers.

Gaf

Please consult MQL4: automated forex trading, strategy tester and custom indicators with MetaTrader for build-in indicators and their use in an EA.

For custom indicators you can use iCustom() function.

 

Thanks!

Thanks for your prompt reply! I'll read through and then I'll post if I still have questions. Cheers.

Gaf