BillCh
02-06-2009, 10:47 AM
Hi,
new to NT. Tried strategy which buys if price goes below Bollinger band, target is an SMA, and StopLoss is a price which is calculated at entry (and vice versa for shorts).
Seemd to work okay, but had problems twice today: All of a sudden NT sendet buy - short - buy - short - ... orders for about two minutes.
The order log from the output window showed dozends of these:
2/6/2009 12:15:00 PM Entered internal SetStopTarget() method: Type=Stop FromEntrySignal='HoboST' Mode=Ticks Value=12 Currency=0 Simulated=False
2/6/2009 12:15:00 PM Entered internal SetStopTarget() method: Type=Stop FromEntrySignal='HoboLG' Mode=Ticks Value=12 Currency=0 Simulated=False
2/6/2009 12:15:00 PM Entered internal SetStopTarget() method: Type=Stop FromEntrySignal='HoboST' Mode=Ticks Value=12 Currency=0 Simulated=False
The last records before that repetition were:
2/6/2009 12:14:59 PM Entered internal PlaceOrder() method at 2/6/2009 12:14:59 PM: Action=Sell OrderType=Market Quantity=0 LimitPrice=0 StopPrice=0 SignalName='xlg' FromEntrySignal='HoboLG'
2/6/2009 12:14:59 PM Ignored PlaceOrder() method: Action=Sell OrderType=Market Quantity=0 LimitPrice=0 StopPrice=0 SignalName='xlg' FromEntrySignal='HoboLG' Reason='This was an exit order but no position exists to exit'
2/6/2009 12:15:00 PM Cancelled pending exit order, since associated position is closed: Order='00567cf06dd14798b0bc2175b6f380f8/Sim101' Name='Stop loss' State=Accepted Instrument='ES 03-09' Action=Sell Limit price=0 Stop price=855.5 Quantity=2 Strategy='HoboESv01' Type=Stop Tif=Gtc Oco='40d1b309d3604db18d5bb98c0f32eccb' Filled=0 Fill price=0 Token='00567cf06dd14798b0bc2175b6f380f8' Gtd='12/1/2099 12:00:00 AM'
What my script is doing at the entry (long):
// HOBO LONG ENTRY
if (CrossBelow(Low, HoboSigLong(BBStdDev, Period), 1)
&& ToTime(Time[0]) >= ToTime(9, 30, 0)
&& ToTime(Time[0]) < ToTime(15, 0, 0))
{
EnterLong(InitCtr, "HoboLG");
stpLG = HoboStopLo(BBStdDev, Period)[0];
SetStopLoss( "HoboST", CalculationMode.Price, stpLG, false );
}
new to NT. Tried strategy which buys if price goes below Bollinger band, target is an SMA, and StopLoss is a price which is calculated at entry (and vice versa for shorts).
Seemd to work okay, but had problems twice today: All of a sudden NT sendet buy - short - buy - short - ... orders for about two minutes.
The order log from the output window showed dozends of these:
2/6/2009 12:15:00 PM Entered internal SetStopTarget() method: Type=Stop FromEntrySignal='HoboST' Mode=Ticks Value=12 Currency=0 Simulated=False
2/6/2009 12:15:00 PM Entered internal SetStopTarget() method: Type=Stop FromEntrySignal='HoboLG' Mode=Ticks Value=12 Currency=0 Simulated=False
2/6/2009 12:15:00 PM Entered internal SetStopTarget() method: Type=Stop FromEntrySignal='HoboST' Mode=Ticks Value=12 Currency=0 Simulated=False
The last records before that repetition were:
2/6/2009 12:14:59 PM Entered internal PlaceOrder() method at 2/6/2009 12:14:59 PM: Action=Sell OrderType=Market Quantity=0 LimitPrice=0 StopPrice=0 SignalName='xlg' FromEntrySignal='HoboLG'
2/6/2009 12:14:59 PM Ignored PlaceOrder() method: Action=Sell OrderType=Market Quantity=0 LimitPrice=0 StopPrice=0 SignalName='xlg' FromEntrySignal='HoboLG' Reason='This was an exit order but no position exists to exit'
2/6/2009 12:15:00 PM Cancelled pending exit order, since associated position is closed: Order='00567cf06dd14798b0bc2175b6f380f8/Sim101' Name='Stop loss' State=Accepted Instrument='ES 03-09' Action=Sell Limit price=0 Stop price=855.5 Quantity=2 Strategy='HoboESv01' Type=Stop Tif=Gtc Oco='40d1b309d3604db18d5bb98c0f32eccb' Filled=0 Fill price=0 Token='00567cf06dd14798b0bc2175b6f380f8' Gtd='12/1/2099 12:00:00 AM'
What my script is doing at the entry (long):
// HOBO LONG ENTRY
if (CrossBelow(Low, HoboSigLong(BBStdDev, Period), 1)
&& ToTime(Time[0]) >= ToTime(9, 30, 0)
&& ToTime(Time[0]) < ToTime(15, 0, 0))
{
EnterLong(InitCtr, "HoboLG");
stpLG = HoboStopLo(BBStdDev, Period)[0];
SetStopLoss( "HoboST", CalculationMode.Price, stpLG, false );
}