Download Aroon Swing indicators

aroonWe’ll be glad if you rate the indicator and throw in some of your reviews or ideas by publishing it within the comment section once you are already settled to make use of this Aroon Swing and find this indicator as beneficial for Forex. Along with your comments, ratings and testimonials, you can also assist your fellow Forex investors to try out such indicators. We, the currency traders are consistently seeking much better indicators for a more accurate trade. And we’re wishing that you will be helped by this Aroon Swing indicator in locating an even more accurate trade or having better choices for trade and also generate greater revenue. We aim to locate all the very best Forex indicators like Aroon Swing. When we find one, we will upload them instantly to our site for people to have access on its free download and have much better traders.

[php]</pre>
//+——————————————————————+
//| Aroon Horn.mq4 |
//| [email protected] |
//| |
//+——————————————————————+
#property copyright "[email protected]"
#property link "mailto:[email protected]"

#property indicator_separate_window
#property indicator_buffers 2
#property indicator_color1 Blue
#property indicator_color2 Red
//—-
extern int Aroon_Period=10;
//—-
double Buffer1[];
double Buffer2[];
//+——————————————————————+
//| Custom indicator initialization function |
//+——————————————————————+
int init()
{
//—- indicators
SetIndexStyle(0, DRAW_LINE, STYLE_SOLID, 1);
SetIndexBuffer(0, Buffer1);
SetIndexStyle(1, DRAW_LINE,STYLE_SOLID, 1);
SetIndexBuffer(1, Buffer2);
//—- name for DataWindow and indicator subwindow label
IndicatorShortName("Aroon Horn" + "(" + Aroon_Period + ")");
SetIndexLabel(0, "Aroon Up");
SetIndexLabel(1, "Aroon Down");
//—-
return(0);
}
//+——————————————————————+
//| Custor indicator deinitialization function |
//+——————————————————————+
int deinit()
{
//—-
return(0);
}
//+——————————————————————+
//| Custom indicator iteration function |
//+——————————————————————+
int start()
{
double HighestBar, LowestBar, aroonUp, aroonDn;
for(int shift = Bars – Aroon_Period; shift >= 0; shift–)
{
HighestBar = Highest(NULL, 0, MODE_HIGH, Aroon_Period – 1, shift);
LowestBar = Lowest(NULL, 0, MODE_LOW, Aroon_Period – 1, shift);
//—-
aroonUp = 100 – ((HighestBar – shift) / Aroon_Period) * 100;
aroonDn = 100 – ((LowestBar – shift) / Aroon_Period) * 100;
//—-
if(aroonUp == 0)
{
aroonUp = 0.0000001;
}
//—-
if(aroonDn == 0)
{
aroonDn = 0.0000001;
}
Buffer1[shift]=aroonUp;
Buffer2[shift]=aroonDn;
}
//—-
return(0);
}
//+——————————————————————+

<span style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px;">[/php]
[php]

[/php]

Click Here to Download

2 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *