NexusFi: Find Your Edge


Home Menu

 





Timeframe problems with HighD(1)


Discussion in EasyLanguage Programming

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




 
Search this Thread

Timeframe problems with HighD(1)

  #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?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
REcommedations for programming help
Sierra Chart
Trade idea based off three indicators.
Traders Hideout
MC PL editor upgrade
MultiCharts
Exit Strategy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Tao te Trade: way of the WLD
24 thanks
GFIs1 1 DAX trade per day journal
17 thanks
Vinny E-Mini & Algobox Review TRADE ROOM
13 thanks
My NQ Trading Journal
12 thanks
  #2 (permalink)
 TraderDoc2 
Plainview
 
Experience: Intermediate
Platform: TradeStation
Broker: TradeStation
Trading: Futures
Posts: 34 since Mar 2012
Thanks Given: 1
Thanks Received: 21

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 Twitter 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
Legendary / Stochastic Calculus is not your friend
 
Experience: None
Platform: Ninjatrader, Python API
Broker: CQG
Trading: S&P, Crude, Gold
Posts: 851 since Oct 2009
Thanks Given: 3,418
Thanks Received: 1,537


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


© 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