Error in nest when Auto Trading runs

yasu222

Active Member
#1
I Set the auto trade code at the end of my afl

but the code not work properly

i post the code and error message

the code is

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,Pri ce,0 ,1,"NRML",ClientID);}
if(LastValue(Short) OR LastValue(Sell)){plus.PlaceOrder("SELL",RefNumber, "NFO",Symbol,"DAY","LIMIT",AplliedQuantity,Pri ce,0 ,1,"NRML",ClientID);}
StaticVarSet("RefNumber",RefNumber+1);
StaticVarSet("lastdt",dt );
}
}
}


error message as-

"Setobject name is not set , set objectname is not called"

this an error message in nest . Please help how to avoid this error.
 

yasu222

Active Member
#4
I Set the auto trade code at the end of my afl

but the code not work properly

i post the code and error message

the code is

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,Pri ce,0 ,1,"NRML",ClientID);}
if(LastValue(Short) OR LastValue(Sell)){plus.PlaceOrder("SELL",RefNumber, "NFO",Symbol,"DAY","LIMIT",AplliedQuantity,Pri ce,0 ,1,"NRML",ClientID);}
StaticVarSet("RefNumber",RefNumber+1);
StaticVarSet("lastdt",dt );
}
}
}


error message as-

"Setobject name is not set , set objectname is not called"

this an error message in nest . Please help how to avoid this error.
How can i bypass this error / is there any possibility of auto trading with/without nest plus subscription?
 
#5
Try auto trading with symphony fintech.
I am working with them with no issues so far.
If you wish, you can contact me over pm as i might not be able to chk this thread again.

Thanks,
Purusharth
 

yasu222

Active Member
#6
Try auto trading with symphony fintech.
I am working with them with no issues so far.
If you wish, you can contact me over pm as i might not be able to chk this thread again.

Thanks,
Purusharth
Already trader is enjoying with

1. Spread losses
2. Government Taxes
3. Broker charges
You are adding now
4. Symphony + Data Feed Cost.

Trader will die before he place the orders in Exchange with these charges...
Make the life simple and cost effective man...
 
#9
Hi

The main question remains unanswered.
Why so many evasive and useless answers, when the question is so specific and requirement is clearly spelt out.
This thread also will have usual inglorious end.
SRJC
 

Similar threads