NexusFi: Find Your Edge


Home Menu

 





Moving Trendline within day range


Discussion in EasyLanguage Programming

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




 
Search this Thread

Moving Trendline within day range

  #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?
Are there any eval firms that allow you to sink to your …
Traders Hideout
Exit Strategy
NinjaTrader
Better Renko Gaps
The Elite Circle
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
Online prop firm The Funded Trader (TFT) going under?
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
59 thanks
Funded Trader platforms
37 thanks
NexusFi site changelog and issues/problem reporting
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
The Program
19 thanks
  #2 (permalink)
 
vmodus's Avatar
 vmodus 
Somewhere, Delaware, USA
 
Experience: Intermediate
Platform: MultiCharts
Broker: Barchart.com
Trading: Everything, it all tastes like chicken
Posts: 1,271 since Feb 2017
Thanks Given: 2,958
Thanks Received: 2,853


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 Twitter 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: 86



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


© 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