WriteFile("oiflongstoplimitPlace.txt", "PLACE;"+Account.Name+";"+Instrument.FullName+";"+ "SELL;"+activeHEDGEqty+";STOPLIMIT;
1218.00;1218.50;DAY;;"+HEDGE_orderId_STOP+";"+acti veHEDGEatm+";"+
HEDGE_atmStrategyId_STOP );
this code however gets an error 'invalid limit price'
private double HEDGE_stopPrice = 0;
private double HEDGE_limitPrice = 0;
...............
HEDGE_stopPrice = 1218.50;
HEDGE_limitPrice = 1218.00;
WriteFile("oifshortstoplimitPlace.txt", "PLACE;"+Account.Name+";"+Instrument.FullName+";"+ "SELL;"+activeHEDGEqty+";STOPLIMIT;
HEDGE_limitPrice;HEDGE_stopPrice;DAY;;"+HEDGE_orde rId_STOP+";"+activeHEDGEatm+";"+
HEDGE_atmStrategyId_STOP );
the variables are declared as 'double' however are not accepted as 'decimal' values required by the PLACE statement
also, the Orders tab shows different values for limit and stop for the code that does work...i.e. 1212.00 limit and 1217.00 ...Accepted.but not close ....and the SLM order is successfully placed on charttrader chart at 1218.50 as ordered
makes no sense...

Comment