Historical / Last Bar - TradeStation | futures io social day trading
futures io futures trading


Historical / Last Bar
Updated: Views / Replies:1,868 / 5
Created: by ZARk 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

Reply
 
Thread Tools Search this Thread
 

Historical / Last Bar

  #1 (permalink)
 Vendor: www.ninjamonitor.net 
Waterloo
 
Futures Experience: Advanced
Platform: NinjaTrader, Tradestation
Broker/Data: Interactive Brokers
Favorite Futures: FDAX, Forex
 
Posts: 9 since Aug 2009
Thanks: 1 given, 1 received

Historical / Last Bar

Hello

I am looking for a TS Equivalent to NinjaTrader's Historical property, or even the LastBar equivalent.

Basically I need to know if the bar is getting it's data from the database, or if it's a "live" bar.

I looked around, but couldn't get anything that would give me the amount of bars present ( which i could compare with currentBar and thus know if i'm running on the lastBar of the chat).


I'm starting to think the only solution would be to start comparing the RealTime with the Bar Time and the barInterval, and determine if the bar took less than barInterval time to run which would mean it's running from database and not live ... but this seems a bit too subjective .... .

Any ideas ?

Reply With Quote
 
  #2 (permalink)
Learn to swim
Salt Lake City, Utah
 
Futures Experience: Intermediate
Platform: NinjaTrader, Tradestation
Favorite Futures: Forex
 
Posts: 72 since Feb 2011
Thanks: 274 given, 36 received

Perhaps you are looking for the function "lastbaronchart"

Reply With Quote
The following 2 users say Thank You to SammyD for this post:
 
  #3 (permalink)
 Vendor: www.ninjamonitor.net 
Waterloo
 
Futures Experience: Advanced
Platform: NinjaTrader, Tradestation
Broker/Data: Interactive Brokers
Favorite Futures: FDAX, Forex
 
Posts: 9 since Aug 2009
Thanks: 1 given, 1 received



SammyD View Post
Perhaps you are looking for the function "lastbaronchart"


I feel like an idiot now .... Why on earth does that function not appear in the help when you type "lastbar" .. i don't know ..

Works like a charm ! Thanks m8 !

Reply With Quote
 
  #4 (permalink)
 Vendor: www.ninjamonitor.net 
Waterloo
 
Futures Experience: Advanced
Platform: NinjaTrader, Tradestation
Broker/Data: Interactive Brokers
Favorite Futures: FDAX, Forex
 
Posts: 9 since Aug 2009
Thanks: 1 given, 1 received

Actually i found even better !


GetAppInfo(aiRealTimeCalc);

which is the equivalent to "Historical" in NT

returns 0 if the bar is "backtested" and 1 if it's live

Reply With Quote
The following user says Thank You to ZARk for this post:
 
  #5 (permalink)
Elite Member
Sydney Nsw Australia
 
Futures Experience: Intermediate
Platform: Amibroker, Multicharts
Broker/Data: I.B, CQG
Favorite Futures: NQ, 6E, SPI
 
Posts: 18 since Jun 2012
Thanks: 50 given, 8 received

Thanks a lot.

I have been using Multicharts for 3 weeks and wanted to draw a trendline for the trailing stop and initial stops on the last bar. I spent 2 hours trying to find a solution before looking here and finding the answer in 2 minutes.

Love Multicharts, but the help is pretty ordinary.


Reply With Quote
 
  #6 (permalink)
Elite Member
Tbilisi + Georgia
 
Futures Experience: None
Platform: ThinkScript,Tradestation
Favorite Futures: EUR/USD
 
Posts: 30 since Aug 2014
Thanks: 7 given, 13 received

some of solutions, to detect bar's date and positions...

 
Code
BarInterval   						[returns 5 for 5minute chart and etc...]
value1= FindBar(1050510, 1030); 	[returns bar using the specific date and time]
lastbaronchart  					[returns TRUE or FALSE]    					//p.s. same as GetAppInfo(aiRealTimeCalc)
GetAppInfo(aiSpaceToRight)			[returns bars after last rightmost bar]		//p.s. MaxBarsForward ???


ELDateToString(CurrentDate)	[returns 01/27/2015]
LastCalcTime				[returns 2350 	(it's 23:50)]
LastCalcDate				[returns 960226	(it's 02/26/96)]

Plot2(elsystem.Datetime.CurrentTime.Format("%I:%M:%S, %p"));

Reply With Quote

Reply



futures io > > > > Historical / Last Bar

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

September Journal Challenge (sponsored by TopstepTrader)

September

Free Elite Membership: Twitter Tuesday and Facebook Friday!

Tue & Fri
 

Trading with Python: Using Machine Learning w/Ran Aroussi [12:30PM ET]

Elite only

TopstepTrader (TBD)

Sep 25

RandBots (TBD)

Sep 27

Anthony Drager (TBD)

Oct 4
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Book Discussion: Reading Price Charts Bar by Bar by Al Brooks cunparis Traders Hideout 533 June 18th, 2018 01:30 PM
End of bar strategies with advanced bar types (Renko, Range, Kagi, etc) RM99 Elite EasyLanguage Automated Trading 2 September 9th, 2011 08:38 AM
Repainting Historical Bar srgtroy NinjaTrader Programming 7 July 16th, 2011 08:03 PM
Historical high/low data for advanced bar types RM99 Commodities Futures Trading 9 June 21st, 2011 08:53 AM
How do I get historical range bar data for NT? dlgoetz Reviews of Brokers and Data Feeds 6 March 7th, 2010 08:21 AM


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

Copyright © 2018 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 2018-09-18 in 0.12 seconds with 14 queries on phoenix