NexusFi: Find Your Edge


Home Menu

 





Moving Trendline within day range


Discussion in EasyLanguage Programming

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




 
Search this Thread
  #1 (permalink)
Feazy
Zug, Switzerland
 
Posts: 4 since Jul 2020
Thanks Given: 0
Thanks Received: 0

Hi Guys,

I am new here, trying to figure out a way to programme the following in Easylanguage for TS:
I would like to set a trendline on dailyhigh and dailylow, however, this line should only move if a new high or low has been established during the day/session.

For example, 3min bar chart, the daily high of 10$ is around 9.30am, so the trendline is set there as of the beginning of the session. At 10.30am, a new daily high occures at 12$, therefore, a new trendline is set as of this bar (at 10.30) until a new high is established etc. Important for me is that the previous trendlines do not disappear everytime a new high is set but are rather fixed and stored.

thanks a lot for your help guys, really appreciate it!

Feazy


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
My Rant with AMP Futures
Trading Reviews and Vendors
I developed a free AI-powered (Kronos) forecasting indic …
The Elite Circle
No book, only a stair: journaling fills where price move …
Cryptocurrency
EA
Platforms and Indicators
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Would you consider buying or leasing an algo?
6 thanks
Trading Journal (Neural Network Production Pipeline Mode …
4 thanks
Trading psychology articles
4 thanks
Big Mike in Ecuador
3 thanks
The Scalpers Journey
2 thanks
  #2 (permalink)
 
vmodus's Avatar
 vmodus 
Somewhere, Delaware, USA
Legendary Systematic Algo Trader
 
Experience: Intermediate
Platform: MultiCharts
Broker: Barchart.com
Trading: Everything, it all tastes like chicken
Posts: 1,270 since Feb 2017
Thanks Given: 2,960
Thanks Received: 2,856


Feazy View Post
Hi Guys,

I am new here, trying to figure out a way to programme the following in Easylanguage for TS:
I would like to set a trendline on dailyhigh and dailylow, however, this line should only move if a new high or low has been established during the day/session.

For example, 3min bar chart, the daily high of 10$ is around 9.30am, so the trendline is set there as of the beginning of the session. At 10.30am, a new daily high occures at 12$, therefore, a new trendline is set as of this bar (at 10.30) until a new high is established etc. Important for me is that the previous trendlines do not disappear everytime a new high is set but are rather fixed and stored.

thanks a lot for your help guys, really appreciate it!

Feazy

You can use Data2, with Data2 having your daily timeframe. Then just reference the high of the daily chart, as shown in this snippet:

 
Code
High of data2
One item of note if you do it this way: the daily close is usually different than the minute due to settlements after the close.

~vmodus


Follow me on X Visit my NexusFi Trade Journal Reply With Quote
  #3 (permalink)
 edgefirst 
Las Cruces, NM
 
Experience: Advanced
Platform: Tradestation, MC, NT
Broker: TradeStation, IB
Trading: Liquid futures contracts
Posts: 56 since Sep 2009
Thanks Given: 389
Thanks Received: 87



Feazy View Post
Hi Guys,

I am new here, trying to figure out a way to programme the following in Easylanguage for TS:
I would like to set a trendline on dailyhigh and dailylow, however, this line should only move if a new high or low has been established during the day/session.

For example, 3min bar chart, the daily high of 10$ is around 9.30am, so the trendline is set there as of the beginning of the session. At 10.30am, a new daily high occures at 12$, therefore, a new trendline is set as of this bar (at 10.30) until a new high is established etc. Important for me is that the previous trendlines do not disappear everytime a new high is set but are rather fixed and stored.

thanks a lot for your help guys, really appreciate it!

Feazy


It appears that "Day Open-Hi-Lo Lines" indicator does what you want.


Reply With Quote




Last Updated on September 9, 2020


© 2026 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 - Downloads - Top
no new posts