Time: 2010-01-11 | Download file:Fisher_Stochastic_CG_2.mq4
//------------------------------------------------------------------ #property copyright "www.forex-tsd.com" #property link "www.forex-tsd.com" //------------------------------------------------------------------ #property indicator_separate_window #property indicator_buffers 4 #property indicator_color1 LimeGreen #property indicator_color2 PaleVioletRed #property indicator_color3 PaleVioletRed #property indicator_color4 Silver #property indicator_width1 2 #property indicator_width2 2 #property indicator_width3 2 // // // // // extern int Length = 25; extern int Price = PRICE_TYPICAL; double cg[]; double storaw[]; double stocg[]; double stocgda[]; double stocgdb[]; double stosig[]; double trend[]; //------------------------------------------------------------------ // //------------------------------------------------------------------ // // // // // int init() { IndicatorBuffers(7); SetIndexBuffer(0,stocg); SetIndexBuffer(1,stocgda); SetIndexBuffer(2,stocgdb); SetIndexBuffer(3,stosig); SetIndexBuffer(4,cg); SetIndexBuffer(5,storaw); SetIndexBuffer(6,trend); return(0); } int deinit() { return(0); } //------------------------------------------------------------------ // //------------------------------------------------------------------ // // // // // int start() { int counted_bars=IndicatorCounted(); if(counted_bars<0) return(-1); if(counted_bars>0) counted_bars--; int limit = MathMin(Bars-counted_bars,Bars-1); // // // // // if (trend[limit]==-1) CleanPoint(limit,stocgda,stocgdb); for(int i=limit; i>=0; i--) { double num = 0; double den = 0; for (int k=0; kstosig[i]) trend[i] = 1; if (stocg[i]