I want to pick up the colour change from green to red and vice versa on the Accelerator Oscillator and send an alert.
I don't see any change of colour in the code. What variables would I use to confirm the colour change?
I programmed this before, below is the code you would need to have in your EA. Analyze the alerts, and when the AC is green, i believe ACcolorGreen has an integer value, and ACcolorRed is null. When AC is red, ACcolorGreen should be null, and ACcolorRed should be some integer value. Experiment with this, and you can program an alert based on the color change by using current values and previous values.
double ACcolorGreen=iCustom(NULL,0,"Accelerator",1,0); double ACcolorRed=iCustom(NULL,0,"Accelerator",2,0); Alert(ACcolorGreen);Alert(ACcolorRed);
Regards,
c0d3
Great one!! thanks for sharing..
can you add arrows and email alert? also can you add option to turn off the sound and pop-up?
ciao
Alex
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I want to pick up the colour change from green to red and vice versa on the Accelerator Oscillator and send an alert.
I don't see any change of colour in the code. What variables would I use to confirm the colour change?