Re: Dashboard Type Indicators for MT4

424
mrtools wrote: Mon Mar 06, 2017 1:51 am Hi Mtuppers, have this version you might be interested in, needs the non lag ma histo in the indicators folder for it to work.
Image
Hello brother, good time. I am Hossam from Iran, I sent you a message. There is an indicator for Trading View. Can you convert it to MetaTrader 4?
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © hesammantra

#property copyright "hesammantra"
#property link "https://www.tradingview.com/u/hesammantra/"

int isHigherHigh()
{
if (High[0] > High[1] && High[1] > High[2] &&
Close[0] > Close[1] && Close[1] > Close[2] &&
Close[0] > Open[0] && Close[1] > Open[1] && Close[2] > Open[2] &&
Low[0] > Open[1] && Low[1] > Open[2] &&
(Open[0] + Low[0]) < (Open[0] + Close[0]))
{
return 1;
}
return 0;
}

int isLowerLow()
{
if (Low[0] < Low[1] && Low[1] < Low[2] &&
Close[0] < Close[1] && Close[1] < Close[2] &&
Close[0] < Open[0] && Close[1] < Open[1] && Close[2] < Open[2] &&
High[0] < Open[1] && High[1] < Open[2])
{
return 1;
}
return 0;
}

int init()
{
return(0);
}

int deinit()
{
return(0);
}

int start()
{
if (isHigherHigh())
{
BarColor(0, RGB(103, 58, 183));
BarColor(1, RGB(103, 58, 183));
BarColor(2, (Close[2] > Open[2]) ? RGB(103, 58, 183) : CLR_NONE);
}
else if (isLowerLow())
{
BarColor(0, Yellow);
BarColor(1, Yellow);
BarColor(2, (Close[2] < Open[2]) ? Yellow : CLR_NONE);
}
return(0);
}




Who is online

Users browsing this forum: Ahrefs [Bot], Amortezaei, dininurin, IBM oBot [Bot], ParallelNative, Ricstar_8, RyuKen, Seznam [Bot], talaate and 46 guests