toddanderson Posted October 11, 2009 Report Share Posted October 11, 2009 Does anyone have the mt4 indicator for hxxp://www.decisionbar.com Quote Link to comment Share on other sites More sharing options...
⭐ deadsoul Posted October 11, 2009 Report Share Posted October 11, 2009 Re: REQ DecisionBar mt4 After having both side by side I can say that there is not much difference between the DecisionBar indicators and FractalChannel. As a matter of fact DecisonBar's indicators are harder to use I think. But they both give identical signals, which means that DecisionBar is based on Bill William's fractals here is fractal //+------------------------------------------------------------------+ //| FractalChannel_v3.1.mq4 | //| Copyright © 2006, TrendLaboratory | //| [url]http://finance.groups.yahoo.com/group/TrendLaboratory[/url] | //| E-mail: [email][email protected][/email] | //+------------------------------------------------------------------+ #property copyright "Copyright © 2006, TrendLaboratory" #property link "http://finance.groups.yahoo.com/group/TrendLaboratory" #property indicator_chart_window #property indicator_buffers 3 #property indicator_color1 LightBlue #property indicator_color2 Tomato #property indicator_color3 Yellow #property indicator_width1 2 #property indicator_width2 2 //---- input parameters extern int ChannelType=1; extern double Margins=0; extern int Shift = 0; extern int Mode = 0; //---- buffers double UpBuffer[]; double DnBuffer[]; double MdBuffer[]; double smin[]; double smax[]; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { string short_name; //---- indicator line IndicatorBuffers(5); SetIndexStyle(0,DRAW_LINE); SetIndexStyle(1,DRAW_LINE); SetIndexStyle(2,DRAW_LINE,2); SetIndexBuffer(0,UpBuffer); SetIndexBuffer(1,DnBuffer); SetIndexBuffer(2,MdBuffer); SetIndexBuffer(3,smin); SetIndexBuffer(4,smax); //---- name for DataWindow and indicator subwindow label short_name="Fractal Channel("+ChannelType+")"; IndicatorShortName(short_name); SetIndexLabel(0,"Up Channel"); SetIndexLabel(1,"Down Channel"); SetIndexLabel(2,"Middle Channel"); SetIndexShift(0,Shift); SetIndexShift(1,Shift); SetIndexShift(2,Shift); //---- SetIndexDrawBegin(0,2*ChannelType); SetIndexDrawBegin(1,2*ChannelType); SetIndexDrawBegin(2,2*ChannelType); //---- return(0); } //+------------------------------------------------------------------+ //| FractalChannel_v3 | //+------------------------------------------------------------------+ int start() { int shift,k,counted_bars=IndicatorCounted(); double v1,v2,cond[100]; if ( counted_bars > 0 ) int limit=Bars-counted_bars-1; if ( counted_bars < 0 ) return(0); if ( counted_bars ==0 ) limit=Bars-2*ChannelType-1; for(shift=limit;shift>=0;shift--) { k=1; while (k<=ChannelType) { if (High[shift+ChannelType+k]<=High[shift+ChannelType] && High[shift+ChannelType-k]<High[shift+ChannelType]) { cond[k]=High[shift+ChannelType]; if(k==1) {v1=cond[k];k++;} else { if(cond[k-1]==cond[k]){v1=cond[k];k++;}else {v1=0; break;} } } else { v1=0; break; } } k=1; while (k<=ChannelType) { if (Low[shift+ChannelType+k]>=Low[shift+ChannelType] && Low[shift+ChannelType-k]>Low[shift+ChannelType]) { cond[k]=Low[shift+ChannelType]; if(k==1) {v2=cond[k];k++;} else { if(cond[k-1]==cond[k]){v2=cond[k];k++;}else {v2=0; break;} } } else { v2=0; break; } } smax[shift]=smax[shift+1]; if ( v1>0 ) smax[shift]=v1; if (Mode == 0) if (High[shift]>smax[shift]) smax[shift]=High[shift]; smin[shift]=smin[shift+1]; if ( v2>0 ) smin[shift]=v2; if (Mode == 0) if (Low[shift]<smin[shift]) smin[shift]=Low[shift]; if (shift==Bars-1-2*ChannelType) {smin[shift]=Low[shift];smax[shift]=High[shift];} UpBuffer[shift]=smax[shift]-(smax[shift]-smin[shift])*Margins; DnBuffer[shift]=smin[shift]+(smax[shift]-smin[shift])*Margins; MdBuffer[shift]=(UpBuffer[shift]+DnBuffer[shift])/2; } return(0); } //+------------------------------------------------------------------+ Freddie and gctex 2 Quote Link to comment Share on other sites More sharing options...
scratch Posted August 14, 2011 Report Share Posted August 14, 2011 can someone put this to mq4 Quote Link to comment Share on other sites More sharing options...
RogueTrader Posted August 14, 2011 Report Share Posted August 14, 2011 Here you go my friend..I downloaded it from here and uploaded it for you http://www.4shared.com/file/Hq9KHzPn/decision_bar.html Tazz, bradipo, Freddie and 2 others 5 Quote Link to comment Share on other sites More sharing options...
FreddyFX Posted May 11, 2012 Report Share Posted May 11, 2012 Something different to spend some time with in the weekend. Quote Link to comment Share on other sites More sharing options...
PSmith41 Posted May 11, 2012 Report Share Posted May 11, 2012 Here it is with manual etc. http://www.4shared.com/rar/LgDUIZVY/Decision_Bar_MT4.html Paul ⭐ Tradeselect, scwon, kltan and 1 other 4 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.