Change Horizontal Line Color Based on Time? - EasyLanguage Programming | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > EasyLanguage Programming

Change Horizontal Line Color Based on Time?
Started:July 24th, 2015 (02:10 PM) by jdwf16 Views / Replies:289 / 1
Last Reply:July 24th, 2015 (02:10 PM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Change Horizontal Line Color Based on Time?

Old July 24th, 2015, 02:10 PM   #1 (permalink)
Fort Smith, Arkansas
Futures Experience: Advanced
Platform: Tradestation
Broker/Data: Tradestation, ToS
Favorite Futures: ES, NQ, CL, GC, EURUSD
Posts: 2 since Nov 2013
Thanks: 0 given, 0 received

Change Horizontal Line Color Based on Time?

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.

Reply With Quote

Old July 24th, 2015, 02:10 PM   #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.


Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > EasyLanguage Programming > Change Horizontal Line Color Based on Time?

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
horizontal line to update with real time price - NT7 gparkis NinjaTrader 6 August 23rd, 2016 09:53 PM
Strategy based on the Color of an EMA Line jhunt NinjaTrader Programming 1 November 21st, 2013 05:08 PM
Color change in an indicator line macro NinjaTrader Programming 9 March 16th, 2012 05:12 PM
ADX color line change in DM Indicator Joshua 1 vs 8 NinjaTrader Programming 30 October 31st, 2010 03:10 PM
Horizontal line with text vast NinjaTrader Programming 2 February 4th, 2010 03:46 PM

All times are GMT -4. The time now is 10:25 AM.

Copyright © 2016 by 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.
no new posts

Page generated 2016-10-24 in 0.06 seconds with 19 queries on phoenix via your IP