NexusFi: Find Your Edge


Home Menu

 





Change Horizontal Line Color Based on Time?


Discussion in EasyLanguage Programming

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




 
Search this Thread

Change Horizontal Line Color Based on Time?

  #1 (permalink)
 jdwf16 
Fort Smith, Arkansas
 
Experience: Advanced
Platform: Tradestation
Broker: Tradestation, ToS
Trading: ES, NQ, CL, GC, EURUSD
Posts: 2 since Nov 2013
Thanks Given: 0
Thanks Received: 0

I've coded an EasyLanguage indicator that draws horizontal lines at price levels based on an oscillator's extreme readings. Those horizontal lines accumulate over the life of the chart. I'd like to code in an automatic color control for those lines so that the most recent occurrences are one color and the older lines are another color. Thinking I'd like to have three time-bands with corresponding colors. Not to belabor this but, a plain language example would be that my chart would have three colors of horizontal lines. Blue would be the lines that were formed 6 months ago. Yellow would be the lines that formed between 3 and 6 months ago. Green would be the lines that formed within the past 3 months.

I'm having a tough time figuring out how to make that work. Changing line color is easy. Changing line color based on a specific time criteria throws me a curve ball. Any suggestions, snippets, advice, etc. would be greatly appreciated.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
What broker to use for trading palladium futures
Commodities
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
ZombieSqueeze
Platforms and Indicators
How to apply profiles
Traders Hideout
Better Renko Gaps
The Elite Circle
 




Last Updated on July 24, 2015


© 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