Retrieve first date on an intraday chart - EasyLanguage Programming | futures io social day trading
futures io futures trading


Retrieve first date on an intraday chart
Updated: Views / Replies:628 / 7
Created: by mandelmus 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 90,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

Reply
 
Thread Tools Search this Thread
 

Retrieve first date on an intraday chart

  #1 (permalink)
Trading Apprentice
Dallas, TX
 
Futures Experience: Advanced
Platform: TS, MS, SF, ToS
Favorite Futures: Forex, Stocks
 
Posts: 8 since Jun 2011
Thanks: 2 given, 3 received

Retrieve first date on an intraday chart

I applied a strategy to an intraday chart and I want the strategy to run on all days except the very first day loaded on the chart. To do this, I was thinking to add a requirement that the Date must be greater than the first date on the chart, but not sure about the best way to retrieve the first date on the chart.

Reply With Quote
 
  #2 (permalink)
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.

 
  #3 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,533 since Apr 2013
Thanks: 231 given, 855 received
Forum Reputation: Legendary


mandelmus,

you could store the date at CurrentBar = 1 in a variable.

Regards,

ABCTG

Reply With Quote
The following user says Thank You to ABCTG for this post:
 
  #4 (permalink)
Trading Apprentice
Dallas, TX
 
Futures Experience: Advanced
Platform: TS, MS, SF, ToS
Favorite Futures: Forex, Stocks
 
Posts: 8 since Jun 2011
Thanks: 2 given, 3 received


ABCTG View Post
mandelmus,

you could store the date at CurrentBar = 1 in a variable.

Regards,

ABCTG

I would like to, but have not found the code to do that. I tried to use the BarNumber with BarDateTime (Reserved Word), but keep getting an error that it "should be declared as elsystem.datetime class".

Reply With Quote
 
  #5 (permalink)
Trading Apprentice
Dallas, TX
 
Futures Experience: Advanced
Platform: TS, MS, SF, ToS
Favorite Futures: Forex, Stocks
 
Posts: 8 since Jun 2011
Thanks: 2 given, 3 received

Ok, just put this together and it looks like it works.

 
Code
Variables:
	FirstDate(0);

If BarNumber = 1 then FirstDate = Date[0];

Plot1(FirstDate,"FDate");

Reply With Quote
The following user says Thank You to mandelmus for this post:
 
  #6 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,533 since Apr 2013
Thanks: 231 given, 855 received
Forum Reputation: Legendary

This looks good. Personally I prefer using CurrentBar as this is a reserved word, where BarNumber is a function. The result is the same, but in general every function will slightly slow the code calculation. Although with the barnumber function you won't notice that.

Regards,
ABCTG

Reply With Quote
 
  #7 (permalink)
Trading Apprentice
Dallas, TX
 
Futures Experience: Advanced
Platform: TS, MS, SF, ToS
Favorite Futures: Forex, Stocks
 
Posts: 8 since Jun 2011
Thanks: 2 given, 3 received

I appreciate your help ABCTG. So, using CurrentBar, it would look like this:

 
Code
Variables:
	FirstDate(0);

If CurrentBar = 1 then FirstDate = Date[0];

Plot1(FirstDate,"FDate");

Reply With Quote
 
  #8 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,533 since Apr 2013
Thanks: 231 given, 855 received
Forum Reputation: Legendary

mandelmus,

you are welcome. Yes, it would like this. You can remove the [0] for the date, as it's not needed. But letting it in won't do any harm either.

Regards,
ABCTG

Reply With Quote

Reply



futures io > > > > > Retrieve first date on an intraday chart

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Retrieve previous day's close and current day's open on intraday chart mandelmus EasyLanguage Programming 1 February 26th, 2015 04:53 PM
Historical chart forced saves as Intraday chart Big Mike Sierra Chart 3 September 21st, 2014 11:50 PM
Rollover date vs Expiration date grego Currency Futures 3 March 10th, 2014 07:03 AM
Switching from intraday to historical chart type in Sierra Chart Big Mike Sierra Chart 4 April 25th, 2013 05:10 AM
[MC] indicator - Print Date on chart Nicolas11 The Elite Circle 2 April 6th, 2012 03:16 PM


All times are GMT -4. The time now is 04:03 PM.

Copyright © 2017 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
Page generated 2017-12-15 in 0.12 seconds with 19 queries on phoenix via your IP 54.90.92.204