Indicators: The Binary Wave

 

The Binary Wave:

The Binary Wave returns a positive or a negative value depending on how the indicator readings are interpreted. Composite binary wave values depend on the number of individual binary waves included in it. You can "weigh" binary waves readings depending on the quality of their predictive ability by assigning the value to the corresponding Weight parameter.

Author: Nikolay Kositsin

BinaryWave

 

Thank you for sharing this concept and code.

I was looking for a panel to complement my EA, but with the binary wave I got much more information and can use the weigth to better filter my EA results.

My code is probably messed, since I migrated from EA to indicator, and now I think the indicator can be used in a simpler EA. 

Fantastic results.

Marcelo Plaza 

 
Thanks
 

Hello Every One,

Trying to use BinaryWave with iCustom, it return an out of range error

Can you help me solve it?


here is my code :

int TradeSignalBinaryWave()
{
SignalBinaryWave=0;

if(MyBinaryWaveDef==INVALID_HANDLE)
{
MyBinaryWaveDef=iCustom(_Symbol,_Period,"\\ABSEA\\binarywave",1.0,1.0,1.0,1.0,1.0,1.0,1.0,13,MODE_EMA,PRICE_CLOSE,12,26,9,PRICE_CLOSE,
12,26,9,PRICE_CLOSE,14,PRICE_MEDIAN,14,PRICE_CLOSE,14,1,0,MODE_JJMA,5,100);
return(0);
}
else
{
if(CopyBuffer(MyBinaryWaveDef,0,0,20,BinaryWaveArray)<20)
return(0);
if(!ArraySetAsSeries(BinaryWaveArray,true))
return(0);
}
//--- perform checking of the condition and set the value for SignalBinaryWave
if(BinaryWaveArray[1]>0)
SignalBinaryWave=1;
else if(BinaryWaveArray[1]<0)
SignalBinaryWave=-1;
else SignalBinaryWave=0;

//--- return the trade signal
return(SignalBinaryWave);
}
 
Great Work!! Thank YOU Very Much.
 

Hi

I am curious to test it.

I copied the file "smoothalgorithms.mqh" to folder "terminal_data_folder\MQL5\Include"

I have the "binarywave.mq5" in my editor 

However, when compiling in the editor, I get 42 errors mostly referring to the file "smoothalgorithms.mqh" 

Is there perhaps an updated version without errors?

Regards

Reason: