//+------------------------------------------------------------------+ //| LineFrakDown.mq4 | //| Yuriy Tokman | //| yuriytokman@gmail.com | //| mod by Darkkiller | //+------------------------------------------------------------------+ #property copyright "Yuriy Tokman" #property link "yuriytokman@gmail.com" #property indicator_chart_window extern color Color = Lime; extern int Width = 1; extern int Style = 0; extern bool Ray = True; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicators ObjectCreate("Rezist", OBJ_TREND, 0,0,0,0,0);//ñîçäàíèå òðåíäîâîé ëèíèè //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- ObjectDelete("Rezist");//óäàëåíèå îáåêòà //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { //---- double F1=0, F3=0, F13; // íîìåðà ôðàêòàëîâ int B1, B3, SR=2; // íîìåðà áàðîâ while(F3==0) //ïîèñê ôðàêòàëîâ { F13=iFractals(NULL,0,MODE_UPPER,SR); if (F13!=0) { if (F1==0){B1=SR; F1=F13;} else if (F3==0){B3=SR; F3=F13;} } SR++; } ObjectSet("Rezist", OBJPROP_TIME1 ,iTime(NULL,0,B3)); ObjectSet("Rezist", OBJPROP_TIME2 ,iTime(NULL,0,B1)); ObjectSet("Rezist", OBJPROP_PRICE1,iHigh(NULL,0,B3)); ObjectSet("Rezist", OBJPROP_PRICE2,iHigh(NULL,0,B1)); ObjectSet("Rezist", OBJPROP_RAY , Ray); ObjectSet("Rezist", OBJPROP_COLOR,Color); ObjectSet("Rezist", OBJPROP_WIDTH,Width); ObjectSet("Rezist", OBJPROP_STYLE,Style); //---- return(0); } //+------------------------------------------------------------------+
Sample
Analysis
Market Information Used:
Series array that contains the highest prices of each bar
Indicator Curves created:
Indicators Used:
Fractals
Custom Indicators Used:
Order Management characteristics:
Other Features: