//+------------------------------------------------------------------+ //| Bubbles&Drops.mq4 | //| Maxaxa Angry Hunter | //| mg@dsr.ru | //+------------------------------------------------------------------+ #property copyright "Maxaxa Angry Hunter" #property link "mg@dsr.ru" #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Orange #property indicator_color2 Red extern int historyDeep=100; // Количество баров в истории extern int future=50; // Сколько баров показываем после графика double Buffer[],temp[],fut[]; int timeLen=0,divider=10000; int init() { //---- indicators IndicatorBuffers(2); SetIndexBuffer(1,Buffer); SetIndexBuffer(0,fut); SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,2); SetIndexStyle(1,DRAW_LINE,STYLE_SOLID,2); SetIndexShift(1,0); SetIndexShift(0,future); return(0); } int deinit() { } int start() { if (Digits==5) divider=100000; if (Digits==4) divider=10000; if (ArraySize(Time)!=timeLen) { historyDeep++; } timeLen=ArraySize(Time); ArrayInitialize(Buffer,Open[historyDeep]); ArrayInitialize(fut,Open[historyDeep]); for (int j=0;j0) return (-(MathAbs(a)-100/(x)*MathSin(x/100*MathAbs(a)))); // sin(exp(cos($x))); } }