NexusFi: Find Your Edge


Home Menu

 





Using SuperTrend for trailing stop in a strategy - help needed


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one DarrenH with 4 posts (2 thanks)
    2. looks_two max-td with 2 posts (0 thanks)
    3. looks_3 Futuresnoob with 2 posts (0 thanks)
    4. looks_4 Big Mike with 1 posts (0 thanks)
    1. trending_up 12,366 views
    2. thumb_up 3 thanks given
    3. group 8 followers
    1. forum 16 posts
    2. attach_file 1 attachments




 
Search this Thread

Using SuperTrend for trailing stop in a strategy - help needed

  #1 (permalink)
 
DarrenH's Avatar
 DarrenH 
Cotswolds UK
 
Experience: Intermediate
Platform: NT7, Multicharts
Broker: Mirus,Amp,ZenFire
Trading: Fdax
Posts: 64 since Mar 2010
Thanks Given: 95
Thanks Received: 23

hello guys does anyone no if it possilble to use the trend lines in TS super trend to trail a stop and use it in a ATM strategy. And if its possible how would it be done, i dont really know a lot about writing code to do this. Thanks

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
NexusFi Journal Challenge - April 2024
Feedback and Announcements
Better Renko Gaps
The Elite Circle
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
38 thanks
NexusFi site changelog and issues/problem reporting
27 thanks
GFIs1 1 DAX trade per day journal
18 thanks
The Program
18 thanks
  #3 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927


hi,

the trend lines in TS super trend ?

a screenshot would explain your idea a bit better i think.

thanks max

max-td
Reply With Quote
  #4 (permalink)
 
ZTR's Avatar
 ZTR 
 
Experience: Advanced
Platform: NinjaTrader7
Broker: Mirus RCG/Zen-Fire
Trading: CL & 6e, looking at ES, ZB and AU again.
Posts: 2,096 since Nov 2009
Thanks Given: 1,099
Thanks Received: 1,393

Have you looked at TrendLineAlarmCustom in the Double Z trading suite available in the Elite Circle downloads?

The code might be modifiable to execute trades instead of just signaling an alert on a trendline cross.

R.I.P. Andy Zektzer (ZTR), 1960-2010.
Please visit this thread for more information.
Visit my NexusFi Trade Journal Reply With Quote
  #5 (permalink)
 
DarrenH's Avatar
 DarrenH 
Cotswolds UK
 
Experience: Intermediate
Platform: NT7, Multicharts
Broker: Mirus,Amp,ZenFire
Trading: Fdax
Posts: 64 since Mar 2010
Thanks Given: 95
Thanks Received: 23

Hi Maxtd

here is image explaining

Attached Thumbnails
Click image for larger version

Name:	trailing stop with TSsupertrend.jpg
Views:	1087
Size:	50.2 KB
ID:	10260  
Started this thread Reply With Quote
Thanked by:
  #6 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

i see what you mean now - these supertrend-hash-marks ....
i can say that .....

1) its not possible with the strategy wizard.
2) its not possible with ATMs
3) it needs costume coding - a bit advanced i would say -
4) it will work with "stop-order-modification"-function - always changing the value of your stop to the new value of the supertrend hashes.

thats what i can tell you - but never did such stuff by myself.
i gonna change the thread-title to find some helpers maybe

max-td
Reply With Quote
  #7 (permalink)
 Eric j 
NY
 
Experience: Advanced
Platform: Esignal, MBT navigator
Trading: Currencies
Posts: 2,507 since Jun 2009
Thanks Given: 1,396
Thanks Received: 2,576

Hey DarrenH , if Im not mistaken the hash marks on tss are average true range . What may work equally well as a trailing stop in a strategy and accomplish the same thing is ADXVMA and would be easier to code too . Try plotting ADXVMA as a hash and see if you like it then go from there .

Visit my NexusFi Trade Journal Reply With Quote
  #8 (permalink)
stuart123
sydney
 
Posts: 7 since Mar 2010
Thanks Given: 0
Thanks Received: 0

hi

where does one get the maxt-d

Reply With Quote
  #9 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,397 since Jun 2009
Thanks Given: 33,173
Thanks Received: 101,537

Yes, it is possible. Anything is possible. It is not easy however.

Where are you running into problems?

Remove SuperTrend from the equation, you have a working updating-stop working and in-place for some basic indicator? Using an ATM generally means you want the ATM to update the stop using the ATM template itself.

Why do you want to use an ATM if your strategy will have an advanced trailing stop system? Just use the strategy itself and forego the ATM to control the order more precisely, it will be easier.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #10 (permalink)
 phyzfer 
Chicago
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus/Zen-FIre
Trading: GC, ES
Posts: 73 since Mar 2010
Thanks Given: 40
Thanks Received: 33


DarrenH,

If I understand what you want correctly, it can be done. One method of doing this is to save the list of the trend-line locations that you want to move your stop to AND the locations at which you want to update your stop price. If the location is a set (say X ticks) away from the AvgFillPrice of your order, it can be done without knowing beforehand when you want to update the stop-prices.

One way to accomplish this is to compare the close price of the current bar with your AvgFillPrice. Like this perhaps:

if(Close[0] == order.AvgFillPrice + X*TickSize)
SetTrailStop(

Like max-td mentioned, this will require some custom coding, BUT you could use the internal order handling functions that NT offers in tandem with your custom code. Check out:

http://ww25.ninjatrader-support.com/HelpGuideV6/helpguide.html?SetTrailStop&subid1=20240327-2225-18fe-b1c0-b13adf94b713

Reply With Quote
Thanked by:




Last Updated on September 29, 2017


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts