DateTime comparison to fixed values - EasyLanguage Programming | futures io social day trading
futures io futures trading


DateTime comparison to fixed values
Updated: Views / Replies:129 / 2
Created: by westofpluto Attachments:0

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
 

DateTime comparison to fixed values

 
Encinitas
 
 
Posts: 4 since Jan 2019
Thanks: 0 given, 0 received

DateTime comparison to fixed values

Suppose I only want my EL strategy to trade between two fixed times. In PST these times are 0630 and 1245. How do I compare the current time to these values?

My current code:

Inputs:
TimeBegin(630),
TimeEnd(1245);

if CurrentTime > TimeBegin and CurrentTime < TimeEnd then begin
{ trade logic here}
end
else begin
{no trading}
end;

Will this work or must I somehow convert CurrentTime to an integer? For BeginTime, must I specifiy it as 0630 rather that 630?

Please explain. Thanks.

 
 
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
 
 Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Trading Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 2,099 since Apr 2013
Thanks: 377 given, 1,344 received


westofpluto,

CurrentTime is your computers clock at this very moment, using the reserved word Time that gives you the time of the bar might be better suited for your purpose.
A conversion wouldn't be necessary and using 0630 or 630 should make no difference.

Regards,

ABCTG

Follow me on Twitter Visit my Facebook

 



futures io > > > > > DateTime comparison to fixed values
Thread Tools



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

futures io is celebrating 10-years w/ over $18,000 in prizes!

Right now
 

$250 Amazon Gift Cards with our "Thanks Contest" challenge!

Right now
 

Webinar: The Seven Most Effective Trading Setups w/Peter Davies @ Jigsaw

Oct 17
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Close Price for specified datetime no erocla EasyLanguage Programming 2 November 4th, 2014 06:04 AM
Chart Values/Tool Values Window is missing Big Mike Sierra Chart 17 August 24th, 2012 07:05 PM
datetime range for multicharts adam081527 EasyLanguage Programming 2 March 7th, 2012 10:39 PM
"Best" DateTime format for Matlab import MXASJ Matlab, R project and Python 3 December 14th, 2010 06:44 AM
Translating EMA-values to ZN-values or visaversa max-td NinjaTrader Programming 17 June 22nd, 2009 03:42 PM


All times are GMT -4. The time now is 02:51 AM. (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, info@futures.io
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