Previous Hour High and Low times in easylanguage - TradeStation | futures io social day trading
futures io futures trading

Previous Hour High and Low times in easylanguage
Updated: Views / Replies:4,497 / 3
Created: by onava Attachments:1

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Thread Tools Search this Thread

Previous Hour High and Low times in easylanguage

  #1 (permalink)
Trading Apprentice
London/England, Zurich/Switzerland
Trading Experience: None
Platform: all
Favorite Futures: Tambourine
Posts: 20 since Apr 2012
Thanks: 2 given, 1 received

Previous Hour High and Low times in easylanguage


does anybody know how to code how to get the time of the previous hour Highs and lows and store the time in a variable.

Last edited by onava; April 24th, 2012 at 01:15 PM.
Reply With Quote
  #2 (permalink)
Elite Member
Newcastle, Australia
Trading Experience: Intermediate
Platform: Multicharts 8 - Full Version
Broker/Data: IB
Favorite Futures: SPI,FTSE100, 6E, 6A
Posts: 285 since Oct 2010
Thanks: 108 given, 182 received

What is the time frame of the bars? Hourly? If so then it is just High[1] or Low[1]

When you say previous hours H/L's do you mean the last sixty minutes ie it is now 9:17, do you mean the Highest High between now and 8:17 or do you mean between 8:00 and 9:00?

Reply With Quote
  #3 (permalink)
Man wearing a tuque
Calgary, Canada
Trading Experience: Intermediate
Platform: Multicharts
Broker/Data: IB, IQFeed
Favorite Futures: GC
Lampert's Avatar
Posts: 76 since Nov 2011
Thanks: 73 given, 133 received

This post has been selected as an answer to the original posters question Answer

Assuming that you want the previous hour like 8:00 to 9:00, here is the code and a screenshot.


Please register on to view futures trading content such as post attachment(s), image(s), and screenshot(s).

	Minutes          (0),
	ThisHourHigh     (High),
	ThisHourLow      (Low),
	ThisHourTimeH    (0),
	ThisHourTimeL    (0),
	PrevHourHigh     (High),
	PrevHourLow      (Low),
	PrevHourTimeH    (0),
	PrevHourTimeL    (0);

Minutes = MinutesFromDateTime ( ELTimeToDateTime ( Time ) ) ;

If Minutes = 0 then begin
	PrevHourHigh = ThisHourHigh ;
	PrevHourTimeH = ThisHourTimeH ;
	PrevHourLow = ThisHourLow ;
	PrevHourTimeL = ThisHourTimeL ;
	ThisHourHigh = High ;
	ThisHourTimeH = Time ;
	ThisHourLow = Low ;
	ThisHourTimeL = Time ;
end ;

If High > ThisHourHigh then begin
	ThisHourHigh = High ;
	ThisHourTimeH = Time ;
end ;

If Low < ThisHourLow then begin
	ThisHourLow = Low ;
	ThisHourTimeL = Time ;
end ;

Plot1 ( PrevHourHigh , "PrevHourHigh" ) ;
Plot2 ( PrevHourLow, "PrevHourLow" ) ;

Reply With Quote
The following 4 users say Thank You to Lampert for this post:
  #4 (permalink)
Trading Apprentice
London/England, Zurich/Switzerland
Trading Experience: None
Platform: all
Favorite Futures: Tambourine
Posts: 20 since Apr 2012
Thanks: 2 given, 1 received

Will try it out.. Looks good though. Thanks

Reply With Quote


futures io > > > > Previous Hour High and Low times in easylanguage

Upcoming Webinars and Events (4:30PM ET unless noted)

Journal Challenge $1600 in Prizes & Free Journalytix for all participants!


3 Excellent Entries, and How To Automate Them w/Kevin Davey

Feb 21

The Driving Force Behind the Market w/Earn2Trade

Mar 5

TBA w/Stage5 & iSystems

Mar 12

TBA w/John Grady @ No BS Day Trading

Mar 19

Day Trading Oil Futures: Reducing Risk & Increasing Profits w/DTN IQFeed

Mar 26

Similar Threads
Thread Thread Starter Forum Replies Last Post
computer alarm clock - audio 4 times per hour Todd The Elite Circle 11 May 31st, 2014 03:19 PM
I need a programmer to code previous 4 days high and low. mrphr NinjaTrader Programming 10 November 15th, 2011 03:46 PM
Globex High Low spinnybobo The Elite Circle 6 September 11th, 2011 05:45 PM
Previous weekly, monthly high & low Ralph07 NinjaTrader 3 June 10th, 2011 10:24 AM
3 bar high/low entry maintain active order until 3 bar high/low in opposite direction mrticks NinjaTrader Programming 8 November 13th, 2009 08:44 PM

code, easylanguage, es, futures, how to, tradestation, variable

All times are GMT -4. The time now is 10:27 PM. (this page content is cached, log in for real-time version)

Copyright © 2019 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432 WhatsApp Business,
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.
no new posts
Page generated 2019-02-19 in 0.17 seconds with 23 queries on phoenix