NexusFi: Find Your Edge


Home Menu

 





Moving Trendline within day range


Discussion in EasyLanguage Programming

Updated
    1. trending_up 6,522 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?
Iran Airspace Collapses 18 Points to 15.5% While Hormuz …
Prediction Markets & Event Contracts
Roland Garros Final Day: $3M on Zverev at 80.5% -- Leban …
Prediction Markets & Event Contracts
April 2026 Jobs Report: +115k vs +65k Expected
Traders Hideout
April CPI Preview: +3.7% YoY Expected at 8:30 AM ET -- C …
Traders Hideout
Memorandum Watch: How the 60-Day MOU Framework Makes May …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
197 thanks
Sober Journey With S&P
27 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
BERN ALGOS algo trading journal
8 thanks
  #2 (permalink)
 
vmodus's Avatar
 vmodus 
Somewhere, Delaware, USA
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