FOREX MT4 INDICATORS DOWNLOAD
  • Donate to the operator
  • MT4 INDICATORS A
  • MT4 INDICATORS B
  • MT4 INDICATORS C
  • MT4 INDICATORS D
  • MT4 INDICATORS E
  • MT4 INDICATORS F
  • MT4 INDICATORS G
  • MT4 INDICATORS H
  • MT4 INDICATORS I
  • MT4 INDICATORS J
  • MT4 INDICATORS K
  • MT4 INDICATORS L
  • MT4 INDICATORS M
  • MT4 INDICATORS N
  • MT4 INDICATORS O
  • MT4 INDICATORS P
  • MT4 INDICATORS Q
  • MT4 INDICATORS R
  • MT4 INDICATORS S
  • MT4 INDICATORS T
  • MT4 INDICATORS U
  • MT4 INDICATORS V
  • MT4 INDICATORS W
  • MT4 INDICATORS X
  • MT4 INDICATORS Y
  • MT4 INDICATORS Z
  • MT4 INDICATORS NUM
  • MT4 INDICATORS SIGN

absolutely no lag lwma.mq4

absolutely no lag lwma.mq4 FOREX MetaTrader4 Indicators Download

absolutely no lag lwma.mq4 download link will appear after 10 seconds.


Icon

absolutely no lag lwma.mq4

1 file(s) 1.93 KB
Download


absolutely no lag lwma.mq4 Programming source code.

#property  indicator_chart_window
#property  indicator_buffers 1
#property  indicator_color1  PaleVioletRed
#property  indicator_width1  2

//
//
//
//
//
 
extern int period = 14;
extern int price  = PRICE_CLOSE;

double prices[];
double lwma1[];
double lwma2[];

//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
//
//
//
//
//

int init()
{
   IndicatorBuffers(3);
      SetIndexBuffer(0,lwma2);
      SetIndexBuffer(1,lwma1);
      SetIndexBuffer(2,prices); 
      
      SetIndexStyle (0,DRAW_LINE);
      SetIndexStyle (1,DRAW_LINE); 
      
   return(0);
}
int deinit() { return(0); }

//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
//
//
//
//
//

int start()
{
   double sum,sumw,weight;
   int i,k,limit,counted_bars=IndicatorCounted();
   
   if(counted_bars<0) return(-1);
   if(counted_bars>0) counted_bars--;
           limit=MathMin(Bars-counted_bars+period,Bars-1);

   //
   //
   //
   //
   //

   for(i=limit; i>=0; i--) prices[i] = iMA(NULL,0,1,0,MODE_SMA,price,i);
   for(i=limit; i>=0; i--)
   {
      for(k=0, sum=0, sumw=0; k=0; k++) { weight = period-k; sumw += weight; sum += weight*lwma1[i-k]; }             
      if (sumw!=0)
            lwma2[i] = sum/sumw;
      else  lwma2[i] = 0;
   }      
   return(0);
}
abc___RG___VV_zhig.ex4 ACBB.mq4

Related Posts

METATRADER4A

AMA.mq4

METATRADER4A

AllTrendEnvelopes_v1.1.mq4

METATRADER4A

AllStochastics_v2.mq4

METATRADER4A

AllPivots_v4.1 600+.ex4

METATRADER4A

AllHullMA_v3.1 600+.ex4

METATRADER4A

allaverages_v3.1_-_histo.mq4

METATRADER4A

AllAverages_v2.5.mq4

METATRADER4A

AllAbsoluteStrength_v2.3 600+.mq4

METATRADER4A

Alfa_Profit_v3.ex4

METATRADER4A

Alex5757000 – Multi Moving Average v2.1.mq4

METATRADER4A

AIMS The Fruit V1.0 eMOD.ex4

METATRADER4A

AHDiv2.ex4

How to use this site.
  1. Subscribe YouTube
  2. Subscribe Facebook
  3. Subscribe Instagram
  4. Download MT4
  5. Watch Youtube Video
  6. Downliad Indicator and Try Trading
  7. Donate to the operator

Recent News

  • EATA pollan vers mod 2_2 (mq4).mq4
  • EATA _Alert2.mq4
  • Wpr (alerts + arrows).mq4
  • WmiVol.mq4
  • wlxFractals.mq4

Donate