NexusFi: Find Your Edge


Home Menu

 





Draw Lines Don't Persist on Chart?


Discussion in NinjaTrader

Updated
    1. trending_up 717 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread

Draw Lines Don't Persist on Chart?

  #1 (permalink)
MrDevDevy
Pheonix Arizona
 
Posts: 14 since Feb 2019
Thanks Given: 1
Thanks Received: 21

Hello,

I am new to this, hope it's not too silly a question.. Every time I call Draw.Line() it removes the previous line. So I am always left with one single line AND the last called draw line. How can I make all the previous calls to Draw.Line() stay on the chart? Thanks!!!

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
Exit Strategy
NinjaTrader
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Futures True Range Report
The Elite Circle
 
  #2 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090


MrDevDevy View Post
Hello,

I am new to this, hope it's not too silly a question.. Every time I call Draw.Line() it removes the previous line. So I am always left with one single line AND the last called draw line. How can I make all the previous calls to Draw.Line() stay on the chart? Thanks!!!

the problem is the new "tag1", will erase the old "tag1", specify "tag1"+CurrentBar, instead. This will give each Draw.Line(this, "tag1"+CurrentBar, false,... a unique id so they don't overwrite each others

Reply With Quote
Thanked by:
  #3 (permalink)
MrDevDevy
Pheonix Arizona
 
Posts: 14 since Feb 2019
Thanks Given: 1
Thanks Received: 21



cory View Post
the problem is the new "tag1", will erase the old "tag1", specify "tag1"+CurrentBar, instead. This will give each Draw.Line(this, "tag1"+CurrentBar, false,... a unique id so they don't overwrite each others

That was exactly it, thanks for the quick reply!


Reply With Quote




Last Updated on February 24, 2019


© 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