NexusFi: Find Your Edge


Home Menu

 





Timeframe problems with HighD(1)


Discussion in EasyLanguage Programming

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




 
Search this Thread
  #1 (permalink)
OccamsRazorTrader
Fort Myers Florida/USA
 
Posts: 70 since May 2020
Thanks Given: 43
Thanks Received: 67

OK I'm not a programmer (actually I took a class in Basic in 1985!). I've managed to code some of what I need in EL by culling bits and pieces from other indicators. I trade the e-mini contract, if I use HighD(1) in my indicator and the chart set on "daily" timeframe it returns the session High from the trading session from previous day before (from 6:00 pm est yesterday to 5 pm today). But when I switch the timeframe to 15 minutes- it returns the calendar Day High value from yesterday until 12:00 midnight. So basically when on Daily timeframe it returns the Trading session High- but if I drill down to lower time frames it uses a calendar Daily High. If prices stay within the session price range- everything is fine- but if prices break out over the session high between 6:00 pm est and midnight the data returned is wrong. Any help is appreciated......


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
The 50/50 Paradox: Peace and Invasion Each at 20% -- Ira …
Prediction Markets & Event Contracts
Sundays Verdict: Lebanon Locked at 99.85% as Iran June 7 …
Prediction Markets & Event Contracts
Day 96 Missiles Hit Kuwait and Bahrain: June 15 Peace at …
Prediction Markets & Event Contracts
Fabrication or Framework? Irans Denied MOU Explains the …
Prediction Markets & Event Contracts
Al Arabiya: US-Iran Draft Deal Within Hours Contains Hor …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
196 thanks
Sober Journey With S&P
27 thanks
30 Sessions
20 thanks
BERN ALGOS algo trading journal
8 thanks
Volume Indicators
8 thanks
  #2 (permalink)
 TraderDoc2 
Plainview
 
Experience: Intermediate
Platform: TradeStation
Broker: TradeStation
Trading: Futures
Posts: 37 since Mar 2012
Thanks Given: 2
Thanks Received: 22

If you plot a chart of @ES.D and then plot HighD(1) you will see that you are plotting the high of yesterday's trading session (the day session i.e. 9:30 AM to 4:15 PM Eastern Time). Likewise, you can define a custom session and get an analogous result - the high from the prior custom session is plotted. If you do not limit yourself to the day session (i.e. using the .D after your symbol as in @ES.D) or define your session, then you get the behavior you are describing. If you want to create a function that will return a certain price, or you want to plot that certain price, I have little doubt that it can be done. But we need to know exactly what data you are examining (e.g. I am plotting a chart of @ES 15 minute bars - regular session) and exactly what value you want the function to return, or the chart indicator to plot. This is unclear to me from your post.


Follow me on X Reply With Quote
  #3 (permalink)
OccamsRazorTrader
Fort Myers Florida/USA
 
Posts: 70 since May 2020
Thanks Given: 43
Thanks Received: 67


The CME Globex session is from 6:00 pm (all est) until 4:15 pm the next day, takes a break between 4:15 pm and 4:30 pm, then resumes from 4:30 pm until 5:00 pm, at which time it closes until 6:00 pm. The High and Low values from those timeframes are what is displayed on a daily bar for symbol ESU21 using HighD(1). I want my indicator to display the High and Low data from the Globex session but on lower time frames. @ESU.D as well as ESU21.D appear to only show day session data- not overnight data. When I lower the time frame to 15 minutes on the chart (ESU21)- it does show price bars until 12:00 midnight, but the high from the day changes to represent the new data (High and or Low) after 6:00 pm until 12 midnight.

Would I have to customize the chart data to reflect the times the Globex market trades?


Reply With Quote
Thanked by:
  #4 (permalink)
 
Devil Man's Avatar
 Devil Man 
Fort Lauderdale
 
Experience: None
Platform: Ninjatrader, Python API
Broker: CQG
Trading: Nasdaq and Crude futures
Posts: 894 since Oct 2009
Thanks Given: 3,566
Thanks Received: 1,606


OccamsRazorTrader View Post
The CME Globex session is from 6:00 pm (all est) until 4:15 pm the next day, takes a break between 4:15 pm and 4:30 pm, then resumes from 4:30 pm until 5:00 pm, at which time it closes until 6:00 pm. The High and Low values from those timeframes are what is displayed on a daily bar for symbol ESU21 using HighD(1). I want my indicator to display the High and Low data from the Globex session but on lower time frames. @ESU.D as well as ESU21.D appear to only show day session data- not overnight data. When I lower the time frame to 15 minutes on the chart (ESU21)- it does show price bars until 12:00 midnight, but the high from the day changes to represent the new data (High and or Low) after 6:00 pm until 12 midnight.

Would I have to customize the chart data to reflect the times the Globex market trades?

@OccamsRazorTrader check your contract specs....no more trading break between 4:15 and 4:30pm eastern...now break is EOD at 5pm eastern, same open @6pm eastern.

This is potentially a huge issue depending on what indicators/timeframes you use for your trading.

cheers

DM


Reply With Quote




Last Updated on August 22, 2021


© 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