NexusFi: Find Your Edge


Home Menu

 





FYI plot bug & workaround: changing color or width is delayed 1 bar


Discussion in EasyLanguage Programming

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




 
Search this Thread

FYI plot bug & workaround: changing color or width is delayed 1 bar

  #1 (permalink)
thoughtful
Klamath Falls OR
 
Posts: 60 since Apr 2020
Thanks Given: 21
Thanks Received: 80

[Applicable to both TradeStation and MultiCharts]

FYI, in case anyone isn't already aware of this, there's a bug when you plot with the LINE style (I'm not sure yet if the bug applies to other styles (dots/points etc)). If you change the color or width, it doesn't change for that bar, the change is delayed until the next bar. Here's a workaround: whenever you want to change the color or width of the line, you simply replot the previous bar's line value (remember it with a variable) with the new color and/or width that you want, then afterward you plot your current bar as usual. This will not change the previous bar's line color or width, it'll only change the current bar, which is what you want.

And there's another bug that affects changing color/width: When you replot a previous bar's line value, you can't use the word "default" or leave the color/width fields blank, (however you CAN use default for the current bar though). IOW you must type in a specific value, so for the color you must type in a standard/builtin color name or a color variable (integer), and for the width you must type in a number or a variable.

Reply With Quote
The following 2 users say Thank You to thoughtful for this post:





Last Updated on July 1, 2020


© 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