Download KiS Avg indicators

kisAlmost certainly this mq4 code works with all the various versions of MT out in the market, after correctly trying it with MT4 (Metatrader 4) and MT5 (Metatrader 5). Using the data collected from tests , we could make sure there will no problems with the compatibility with product

In case you really like or find this KiS Avg is a great indicator for Forex please do not forget to rate the indicator. We also request you to write few lines in our comment section about KiS Avg indicator like – ways to use it or best way to trade with it. We’ll look at through your honest rating and also reviews as a very important thing you do to our quest on taking or perhaps picking indicators as currency exchange traders.

Obviously, many Forex currency investors will always look for better indicators that will help them trade more and precisely. It is a good news to online businessmen that cost-free KiS Avg indicator can assist traders in getting the best deals for them necessary in growing their business’ earnings. Additionally, we are exerting great efforts in posting Forex indicators such as KiS Avg in our web page. On this, downloading it at no cost and create savvy choices and become much better traders in return is achievable.

 

[php]</pre>
//+——————————————————————+
//| KiS_max_min_Avg.mq4 |
//+——————————————————————+
/*[[
Name := KiS_max_min_Avg
Author := KCBT
Link := http://www.kcbt.ru/forum/index.php?
]]*/

#property indicator_chart_window
#property indicator_buffers 3
#property indicator_color1 MediumOrchid
#property indicator_color2 Aqua
#property indicator_color3 MediumOrchid
//—- indicator buffers
double ExtMapBuffer1[];
double ExtMapBuffer2[];
double ExtMapBuffer3[];

//+——————————————————————+
//| Custom indicator initialization function |
//+——————————————————————+
int init()
{
SetIndexBuffer(0, ExtMapBuffer1);
SetIndexStyle(0, DRAW_LINE);
SetIndexBuffer(1, ExtMapBuffer2);
SetIndexStyle(1, DRAW_LINE);
SetIndexBuffer(2, ExtMapBuffer3);
SetIndexStyle(2, DRAW_LINE);
return(0);
}

//+——————————————————————+
//| Custom indicator deinitialization function |
//+——————————————————————+
int deinit()
{
Comment(“”);
return(0);
}

//+——————————————————————+
//| Custom indicator iteration function |
//+——————————————————————+
int start()
{
int shift, i, CurDay, BarCount;
double DayMax, DayMin;
double DayOpen, DayClose, Avg;

for (shift=Bars-1; shift>=0; shift–) {
if (CurDay != TimeDay(Time[shift])) {
for (i=BarCount; i>=0; i–) {
ExtMapBuffer1[shift+i] = DayMax;
ExtMapBuffer2[shift+i] = (DayMax+DayMin)/2;
ExtMapBuffer3[shift+i] = DayMin;
}
CurDay = TimeDay(Time[shift]);
BarCount = 0;
DayMax = 0;
DayMin = 1000; //اàًàيهه لîëüّه, ÷ٍîل َىهيüّèëٌے â ïًîِهٌٌه
DayOpen = Open[shift];
}
if (DayMax < High[shift]) {DayMax = High[shift];}
if (DayMin > Low[shift]) {DayMin = Low[shift];}
BarCount = BarCount + 1;
}

// ‎ٍî نîًèٌîâêà ïîٌëهنيهمî, يهçàâهًّهييîمî هùه, نيے
for (i=BarCount; i>=0; i–) {
ExtMapBuffer1[shift+i] = DayMax;
ExtMapBuffer2[shift+i] = (DayMax+DayMin)/2;
ExtMapBuffer3[shift+i] = DayMin;
}
DayClose = Close[0];
Avg = (DayMax+DayMin)/2; //ًٌهنيےے çà ٍهêَùèé نهيü

Comment(“Max:”, DayMax,” Min:”, DayMin, “\n”, “Avg:”, Avg, ” Width:”, (DayMax-DayMin)/Point,”\n”,”خٍ Avg نî Open:”,MathRound(MathAbs(Avg-DayOpen)/Point),”\n”,”خٍ Avg نî Close:”,MathRound(MathAbs(Avg-DayClose)/Point));
return(0);
}
//+——————————————————————+
<pre>[/php]

Click Here to Download

0 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 *

10 − four =

This site uses Akismet to reduce spam. Learn how your comment data is processed.