///+------------------------------------------------------------------+ // #MT F-Channel \¦/ // Knowledge of the ancients (ò ó) //______________________o0o___(_)___o0o__ //___¦_____¦_____¦mladen¦_____¦_____¦_____¦ //¦_cja_¦_____¦_____¦_____¦_____¦_____¦__ //___¦_____¦_____¦_____¦_Xard¦777__¦_____¦ //¦____¦ihldiaf¦_____¦_____¦_____¦____¦__ //___¦_____¦_____¦_____¦Baba¦Master_¦____¦ //¦FxSniper___¦_____¦_igor_¦_____¦_____¦__ April 18th, 2009 //+------------------------------------------------------------------+ //+------------------------------------------------------------------+ //| FractalChannel | //| Copyright © 2004 | //| http://myweb.absa.co.za/stander/4meta/ | //+------------------------------------------------------------------+ #property copyright "" #property link "" #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 DarkOrange #property indicator_width1 2 #property indicator_color2 Blue #property indicator_width2 2 //---- buffers double v1[]; double v2[]; double val1; double val2; int i; int init() { IndicatorBuffers(2); //---- drawing settings SetIndexArrow(0, 119); SetIndexArrow(1, 119); SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,2,Orange); SetIndexDrawBegin(0,i-1); SetIndexBuffer(0, v1); SetIndexLabel(0,"Resistance"); SetIndexStyle(1,DRAW_LINE,STYLE_SOLID,2,Blue); SetIndexDrawBegin(1,i-1); SetIndexBuffer(1, v2); SetIndexLabel(1,"Support"); return(0); } int start() { i=Bars; while(i>=0) { val1 = iFractals(NULL, 0, MODE_UPPER,i); if (val1 > 0) v1[i]=High[i]; else v1[i] = v1[i+1]; val2 = iFractals(NULL, 0, MODE_LOWER,i); if (val2 > 0) v2[i]=Low[i]; else v2[i] = v2[i+1]; i--; } return(0); } //+------------------------------------------------------------------+
Sample
Analysis
Market Information Used:
Series array that contains the highest prices of each bar
Series array that contains the lowest prices of each bar
Indicator Curves created:
Implements a curve of type DRAW_LINE
Indicators Used:
Fractals
Custom Indicators Used:
Order Management characteristics:
Other Features: