//+------------------------------------------------------------------+ //| UV (Yuryj) | //| https://www.binary-forum.com | //+------------------------------------------------------------------+ #property copyright "UV (Yuryj) _ binary-forum" #property version "1.00" #property strict #property indicator_chart_window #property indicator_buffers 2 #property indicator_plots 2 #property indicator_label1 "CALL" #property indicator_type1 DRAW_ARROW #property indicator_color1 clrGreen #property indicator_style1 STYLE_SOLID #property indicator_width1 3 #property indicator_label2 "PUT" #property indicator_type2 DRAW_ARROW #property indicator_color2 clrRed #property indicator_style2 STYLE_SOLID #property indicator_width2 3 int ////////// *** ИЗМЕНЯТЬ СТРОКИ 28 - 40 *** /////////// Sistem = 2 // 1 - Sistem_1, 2 - Sistem_2 , Signal = 2 // 1 - Start_Signal, 2 - All_Signal , Bands = 1 // 1 - Off, 2 - On , TD_1 = 5 , TD_2 = 8 , Similar = 5 , Rsi_Per = 3 , UpDown = 2 , RSI_level = 10 , BB = 20 ; double BB_Step = 2.7 ; int Step_Pips = 2 , Martin = 1 ; ////////// *** ДАЛЬШЕ НЕ ТРОГАТЬ!! *** /////////////// double Otstup = 7; double CALLBuffer[], PUTBuffer[]; int OnInit() { SetIndexBuffer(0,CALLBuffer); SetIndexBuffer(1,PUTBuffer); SetIndexArrow(0, 241); SetIndexArrow(1, 242); return(INIT_SUCCEEDED); } int start() { int limit, i; int counted_bars=IndicatorCounted(); if(counted_bars<0) return(-1); if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; for(i = 0; i < limit; i++) { double call = iCustom(NULL, 0, "Binary_Atom_Bomb_v2",Sistem,Signal,Bands,TD_1,TD_2,Similar,Rsi_Per,UpDown,RSI_level,BB,BB_Step,Step_Pips,100000,Martin,false,10,0,i); double put = iCustom(NULL, 0, "Binary_Atom_Bomb_v2",Sistem,Signal,Bands,TD_1,TD_2,Similar,Rsi_Per,UpDown,RSI_level,BB,BB_Step,Step_Pips,100000,Martin,false,10,1,i); if (call != 0 ) {CALLBuffer[i] = Low[i] - Otstup * Point; } else CALLBuffer[i] = EMPTY_VALUE; if (put != 0) {PUTBuffer[i] = High[i] + Otstup * Point; } else PUTBuffer[i] = EMPTY_VALUE; } return(0); }