New free code from MQL5: indicators, EAs, and scripts for traders.
Root Binary Analyzer

Grid trading done right – try the robust Grid Expert Advisor for controlled risk. Details here.

This analyzer is based on Fibonacci rules.
For measurement, we have chosen price-to-binary code conversion. Each price increase is converted to 1, and each price decrease is converted to 0.
All this data is collected in text files and arrays for processing. Processing.
Using formulas, we perform several stages of processing the received code to measure two forces: Buffalo and Bear.
These forces are published in output files such as

EURUSD1.8Long&Short-Signals.txt
EURUSDImporShopSignals.txt
ImporWORDPRESS_1_7_D.txt And other .bin files that serve as support for counting.
We use the output data to open positions in the market using our Root -Utility Diamond tool. R&D Research and Development. We invite all code developers to freely join the development and research using the latest we have published.
//+------------------------------------------------------------------+ //| Binary Miner | //+------------------------------------------------------------------+ void Bars_Z(double iBid)// Собрал я с Ирой с красочьных полей зерно и дали по горсти каждый дочери Крестине { int Cqt=0; Counter++; Cqt=(int)NormalizeDouble((iBid-Str_Pr_Bar)/Point,0); int qt_C=0; if(Cqt>1)//paso 1 arriba { for(int qt=0; qt<Cqt-1; qt++) { if(Array_Errors==true) { Print(" Index Array ",qt," 28507 "); } qt_C=Counter+qt; body[qt_C,0]=3; body[qt_C,1]=1; body [qt_C,2]=2; body [qt_C,3]=Str_Pr_Bar+(qt+1)*Point; //body [qt_C,4]=TimeCurrent();//Записываю время тика. //bintoarr[IFb1,IFb2]=1;//запись в строку параметров бинарного вычисления //bintoarrBID[IFb1,IFb2]=Bid; //body [qt_C,7]=iTime(Symbol(),PERIOD_CURRENT,0); //--- // body [qt_C,4]=Open[0]; // body [qt_C,5]=High[0]; // body [qt_C,6]=Low[0]; // body [qt_C,7]=111;//TEST // FileWrite(Handle,body[qt_C,0],body[qt_C,1],body[qt_C,2],body[qt_C,3],body[qt_C,4],body[qt_C,5],body[qt_C,6],body[qt_C,7]); Counter1++; } Counter=qt_C+1; } if(Cqt<-1) { for(int qt=0; qt<MathAbs(Cqt)-1; qt++) { if(Array_Errors==true) { Print(" Index Array ",qt," 28535 "); } qt_C=Counter+qt; body [qt_C,0]=3; body [qt_C,1]=0; body [qt_C,2]=3; body [qt_C,3]=Str_Pr_Bar-(qt+1)*Point; //body [qt_C,4]=TimeCurrent();//Записываю время тика. // bintoarr[IFb1,IFb2]=0; // bintoarrBID[IFb1,IFb2]=Bid; //body [qt_C,7]=iTime(Symbol(),PERIOD_CURRENT,0); //--- // body [qt_C,4]=Open[0]; // body [qt_C,5]=High[0]; // body [qt_C,6]=Low[0]; //FileWrite(Handle,body[qt_C,0],body[qt_C,1],body[qt_C,2],body[qt_C,3],body[qt_C,4],body[qt_C,5],body[qt_C,6],body[qt_C,7]); Counter0++; } Counter=qt_C+1; } if(Str_Pr_Bar<=iBid) { body [Counter,1]=1; body [Counter,2]=1; //body [Counter,4]=TimeCurrent();//Записываю время тика. //bintoarr[IFb1,IFb2]=1; //bintoarrBID[IFb1,IFb2]=Bid; Counter1_1++; } else { body [Counter,1]=0; body [Counter,2]=0; //body [Counter,4]=TimeCurrent();//Записываю время тика. //bintoarr[IFb1,IFb2]=0;//пишу тик в бинарной интерпретации //bintoarrBID[IFb1,IFb2]=Bid;//пишу цену для тика Counter0_1++; } body [Counter,0]=iBid; body [Counter,3]=111; //body [Counter,4]=TimeCurrent();//Записываю время тика.p // body [Counter,4]=Open[0]; // body [Counter,5]=High[0]; // body [Counter,6]=Low[0]; //body[Counter,7]=iTime(Symbol(),PERIOD_CURRENT,0); //FileWrite(Handle,body[Counter,0],body[Counter,1],body[Counter,2],body[Counter,3],body[Counter,4],body[Counter,5],body[Counter,6],body[Counter,7]); Str_Pr_Bar=iBid; Counter_Summa1 = Counter1+Counter1_1; Counter_Summa0 = Counter0+Counter0_1; } //+------------------------------------------------------------------+ //| END Binary Miner | //+------------------------------------------------------------------+
Thanks for reading. Discover premium MetaTrader solutions at RobotFX.
71525