Attachments forums

List of attachments posted on this forum.


All files on forums: 135193

Re: EasyLanguage indicators and functions with source code

xpf2003, Fri Nov 11, 2022 8:03 pm

G-Channels

Here is the first indicator I converted to EasyLanguage after seeing a lot of positive noise about it on a number of MT4 threads.

This I think is the original post where MT4 version of G-Channels was posted - viewtopic.php?p=1295491801#p1295491801

The EasyLanguage version does not come with fancy features like MTF or colour changes (mainly because I do not know yet how to do that in EasyLanguage)

Function - F_GChannels

Code: Select all

Inputs:
	int Inp_Length(NumericSimple),
	double Inp_Top(NumericRef),
	double Inp_Middle(NumericRef),
	double Inp_Bottom(NumericRef);

Variable:
	double top(0), middle(0), bottom(0);	

top  = Maxlist(C, top[1])  - (top[1] - bottom[1])/Inp_Length;
bottom = Minlist(C, bottom[1]) + (top[1] - bottom[1])/Inp_Length;
middle = (top + bottom) / 2;

Inp_Top = top;
Inp_Middle = middle;
Inp_Bottom = bottom;

F_GChannels = Inp_Middle;
Indicator - I_GChannels

Code: Select all

Inputs:
	int Length(10);
	
Variables:
	double top(0), middle(0), bottom(0);
	
middle = F_GChannels(Length, top, middle, bottom);

Plot1(top);
Plot2(middle);
Plot3(bottom);
All files in topic