Here is a good manual.
Here is a good manual.
Trading forex risk disclaimer. Exclusive EAs in the Elite section.
Thanks Funyoo....Bill
Hello, Funyoo.
I know that you are very busy as Admin but could you please direct me to
how I can compile an MQL4 program so that I can get the .ex4 file. I am
getting a "could not launch the compiler".
Thanks for your help and reference
daldup
PipRider.com - The home of the PipRider EA. From $100 to over $1m in 10 year backtest, and it works LIVE too!!
Hi, I can't open the pdf in the 1st post. My Adobe reader says that the file is corrupt. I have re-downloaded 3 times but same thing every time.
Would it be possible to check that the file is O.K. and re-upload if it is not.
Cheers, Pye
Pye, It downloads for me...(and it is a very good guide)....You may have other troubles. BillR
Very nice.
Thanks for sharing.
FXCode Inc.
Expert Advisor Developer
thank you Mr funyoo for this file
it give valuable info.
best regards...
Hi guys, i came across to this forum quite interesting, can anyone here tell me does this indicator can be code to EA ? (based on the buffer arrow appear on the screen straight away it enter position), if can, can guide me the important part on the coding ? im a totally new learner in mql4 as well...
Thanks everyone
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 White
#property indicator_color2 White
extern int Fast.MA.Period = 5;
extern int Slow.MA.Period = 34;
extern int Signal.period = 5;
//---- buffers
double Buffer1[],
Buffer2[],
b2[],
b3[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
// two additional buffers used for counting
IndicatorBuffers(4);
IndicatorShortName("test");
SetIndexStyle(0,DRAW_ARROW,STYLE_SOLID,3);
SetIndexArrow(0,242); // down 226 234 242
SetIndexBuffer(0,b2);
SetIndexStyle(1,DRAW_ARROW,STYLE_SOLID,3);
SetIndexArrow(1,241); //UP 225 233 241
SetIndexBuffer(1,b3);
// These buffers are not plotted, just used to determine arrows
SetIndexBuffer (2,Buffer1);
SetIndexBuffer (3,Buffer2);
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custor indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int i, counted_bars=IndicatorCounted();
double MA5,MA34;
int limit=Bars-counted_bars;
Print(" print limit = ", limit);
if(counted_bars>0) limit++;
// Main line
for(i=0; i<limit; i++)
{
MA5=iMA(NULL,0,Fast.MA.Period,0,MODE_SMA,PRICE_MED IAN,i);
MA34=iMA(NULL,0,Slow.MA.Period,0,MODE_SMA,PRICE_ME DIAN,i);
Buffer1[i]=MA5-MA34;
}
// Signal line
for(i=0; i<limit; i++)
{
Buffer2[i]=iMAOnArray(Buffer1,Bars,Signal.period,0,MODE_LWMA ,i);
}
// Arrows
for(i=0; i<limit; i++)
{
if(Buffer1[i] > Buffer2[i] && Buffer1[i-1] < Buffer2[i-1])
b2[i] = High[i]+50*Point;
if(Buffer1[i] < Buffer2[i] && Buffer1[i-1] > Buffer2[i-1])
b3[i] = Low[i]-50*Point;
}
return(0);
}
//+------------------------------------------------------------------+