I could solve my problems in the script-strategies by debugging with trace orders but there is one issue I can´t find out. There appear so many lines in the output window with the following text every bar:
30.07.2012 14:07:25 Entered internal SetStopTarget() method: Type=Stop FromEntrySignal='L13a' Mode=Ticks Value=10 Currency=0 Simulated=False
30.07.2012 14:07:25 Entered internal SetStopTarget() method: Type=Stop FromEntrySignal='L13b' Mode=Ticks Value=10 Currency=0 Simulated=False
30.07.2012 14:07:25 Entered internal SetStopTarget() method: Type=Stop FromEntrySignal='L13c' Mode=Ticks Value=10 Currency=0 Simulated=False
30.07.2012 14:07:25 Entered internal PlaceOrder() method at 30.07.2012 14:07:25: BarsInProgress=6 Action=Sell OrderType=Market Quantity=1.000 LimitPrice=0 StopPrice=0 SignalName='xL13a' FromEntrySignal='L13a'
30.07.2012 14:07:25 Ignored PlaceOrder() method: Action=Sell OrderType=Market Quantity=1000 LimitPrice=0 StopPrice=0 SignalName='xL13a' FromEntrySignal='L13a' Reason='This was an exit order but no position exists to exit'
a.) Is this OK maybe that every bar there comes the "Entered internal SetStopTarget..."?
b.) I do not access BarsInProgress=6 in this script-strat. I have defined in the Initialize section always my 10 timeframes (I use 3 of them each strategy depending from conditions)
c.) The exitcondition for first out I have defined simply as
"if (GetCurrentAsk(3) > Position.AvgPrice + 10 * TickSize)"
Should I add something to this to avoid some message?
THANK YOU
Best
Tony
Comment