NexusFi: Find Your Edge


Home Menu

 





Change Horizontal Line Color Based on Time?


Discussion in EasyLanguage Programming

Updated
    1. trending_up 1,349 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?
MC PL editor upgrade
MultiCharts
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Cheap historycal L1 data for stocks
Stocks and ETFs
Strategy stop orders partially filled
EasyLanguage Programming
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
24 thanks
ApexTraderFunding.com experience and review
13 thanks
Trading with Intuition
12 thanks
GFIs1 1 DAX trade per day journal
9 thanks
EG Indicators
8 thanks




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