Re: MT4 Indicator requests and ideas

19551
Hello,

i wanted to code a Price channel but with buy and sell signals accoridng to RSI MA.
But somehow im not able to get the code running. Can some expert pro coder have a look at it?

//+------------------------------------------------------------------+
//| ATR.mq4 |
//| Copyright 2005-2014, MetaQuotes Software Corp. |
//| http://www.mql4.com |
//+------------------------------------------------------------------+
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 DodgerBlue
#property indicator_color2 Red
#property indicator_width1 3
#property indicator_width2 3
#property indicator_style1 STYLE_SOLID
#property indicator_style2 STYLE_SOLID

extern string RSI_Source = "Close";
extern int RSI_Period = 14;
extern int RSI_MA_Period = 10;
extern double UpperBandMultiplier = 2.0;
extern double LowerBandMultiplier = 2.0;
extern int NumCandles = 100; // Anzahl der letzten Kerzen für die Berechnung

double ExtMapBufferUpper[];
double ExtMapBufferLower[];

int OnInit()
{
SetIndexBuffer(0, ExtMapBufferUpper);
SetIndexLabel(0, "Upper Channel");
SetIndexBuffer(1, ExtMapBufferLower);
SetIndexLabel(1, "Lower Channel");
return(INIT_SUCCEEDED);
}

int start()
{
int beginIndex = Bars - NumCandles - 1; // Index des ersten Bars für die Berechnung
ArraySetAsSeries(ExtMapBufferUpper, true);
ArraySetAsSeries(ExtMapBufferLower, true);

for (int i = beginIndex; i >= 0; i--)
{
double rsiValue = iRSI(NULL, 0, RSI_Period, RSI_Source, i);
double rsiMA = iMA(NULL, 0, RSI_MA_Period, 0, MODE_SMA, rsiValue, i);

ExtMapBufferUpper[i] = iHigh(NULL, 0, i) + UpperBandMultiplier * rsiMA;
ExtMapBufferLower[i] = iLow(NULL, 0, i) - LowerBandMultiplier * rsiMA;
}

return(0);
}




Re: MT4 Indicator requests and ideas

19554
Hi Mr Tools and coders respectively,

I found this volume indicator that seems promising with adding a 100-LWMA to confirm trend direction (with other confluences of course). However, it seems to be a heavy indicator (even though the code seems simple, I think) because every time I switch pairs, it takes a minute or two to load. I wanted to know if the code can be edited to make load times faster or maybe a lite version. I know it's derived from the OBV. Marc Chaikin created it, but used the midpoint of the day's close instead of the actual day's close.

Thank you for your time and consideration, always!!!!!


Re: MT4 Indicator requests and ideas

19556
naluvs01 wrote: Tue Nov 07, 2023 11:30 pm Hi Mr Tools and coders respectively,

I found this volume indicator that seems promising with adding a 100-LWMA to confirm trend direction (with other confluences of course). However, it seems to be a heavy indicator (even though the code seems simple, I think) because every time I switch pairs, it takes a minute or two to load. I wanted to know if the code can be edited to make load times faster or maybe a lite version. I know it's derived from the OBV. Marc Chaikin created it, but used the midpoint of the day's close instead of the actual day's close.

Thank you for your time and consideration, always!!!!!
Image
Posted a version here

Re: MT4 Indicator requests and ideas

19557
mntiwana wrote: Sun Apr 30, 2017 1:18 am Trend direction & force index - smoothed 1.01.mq4
A new version with jurik and some upgrades
Upgraded trend direction & force index that uses jurik smoothing for result smoothing

- made user friendly
- made multi time frame
- made some fancy histogram display
- some code optimization done

Originaly posted here : viewtopic.php?p=1295351803#p1295351803
Image

Image

May I please get an on & off button for this indicator, thank you
Christ came not to condemn the world but that they might be saved from their sins by his sacrifice in the face of eternal judgement if they shall repent and believe

Re: MT4 Indicator requests and ideas

19560
delp wrote: Thu Nov 09, 2023 9:54 pm Dear Mr.tools, Mr.kvak, please make a version of this index for the main schedule.
A combined indicator based on it in the lower window creates problems,
I would like for convenience
move it to the main chart.
Image
That indicator is trying to look into the future which makes it a repainter.
These users thanked the author mrtools for the post (total 3):
delp, 太虚一毫, RodrigoRT7


Who is online

Users browsing this forum: ASki, BeatlemaniaSA, Grapeshot [Bot], lyo99, Ruby [Bot], Seznam [Bot], vvFish, WhatsApp [Bot], Yandex [Bot] and 121 guests