add script

1 replies

hero

Subscriber, bbp_participant, community, 2 replies.

Visit profile

9 years ago #112211

Can someone explain  how to add to my strategy  script.
I want this:    if …….. then run script (Binary Call)
 
 
 
 
 
 

0

Mark Fric

Administrator, sq-ultimate, 2 replies.

Visit profile

9 years ago #124709

Hello,

 

you can copy the function from Binary CALL.mq4 file to EA WIzard/code/CustomFunctions.mq4 file. This will make it included in every EA created by the Wizard.

 

You can then use THEN -> Other -> Custom Action

 

to call this function with the correct parameters.

For example:

Custom Action: takeTrade(direction,assetName,tradeSize,”60SEC”,clientAPI,scriptName,DoubleToStr((Bid+Ask)/2,Digits));

 

where you have to create direction, assetName, etc. as variables in EA Wizard or replace them with fixed values.

Mark
StrategyQuant architect

0

Viewing 1 replies (of 1 total)