Trailing Stop - how to use by trading futures - NinjaTrader Programming | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming

Trailing Stop - how to use by trading futures
Started:May 27th, 2011 (02:21 PM) by Blackburn Views / Replies:1,137 / 2
Last Reply:May 27th, 2011 (11:59 PM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Trailing Stop - how to use by trading futures

Old May 27th, 2011, 02:21 PM   #1 (permalink)
Elite Member
Malchow (Meckl.)
Futures Experience: Intermediate
Platform: NinjaTrader, TWS
Favorite Futures: Stocks
Posts: 17 since Mar 2011
Thanks: 15 given, 0 received

Trailing Stop - how to use by trading futures


this is a piece of my code im using in my strategy (LONG):

if (WMA(Weighted, 20)[0] > WMA(Weighted, 50)[0]
&& Low[0] > WMA(Weighted, 20)[0]
&& WMA(Weighted, 20)[0] > WMA(Weighted, 20)[4]
&& Close[0] > Swing(5).SwingHigh[0])
EnterLong(DefaultQuantity, "Long");
BarColor = Color.CornflowerBlue;
CandleOutlineColor = Color.CornflowerBlue;
BackColor = Color.MidnightBlue;

Im trading DAX-, Dow Jones- and Bund - Future.

My question is:

How can i set the the trailingstop correctly?
My favourite trailing stop ist the last swing point (Swing.Low or .High like in the code above)
LONG : ever when the next swing.low ist passed - this ist the next SL.
SHORT vice versa.

Thanks for your help

Reply With Quote

Old May 27th, 2011, 02:21 PM   #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.


Old May 27th, 2011, 11:59 PM   #3 (permalink)
Site Administrator
Manta, Ecuador
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
Big Mike's Avatar
Posts: 45,432 since Jun 2009
Thanks: 28,836 given, 79,562 received

I haven't used Ninja in well over a year, but you've checked out SetStopLoss() right? You would just set it to CalculationMode.Price, and the price would be based on your indicator value.


Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > Trailing Stop - how to use by trading futures

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit Order and Trailing Stop Tiger45 NinjaTrader Programming 7 May 9th, 2013 05:57 AM
Trailing stop following an indicator nanobiotech NinjaTrader Programming 9 October 3rd, 2011 09:50 AM
trailing stop la LeBeau kiasom EasyLanguage Programming 4 May 13th, 2011 05:13 PM
Trailing Stop Loss and Reverse shergenr NinjaTrader Programming 3 March 1st, 2011 10:05 AM
Trailing stop loss kavin729 NinjaTrader Programming 1 August 20th, 2010 01:17 PM

All times are GMT -4. The time now is 10:20 AM.

Copyright © 2016 by 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.
no new posts

Page generated 2016-10-24 in 0.09 seconds with 19 queries on phoenix via your IP