//+------------------------------------------------------------------+ //| Vinin HighLow v1.mq4 | //| Victor Nicolaev aka Vinin | //| vinin@mail.ru | //+------------------------------------------------------------------+ #property copyright "Victor Nicolaev aka Vinin" #property link "mailto: vinin@mail.ru" #property indicator_chart_window #property indicator_buffers 1 #property indicator_color1 Yellow extern int period=89; //---- buffers double Buffer[]; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- drawing settings SetIndexStyle(0,DRAW_LINE); SetIndexDrawBegin(0,0); SetIndexBuffer(0,Buffer); return(0); }//int init() //+------------------------------------------------------------------+ int start() { int limit; double tmp1,tmp2; int tmpBar, tmpTime; int counted_bars=IndicatorCounted(); int i, j,k; if(counted_bars<0) return(-1); if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; for (i = limit;i>=0;i--){ tmp1=iMA(Symbol(),0,period,0,MODE_SMA,PRICE_CLOSE,i); tmp2=iMA(Symbol(),0,period,0,MODE_LWMA,PRICE_CLOSE,i); Buffer[i]=NormalizeDouble(3.0*tmp2-2.0*tmp1,Digits); } return(0); }
Sample
Analysis
Market Information Used:
Indicator Curves created:
Implements a curve of type DRAW_LINE
Indicators Used:
Moving average indicator
Custom Indicators Used:
Order Management characteristics:
Other Features: