for the last day Iam desperately stuck at SetProfitTarget not working correctly in script.
Simplified example:
SetProfitTarget("LongContract1", CalculationMode.Ticks, 8);
EnterLongLimit(1, 10998, "LongContract1");
13.2.2015 15:00:00 Entered internal SetStopTarget() method: Type=Stop FromEntrySignal='LongContract1' Mode=Ticks Value=2 Currency=0 Simulated=False
13.2.2015 15:00:00 Entered internal PlaceOrder() method at 13.2.2015 15:00:00: BarsInProgress=0 Action=Buy OrderType=Limit Quantity=1 LimitPrice=10998,0 StopPrice=0 SignalName='LongContract1' FromEntrySignal=''
13.2.2015 15:00:00 Cancelled pending exit order, since associated position is closed: Order='NT-00262/Sim101' Name='Stop loss' State=Working Instrument='FDAX 03-15' Action=Sell Limit price=0 Stop price=10997 Quantity=1 Strategy='AvisFiboRobot' Type=Stop Tif=Gtc Oco='NT-00096-302' Filled=0 Fill price=0 Token='d5fa5a3138a242d18fd2d20317f28b3d' Gtd='1.12.2099 0:00:00'
13.2.2015 15:00:00 Cancelled OCO paired order: BarsInProgress=0: Order='NT-00262/Sim101' Name='Stop loss' State=Cancelled Instrument='FDAX 03-15' Action=Sell Limit price=0 Stop price=10997 Quantity=1 Strategy='AvisFiboRobot' Type=Stop Tif=Gtc Oco='NT-00096-302' Filled=0 Fill price=0 Token='d5fa5a3138a242d18fd2d20317f28b3d' Gtd='1.12.2099 0:00:00'
13.2.2015 15:05:00 Cancelled expired order: BarsInProgress=0: Order='NT-00262/Sim101' Name='Stop loss' State=Cancelled Instrument='FDAX 03-15' Action=Sell Limit price=0 Stop price=10997 Quantity=1 Strategy='AvisFiboRobot' Type=Stop Tif=Gtc Oco='NT-00096-302' Filled=0 Fill price=0 Token='d5fa5a3138a242d18fd2d20317f28b3d' Gtd='1.12.2099 0:00:00'
Can someone help/explain/point me to the right solution? Thank you very much in advance.


Comment