NexusFi: Find Your Edge


Home Menu

 





Drawing trailing stop on chart


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one protrader007 with 2 posts (0 thanks)
    2. looks_two eDanny with 1 posts (0 thanks)
    3. looks_3 ThatManFromTexas with 1 posts (0 thanks)
    4. looks_4 Big Mike with 1 posts (1 thanks)
    1. trending_up 4,928 views
    2. thumb_up 1 thanks given
    3. group 3 followers
    1. forum 6 posts
    2. attach_file 4 attachments




 
Search this Thread

Drawing trailing stop on chart

  #1 (permalink)
 protrader007 
Bee Cave,Tx
 
Experience: Intermediate
Platform: NinjaTrader
Trading: CL
Posts: 54 since Aug 2010
Thanks Given: 31
Thanks Received: 20

I can draw an object, such as a black triangle, at the trailing stop position on the chart (see attachement) using the following code:

 
Code
 
DrawTriangleDown("TrailingStop"+CurrentBar,true,0,stopPriceShort,Color.Black);
However, I want to draw a solid, continuous, black line that tracks the trailing stop and looks more like a stair step.

I've tried all variations of the "DrawLine" command but can't find anything that works! All I get is a small horizontal line above or below each price bar. How do you draw a stair step continuous line. Would someone please tell me how to do this.

Many thanks

Attached Thumbnails
Click image for larger version

Name:	Trailing_Stop.png
Views:	237
Size:	8.8 KB
ID:	35752  
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Cheap historycal L1 data for stocks
Stocks and ETFs
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
MC PL editor upgrade
MultiCharts
REcommedations for programming help
Sierra Chart
 
  #3 (permalink)
 
eDanny's Avatar
 eDanny 
East Rochester, NY
 
Experience: Intermediate
Platform: NT
Posts: 329 since Jul 2009
Thanks Given: 18
Thanks Received: 425


You would need to use a plot instead of drawing a line. Set the plot to Square to get the effect you desire.

Dan

Reply With Quote
  #4 (permalink)
 
ThatManFromTexas's Avatar
 ThatManFromTexas 
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
Posts: 2,265 since Feb 2010
Thanks Given: 1,206
Thanks Received: 4,355


protrader007 View Post

However, I want to draw a solid, continuous, black line that tracks the trailing stop and looks more like a stair step.

I've tried all variations of the "DrawLine" command but can't find anything that works! All I get is a small horizontal line above or below each price bar. How do you draw a stair step continuous line. Would someone please tell me how to do this.

Many thanks

Is this what you want?

I'm just a simple man trading a simple plan.

My daddy always said, "Every day above ground is a good day!"
Reply With Quote
  #5 (permalink)
 protrader007 
Bee Cave,Tx
 
Experience: Intermediate
Platform: NinjaTrader
Trading: CL
Posts: 54 since Aug 2010
Thanks Given: 31
Thanks Received: 20


ThatManFromTexas View Post
Is this what you want?
Attachment 35765 Attachment 35766

I want to show the stop movement based on the strategy ATM only when I'm in a trade.
On the chart the ATM stop movement would look like a stair step line as the stop moves from one level to the next and would only be on the chart for the duration of the trade. I've drawn it on the attached chart to show what I mean.

Attached Thumbnails
Click image for larger version

Name:	ATM_stop.png
Views:	188
Size:	6.5 KB
ID:	35778  
Started this thread Reply With Quote
  #6 (permalink)
 its4fulya 
London
 
Experience: Intermediate
Platform: NinjaTrader
Trading: 6E
Posts: 3 since Mar 2011
Thanks Given: 0
Thanks Received: 0


ThatManFromTexas View Post
Is this what you want?
Attachment 35765 Attachment 35766

Dear friend I'd like to get the the trailing stop on the second pic so can you pls provide me with the link?

Thank you

Reply With Quote
  #7 (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,463 since Jun 2009
Thanks Given: 33,239
Thanks Received: 101,662


its4fulya View Post
Dear friend I'd like to get the the trailing stop on the second pic so can you pls provide me with the link?

Thank you

You might try SuperTrend:


And just change the plotstyle to dots.

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
Thanked by:




Last Updated on July 22, 2011


© 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