Dear seniors,
i activate nest trader plugin through omenyplus but they did not provide me auto trade formula if any have knowledge pls help me
i mention below half formula of auto trade pls modify it
Thanx
Abhishek
////SECTION_BEGIN("ALGO");
PLUS=Null;
if(IsNull(PLUS))
{//CHECK IF OBJECT IS NULL
PLUS = CreateStaticObject("Nest.PlusApi");
//SET THE ALGO NAME AS THE SYMBOL NAME
_N(ALGONAME = StrFormat("{{Name}} algo"));
Plus.SetobjectName("client id");
ORDERNO = StaticVarGet("ORDERNO");
ORDERNO++;
StaticVarSet("ORDERNO", ORDERNO);
//MAKE THE REF NO UNIQUE
REFNO = StrFormat("AMI%ON", ORDERNO);
//PLACE ORDER FOR THE SYMBOL IN NEST TRADING SYMBOL
PLUS.PLACEORDER("BUY",REFNO,"MCX","SILVERM13FEBFUT","Day","MARKET",10,00.00,0.0,0,"NRML",".......");
//PLACE ORDER FOR THE SYMBOL IN NEST TRADING SYMBOL
PLUS.PLACEORDER("SELL",REFNO,"MCX","SILVERM13FEBFUT","Day","MARKET",10,00.00,0.0,0,"NRML","......");
}
i activate nest trader plugin through omenyplus but they did not provide me auto trade formula if any have knowledge pls help me
i mention below half formula of auto trade pls modify it
Thanx
Abhishek
////SECTION_BEGIN("ALGO");
PLUS=Null;
if(IsNull(PLUS))
{//CHECK IF OBJECT IS NULL
PLUS = CreateStaticObject("Nest.PlusApi");
//SET THE ALGO NAME AS THE SYMBOL NAME
_N(ALGONAME = StrFormat("{{Name}} algo"));
Plus.SetobjectName("client id");
ORDERNO = StaticVarGet("ORDERNO");
ORDERNO++;
StaticVarSet("ORDERNO", ORDERNO);
//MAKE THE REF NO UNIQUE
REFNO = StrFormat("AMI%ON", ORDERNO);
//PLACE ORDER FOR THE SYMBOL IN NEST TRADING SYMBOL
PLUS.PLACEORDER("BUY",REFNO,"MCX","SILVERM13FEBFUT","Day","MARKET",10,00.00,0.0,0,"NRML",".......");
//PLACE ORDER FOR THE SYMBOL IN NEST TRADING SYMBOL
PLUS.PLACEORDER("SELL",REFNO,"MCX","SILVERM13FEBFUT","Day","MARKET",10,00.00,0.0,0,"NRML","......");
}