NexusFi: Find Your Edge


Home Menu

 





Draw Lines Don't Persist on Chart?


Discussion in NinjaTrader

Updated
    1. trending_up 730 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?
What broker to use for trading palladium futures
Commodities
Trade idea based off three indicators.
Traders Hideout
ZombieSqueeze
Platforms and Indicators
Strategy stop orders partially filled
EasyLanguage Programming
REcommedations for programming help
Sierra Chart
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Funded Trader platforms
55 thanks
Just another trading journal: PA, Wyckoff & Trends
19 thanks
Self sabotage reframed
15 thanks
Trading with Intuition
14 thanks
FootPrintV2 Chart for NT8
8 thanks
  #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