//Create the Nest Plus API object
plusObject = CreateObject("nest.plusapi");
//Assign a name
plusObject.SetObjectName("Example");
//Place a limit buy order
plusObject.PlaceOrder("BUY", "OrderNo_1", "MCX", "ALUMINI12OCTFUT", "DAY", "LIMIT", 1, 100.20, 0, 1, "MIS", "MyTradingID");
//Place a stop loss buy order
plusObject.PlaceOrder("BUY", "OrderNo_2", "MCX", "ALUMINI12OCTFUT", "DAY", "SL", 1, 108.20, 108.15, 1, "MIS", "MyTradingID");
plusObject.PlaceOrder("BUY", "OrderNo_5", "MCX", "ALUMINI12OCTFUT", "DAY", "LIMIT", 1, 100.20, 0, 1, "NRML", "MyTradingId");
plusObject.PlaceOrder("BUY", "OrderNo_6", "MCX", "ALUMINI12OCTFUT", "DAY", "LIMIT", 1, 100.2001, 0, 1, "NRML", "MyTradingId");