Help required for order place through ami auto trade afl

Abhi1284

Active Member
#1
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","......");
}
 

sr114

Well-Known Member
#3
i am alos tried to trade via nestplus API, i got it from nestplus team but they provide only API, no any other help.. they dont help to retail trader like us..
and nest plus team also redirected to go GDFL FOR support and use...

i have api..with sample afl provide by nestplus team but no use it..
ifany programmer need i will uploade it..

happy trading...:thumb:
PC

look the auto trade via ami - why nest plus is required. 2 more auto trade plugins r available which do not use the nest plus route and those r extremely efficient in picking up the signals.

actually why this type of barrier - i do not understand - like gdfl + its plugin , u have to take up their subscription of data . (putting up a artificial barrier of entry) .

have to thru the process as described in the ami manual IB and its TWS and ami) and lets see what happens

rgds
subroto
 

HARIVEL

Active Member
#4
s, i agree ur points..presently i am using that type of auto trade plufin without nestplus api..
but advantage in nestplus api..is orders go to direct exchange via platform ...

gdfl, mastur trust make afl way something future like INDICATER BASED,SL, TARGET,TSL..THATS ALL..
BUT IN MY PRESENT PLUGIN PROVIDER MAKE SAMETHING IN FUTURE RELEASE...(PRESENTLY MY PLUGIN USING FOR NEST, NOW..)

HAPPY TRADING...:thumb:
who is ur plugin provider pls PM me the details
 
#5
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","......");
}

Hi are you able to trade using Amibroker and Plus Trading Plugin.

if yes Please help me
 
#7
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","......");
}
Dear friends When I try to use this afl the Nest Trader is Not allow the order
what can I do Please help me any one
 
#8
ClientID = ParamStr("ClientId","000000");
Symbol= ParamStr("Symbol","NIFTY13MAYFUT");
Price=NumToStr(C,8.3,True);
Quantity=Param("Quantity",1,1,100,1);
OE = ParamList("Order Execution","Immediate,On Candle Completion",1);
AT = ParamToggle("AutoTrade","No,Yes");

if(OE=="On Candle Completion")
{
Buy=Ref(Buy,-1);
Short=Ref(Short,-1);
Sell=Ref(Sell,-1);
Cover=Ref(Cover,-1);
}

AplliedQuantity=IIf(LastValue(Buy) AND LastValue(Cover) OR LastValue(Short) AND LastValue(Sell),Quantity*2,Quantity);
RefNumber = Nz(StaticVarGet("RefNumber"));
Checkdt=Nz(StaticVarGet("lastdt"));
dt = LastValue( DateTime() );
Cond=LastValue(Buy) OR LastValue(Short) OR LastValue(Sell) OR LastValue(Cover);

if(AT)
{
plus = CreateStaticObject("Nest.PlusApi");
if(plus)
{
plus.SetObjectName(ClientID);
if(Cond AND Checkdt != dt )
{
if(LastValue(Buy) OR LastValue(Cover)){plus.PlaceOrder("BUY",RefNumber,"NFO",Symbol,"DAY","LIMIT",AplliedQuantity,Price,0,1,"NRML",ClientID);}
if(LastValue(Short) OR LastValue(Sell)){plus.PlaceOrder("SELL",RefNumber,"NFO",Symbol,"DAY","LIMIT",AplliedQuantity,Price,0,1,"NRML",ClientID);}
StaticVarSet("RefNumber",RefNumber+1);
StaticVarSet("lastdt",dt );
}
}
}
 

Abhi1284

Active Member
#10
hrishi9000
getting error
ClientID = ParamStr("ClientId","000000");
Symbol= ParamStr("Symbol","NIFTY13MAYFUT");
Price=NumToStr(C,8.3,True);
Quantity=Param("Quantity",1,1,100,1);
OE = ParamList("Order Execution","Immediate,On Candle Completion",1);
AT = ParamToggle("AutoTrade","No,Yes");

if(OE=="On Candle Completion")
{

}

AplliedQuantity=IIf(LastValue(Buy) AND LastValue(Cover) OR LastValue(Short) AND LastValue(Sell),Quantity*2,Quantity);
RefNumber = Nz(StaticVarGet("RefNumber"));
Checkdt=Nz(StaticVarGet("lastdt"));
dt = LastValue( DateTime() );
Cond=LastValue(Buy) OR LastValue(Short) OR LastValue(Sell) OR LastValue(Cover);

if(AT)
{
plus = CreateStaticObject("Nest.PlusApi");
if(plus)
{
plus.SetObjectName(ClientID);
if(Cond AND Checkdt != dt )
{
if(LastValue(Buy) OR LastValue(Cover)){plus.PlaceOrder("BUY",RefNumber, "NFO",Symbol,"DAY","LIMIT",AplliedQuantity,Price,0 ,1,"NRML",ClientID);}
if(LastValue(Short) OR LastValue(Sell)){plus.PlaceOrder("SELL",RefNumber, "NFO",Symbol,"DAY","LIMIT",AplliedQuantity,Price,0 ,1,"NRML",ClientID);}
StaticVarSet("RefNumber",RefNumber+1);
StaticVarSet("lastdt",dt );
}
}
}

I HOPE THIS WILL WORK
USE IT
Thanx
Abhishek
 

Similar threads