Connecting Binary Options to EA signals
-
I have an EA that simply draws up and down arrows for buy/sell signals (https://fxdreema.com/shared/DQzPOuVjd). I am trying to use a tool provided by mt2iq.com to automatically capture the signals from the EA and make buys or sells on IQoption.com.
mt2iq.com provides an MQL Connector Library that can get the signals from the EA (as given here: https://www.mt2iq.com/mt2iq-library).
It provides following Example for placing Up/Down trades on Up_Arrow_Condition and Down_Arrow_Condition of an EA:
int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[], const double &open[], const double &high[], const double &low[], const double &close[], const long &tick_volume[], const long &volume[], const int &spread[]) { //... ArraySetAsSeries(time,true); // ---> only in MQL5 bool Up_Arrow_Condition = ... bool Down_Arrow_Condition = ... if (UP_Arrow_Condition && signaltime != time[0]) { mt2iq(Symbol(), "CALL", 10, 5); signaltime = time[0]; } if (DOWN_Arrow_Condition && signaltime != time[0]) { mt2iq(Symbol(), "PUT", 10, 5); signaltime = time[0]; } //... return(rates_total); }I guess I need to update the following conditions based on my EA code. Can anyone help me do this?
bool Up_Arrow_Condition = ...
bool Down_Arrow_Condition = ... -
@vish said in Connecting Binary Options to EA signals:
OnCalculate
OnCalculate() is only to be used in indicators, this event function doesn't work in EAs
-
Ok, it looks that they have some external library with a function called mt2iq that does something. I created a custom block for you, you can find it here:

I didn't tested it, but I hope that it works. It has 4 input parameters for the symbol, type, amount and expiry. -
Thank you very much. I will check this out and let you know if it works
-
I just created a small EA with this block here: https://fxdreema.com/shared/36Ilwuuee I am not sure if I got it right. However, I can not compile, it gives an error as follows:
Compilation errors
'!' - illegal operation useCan you help?
-
@vish said in Connecting Binary Options to EA signals:
I just created a small EA with this block here: https://fxdreema.com/shared/36Ilwuuee I am not sure if I got it right. However, I can not compile, it gives an error as follows:
Compilation errors
'!' - illegal operation useCan you help?
My problem is similar but in MT2binary.
Thanks
-
-
30/5000
Magnificent. Where do I find it? -
Great. It works fine. Thanks
-
@fxdreema said in Connecting Binary Options to EA signals:
custom block for you too
Remember my custom block. Please....
-
@robgall You have it

I didn't tested it, but it's almost not any different than vish's custom block
-
I put it in these two ways but no operation appears


-
Can you test those functions provided by the broker? You can also check the custom block I made for you (https://fxdreema.com/studio/MQL4), it's not so much of a code. I may be missing something, but it looks correct for me. I can't check it because I don't have an account in this bloker

-
ALL OK .UNTIL THE MILLION DOLLARS DO NOT STOP
-
i want to learn how to build strategies for binary option. can anybody help?
-
@fxdreema
Can you please make this MT2Binary block also in my section? I tried to make a block based on MT2IQ but it does not work.This has some details on this plugin: https://www.mt2binary.com/mt2binary-library
-
I think you have mt2binary block already