View Single Post
  #2 (permalink)  
Old 03-27-2006, 11:53 PM
F.M F.M is offline
Junior Member
 
Join Date: Feb 2006
Posts: 3
F.M is on a distinguished road
Quote:
Originally Posted by F.M
Hi every one,

How can I making buy or sell sign, when the moving average(14) intersect with moving average(45)? in MT4.

I have this but it still deficient !! if not false .. I don't have much with MQL


================================================== =
#property copyright "B&S"
#property link ""
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Red
#property indicator_color2 DodgerBlue


//---- buffers
double Buffer1[];
double Buffer2[];


int i;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
IndicatorBuffers(2);

SetIndexStyle(0,DRAW_ARROW);
SetIndexArrow(0,218);
SetIndexBuffer(0,Buffer1);
SetIndexLabel(0,"");

SetIndexStyle(1,DRAW_ARROW );
SetIndexArrow(1,217);
SetIndexBuffer(1,Buffer2);
SetIndexLabel(1,"");

//----
return(0);
}
No anyone can help me??
Reply With Quote