By using
Success = NTCommand("PLACE", "Sim101","Buy" , 1, "Limit", Close - 0.25, 0, "Day", "", "MyOrderId","","");
in TS Easy Language I have succeeded to place limit orders.
By using
Success = NTCommand("PLACE", "Sim101","Sell" , 1, "Limit", Close + 0.50, 0, "Day", "Oco1", "MyOrderId","","");
Success = NTCommand("PLACE","Sim101","Sell" , 1, "Stop", 0,Close - 0.50, "Day", "Oco1", "MyOrderId","","");
in TS Easy Language I have succeeded to place OCO orders after the entry limit order was filled.
I think that for placing OSO orders I should use this:
Success = NTCommand("PLACE", "Sim101","Buy" , 1, "Limit", Close - 0.25, 0, "Day", "", "MyOrderId","StrategyName","OSO1");
Success = NTCommand("PLACE", "Sim101","Sell" , 1, "Limit", Close + 0.50, 0, "Day", "Oco1", "MyOrderIdPT1","StrategyName","OSO1");
Success = NTCommand("PLACE","Sim101","Sell" , 1, "Stop", 0,Close - 0.50, "Day", "Oco1", "MyOrderIdSL1","StrategyName","OSO1");
where StrategyName should be a name of strategy listed in the list of strategies.
Does anybody have a code and name of such a strategy to pass it to me?
DEbo9
Comment