Does Close REALLY mean Current Price or what?! - EasyLanguage Programming | futures io social day trading
futures io futures trading


Does Close REALLY mean Current Price or what?!
Updated: Views / Replies:1,521 / 5
Created: by djvie11 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
 

Does Close REALLY mean Current Price or what?!

  #1 (permalink)
Trading Apprentice
Chicago, IL
 
Futures Experience: Advanced
Platform: Tradestation + Multicharts
Favorite Futures: Forex, Futures
 
Posts: 44 since Jul 2013
Thanks: 26 given, 1 received

Does Close REALLY mean Current Price or what?!

So this question has been racking my mind since I started coding in Easylanguage.

It clearly states here on Tradestation's "about reserved words page" that "Close" = "The last available price for the bar."

BUT

If you read further down just below the Price Data box it clearly states "For example, the reserved data word Close refers to the closing price of the bar currently being evaluated by the EasyLanguage procedure. " WHAT GIVES?

How I'm calculating my strategy greatly depends on the current price of the current bar, not the closing price. The closing prices gives me a lagged entrance / exit on my position.

I would love to hear some thoughts on this. Anything at all would be greatly appreciated!

Thanks,
Brandon

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
Cleveland Ohio/United States
 
Futures Experience: Advanced
Platform: Tradestation
Broker/Data: various
Favorite Futures: futures
 
Posts: 2,388 since Jul 2012
Thanks: 1,139 given, 4,387 received
Forum Reputation: Legendary



djvie11 View Post
So this question has been racking my mind since I started coding in Easylanguage.

It clearly states here on Tradestation's "about reserved words page" that "Close" = "The last available price for the bar."

BUT

If you read further down just below the Price Data box it clearly states "For example, the reserved data word Close refers to the closing price of the bar currently being evaluated by the EasyLanguage procedure. " WHAT GIVES?

How I'm calculating my strategy greatly depends on the current price of the current bar, not the closing price. The closing prices gives me a lagged entrance / exit on my position.

I would love to hear some thoughts on this. Anything at all would be greatly appreciated!

Thanks,
Brandon

You probably want to look at Intrabar Order Generation, but just a warning: that is a tricky topic to get into (I never use it). It will also make accurate backtesting impossible.

You could possibly change your bar size, maybe that will solve your problem.

If you have any questions please send me a Private Message or use the futures.io "Ask Me Anything" thread
Reply With Quote
 
  #4 (permalink)
Trading Apprentice
Chicago, IL
 
Futures Experience: Advanced
Platform: Tradestation + Multicharts
Favorite Futures: Forex, Futures
 
Posts: 44 since Jul 2013
Thanks: 26 given, 1 received


kevinkdog View Post
You probably want to look at Intrabar Order Generation, but just a warning: that is a tricky topic to get into (I never use it). It will also make accurate backtesting impossible.

You could possibly change your bar size, maybe that will solve your problem.

Thanks, Kevin. Yea I just started playing around with Intrabar Order Generation last month. Testing so far for me has to be "live" instead of backtesting.

Reply With Quote
 
  #5 (permalink)
Market Wizard
Cleveland Ohio/United States
 
Futures Experience: Advanced
Platform: Tradestation
Broker/Data: various
Favorite Futures: futures
 
Posts: 2,388 since Jul 2012
Thanks: 1,139 given, 4,387 received
Forum Reputation: Legendary


djvie11 View Post
Thanks, Kevin. Yea I just started playing around with Intrabar Order Generation last month. Testing so far for me has to be "live" instead of backtesting.

Sounds good, although I would not recommend either approach (1. using intrabar, 2. doing "live" test instead of backtest).

Good Luck, I hope you find success!

Kevin

If you have any questions please send me a Private Message or use the futures.io "Ask Me Anything" thread
Reply With Quote
 
  #6 (permalink)
 Vendor: tradingcode.net 
The Netherlands
 
Futures Experience: None
Platform: MultiCharts, TradingView
Favorite Futures: ...
 
Jura's Avatar
 
Posts: 774 since Apr 2010
Thanks: 2,347 given, 661 received


djvie11 View Post
(...) "Close" = "The last available price for the bar."

(...) Close refers to the closing price of the bar currently being evaluated by the EasyLanguage procedure. "

`Close` returns the last price of a bar, and what this price is depends on when the script is evaluated:

* When the script is evaluated on bar close (like indicators are on historical data), then `Close` returns the closing price of the bar.

* When the script is calculated on every tick (like real-time indicators and strategies, or a strategy backtested with intra-bar order generation), then `Close` refers to the current price of the bar. That can be the opening tick, closing tick, or any price in between.

This latter makes sense: since we don't know which real-time tick is the last tick of a price bar (there may or may not be more trades coming), `Close` returns the current price of the bar because, if no new ticks come in, then the current price of the bar is indeed the closing price. Hopefully that makes sense.

Reply With Quote
The following 2 users say Thank You to Jura for this post:

Reply



futures io > > > > > Does Close REALLY mean Current Price or what?!

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
get current price of instruments OR dynamically add series to BarsArray evanmedeiros NinjaTrader Programming 1 November 9th, 2013 02:59 PM
automatically place orders at close of current bar Sayounara Sierra Chart Programming 5 March 12th, 2013 06:20 AM
volume need to make average price current bid/offer - nt gparkis NinjaTrader 0 February 23rd, 2013 02:41 PM
Calculate GAP (Close of Prior Day, Open of Current Day) bluemele NinjaTrader Programming 16 January 19th, 2011 10:19 PM


All times are GMT -4. The time now is 02:52 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-18 in 0.10 seconds with 19 queries on phoenix via your IP 54.92.194.75