Select Page

Expiry is a mandatory column for derivative symbols. You can add same contract with different expiry/strike for trading, and define expiry dynamically in your code.

In the code, expiry should be given in format DDMMMYYYY, where MMM is first three letters of month. If it is wrong, APIBridge will give message of wrong of expiry. If you define Expiry as null in code, Bridge will place order by matching inputsymbol+instrument+strategytag

To read about all parameters in Signal Received in Bridge, please read here.

Solution for Amibroker

AFL Example with above settings screenshot (FUTIDX) with null expiry

AlgoJi_Signal("8", "LE","NIFTY-I","Market|MIS","1","0","100","FUTIDX","STG1");

AFL Example for settings above (FUTIDX) with expiry matching with symbol settings

AlgoJi_Signal("8", "SE","NIFTY-I|28May2020","Market|MIS","1","0","100","FUTIDX","STG1");

AFL Example with above settings screenshot (OPTIDX)

AlgoJi_Signal("8", "SE","NIFTY|28May2020","Market|MIS","1","0","100","OPTIDX","STG1");
or
AlgoJi_Signal("8", "LE","NIFTY|28May2020|9100","Market|MIS","1","0","100","OPTIDX","STG1");
or
AlgoJi_Signal("8", "LE","NIFTY|28May2020|9100|CE","Market|MIS","1","0","100","OPTIDX","STG1");

 

Solution for MT4

Open data folder=> Expert_Signal.mqh file there you will find LongEntry, ShortEntry, ShortExit, LongExit functions,there you will find the signal string. You need to provide expiry correctly after sym parameter.

yo=IntegerToString(L1)+”,LE,”+sym+”|28MAY2020||,”+ordertype+”,,”+DoubleToString(cprice,2)+”,”+IntegerToString(Quantity)+”,”+ins+”,”+stg+ “”;