I have built several strategies in SB and while I like how they perform in general, I would really like the option to trail positions as I would using my ATMs I built and tested. I know it has been requested for quite some time for us to have the ability to use ATMs in the strategy builder and I am not sure if this has been worked on or not. I do not see a way to do it if it exists. What I have experienced is I create a great entry strategy but the trailing stop performs in a very unacceptable way. I would like to have the price action move x amount of ticks before the trailing stop moves.
Doing this in a multi step is preferred but I don't see where this is possible either. A 20 tick trailing stop gets hit immediately, a 60 tick stop moves forward but usually doesn't make it to BE and then gets stopped out.
So as a workaround, I am wondering if this will work and if so, how is it done?
I have the script for the trailing stop I use in one of my favorite ATMS. Where would I paste this into my strategy unlocked code in order to get it to work? IE: If I put in the user input of 5 lot TS as the trade quantity and associated signal. Where would it need to be pasted in the code?
Can you see how beneficial it would be if ATM association was built into NT? This is a very round about way to get this to work if it's even possible. I can't upload the file but I will show you what the code looks like for the ATM.
Thanks for any insight you may be able to provide.
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<NinjaTrader>
<AtmStrategy xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<IsVisible>true</IsVisible>
<AreLinesConfigurable>true</AreLinesConfigurable>
<ArePlotsConfigurable>true</ArePlotsConfigurable>
<BarsToLoad>0</BarsToLoad>
<DisplayInDataBox>true</DisplayInDataBox>
<From>2099-12-01T00:00:00</From>
<Panel>0</Panel>
<ScaleJustification>Right</ScaleJustification>
<ShowTransparentPlotsInDataBox>false</ShowTransparentPlotsInDataBox>
<To>1800-01-01T00:00:00</To>
<Calculate>OnBarClose</Calculate>
<Displacement>0</Displacement>
<IsAutoScale>true</IsAutoScale>
<IsDataSeriesRequired>false</IsDataSeriesRequired>
<IsOverlay>false</IsOverlay>
<Lines/>
<MaximumBarsLookBack>TwoHundredFiftySix</MaximumBarsLookBack>
<Name>AtmStrategy</Name>
<Plots/>
<SelectedValueSeries>0</SelectedValueSeries>
<BarsRequiredToTrade>0</BarsRequiredToTrade>
<Category>Atm</Category>
<ConnectionLossHandling>KeepRunning</ConnectionLossHandling>
<DaysToLoad>1</DaysToLoad>
<DefaultQuantity>1</DefaultQuantity>
<DisconnectDelaySeconds>0</DisconnectDelaySeconds>
<EntriesPerDirection>1</EntriesPerDirection>
<EntryHandling>AllEntries</EntryHandling>
<ExitOnSessionCloseSeconds>0</ExitOnSessionCloseSeconds>
<IncludeCommission>false</IncludeCommission>
<IsAggregated>false</IsAggregated>
<IsExitOnSessionCloseStrategy>false</IsExitOnSessionCloseStrategy>
<IsFillLimitOnTouch>false</IsFillLimitOnTouch>
<IsOptimizeDataSeries>false</IsOptimizeDataSeries>
<IsStableSession>false</IsStableSession>
<IsTickReplay>false</IsTickReplay>
<IsTradingHoursBreakLineVisible>false</IsTradingHoursBreakLineVisible>
<IsWaitUntilFlat>false</IsWaitUntilFlat>
<NumberRestartAttempts>0</NumberRestartAttempts>
<OptimizationPeriod>10</OptimizationPeriod>
<OrderFillResolution>High</OrderFillResolution>
<OrderFillResolutionType>Tick</OrderFillResolutionType>
<OrderFillResolutionValue>1</OrderFillResolutionValue>
<RestartsWithinMinutes>0</RestartsWithinMinutes>
<SetOrderQuantity>Strategy</SetOrderQuantity>
<Slippage>0</Slippage>
<StartBehavior>AdoptAccountPosition</StartBehavior>
<StopTargetHandling>ByStrategyPosition</StopTargetHandling>
<SupportsOptimizationGraph>false</SupportsOptimizationGraph>
<TestPeriod>28</TestPeriod>
<TradingHoursSerializable/>
<Gtd>1800-01-01T00:00:00</Gtd>
<Template>5 Contract 35 Trail</Template>
<TimeInForce>Gtc</TimeInForce>
<AtmSelector>288dbb5251014785a8a955f0e1492f53</AtmSelector>
<OnBehalfOf/>
<ReverseAtStopStrategyId>-1</ReverseAtStopStrategyId>
<ReverseAtTargetStrategyId>-1</ReverseAtTargetStrategyId>
<ShadowStrategyStrategyId>-1</ShadowStrategyStrategyId>
<ShadowTemplate/>
<Brackets>
<Bracket>
<Quantity>1</Quantity>
<StopLoss>35</StopLoss>
<Target>9</Target>
</Bracket>
<Bracket>
<Quantity>2</Quantity>
<StopLoss>35</StopLoss>
<Target>14</Target>
</Bracket>
<Bracket>
<Quantity>1</Quantity>
<StopLoss>35</StopLoss>
<Target>19</Target>
</Bracket>
<Bracket>
<Quantity>1</Quantity>
<StopLoss>35</StopLoss>
<StopStrategy>
<AutoBreakEvenPlus>11</AutoBreakEvenPlus>
<AutoBreakEvenProfitTrigger>15</AutoBreakEvenProfitTrigger>
<AutoTrailSteps>
<AutoTrailStep>
<Frequency>999</Frequency>
<ProfitTrigger>19</ProfitTrigger>
<StopLoss>6</StopLoss>
</AutoTrailStep>
<AutoTrailStep>
<Frequency>4</Frequency>
<ProfitTrigger>24</ProfitTrigger>
<StopLoss>4</StopLoss>
</AutoTrailStep>
<AutoTrailStep>
<Frequency>2</Frequency>
<ProfitTrigger>35</ProfitTrigger>
<StopLoss>2</StopLoss>
</AutoTrailStep>
</AutoTrailSteps>
<IsSimStopEnabled>false</IsSimStopEnabled>
<VolumeTrigger>0</VolumeTrigger>
<Template>Tight Range TS NEW TIGHTER</Template>
</StopStrategy>
<Target>0</Target>
</Bracket>
</Brackets>
<CalculationMode>Ticks</CalculationMode>
<ChaseLimit>0</ChaseLimit>
<EntryQuantity>5</EntryQuantity>
<InitialTickSize>0</InitialTickSize>
<IsChase>false</IsChase>
<IsChaseIfTouched>false</IsChaseIfTouched>
<IsTargetChase>false</IsTargetChase>
<ReverseAtStop>false</ReverseAtStop>
<ReverseAtTarget>false</ReverseAtTarget>
<UseMitForProfit>false</UseMitForProfit>
<UseStopLimitForStopLossOrders>false</UseStopLimitForStopLossOrders>
</AtmStrategy>
</NinjaTrader>
Comment