Yesterday's close - should be simple Right.... - EasyLanguage Programming | futures io social day trading
futures io futures trading


Yesterday's close - should be simple Right....
Updated: Views / Replies:952 / 6
Created: by Chuck6475 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
 

Yesterday's close - should be simple Right....

  #1 (permalink)
Elite Member
Long Beach
 
Futures Experience: None
Platform: tradestation
Favorite Futures: ES
 
Posts: 11 since Dec 2015
Thanks: 3 given, 0 received

Yesterday's close - should be simple Right....

The more I learn the more I know I don't know.

Okay, any help would be greatly appreciated.

1. Why can't I use my mouse and highlight easy language code in TradesStation so I can Copy it. (is it just me?)

2. I'm trying to get Yesterday's closing price for stocks. I've tried...
Value4 = close of yesterday of data(n);
Compiles fine but doesn't give the correct number

Value4 = CloseD(1) of data(n);
This gives a warning "A series function should not be called more than once with a given set of parameters" - Whatever that means. Runs but also doesn't give the correct number.


Help, it doesn't seem like this should be that hard. What am I missing?

Thanks.

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, 854 received
Forum Reputation: Legendary


Chuck6475,

1. Works fine here, so I guess "it is just you". Highlighting the code and right clicking gives a bunch of options, where "copy" is one of them.

2. What chart timeframe are you using? On a daily chart it can be as simple as Close[1]. CloseD(1) should work as well. You can also track the close yourself and store this value in a separate variable on a date change.
The best option depends on the timeframe, though.

Regards,
ABCTG

Reply With Quote
 
  #4 (permalink)
Elite Member
Long Beach
 
Futures Experience: None
Platform: tradestation
Favorite Futures: ES
 
Posts: 11 since Dec 2015
Thanks: 3 given, 0 received

Always interesting stuff

Thanks for the reply,

The issue with highlight etc. is now gone. Easy come easy go. Love it.

It also appears that i'm getting different data results. I will need to do some more testing to see what is real and what is not. Color me annoyed.

Reply With Quote
 
  #5 (permalink)
Elite Member
Long Beach
 
Futures Experience: None
Platform: tradestation
Favorite Futures: ES
 
Posts: 11 since Dec 2015
Thanks: 3 given, 0 received

Okay, after stepping my routine through it's paces it appears the value for close of yesterday is weird.

If you use the Net Chg indicator of the Label line or Radar Screen you get the following definition:
Market Synopsis

The difference between current price and the previous day's closing price, expressed in points. By default, the value is displayed in UpColor when the value is positive and in DnColor when the value is negative. Net Chg is based on the Last value, so it continues updating if market activity continues after the regular session closes. This is a grid-based indicator.

Plot Information

Number Name Default Color Description
Plot1 Net Chg White Net change price difference
Interestingly, I can't get it to duplicate via Easy Language.

You would think if you took { Close of yesterday of data(n) - close } You would get the same net chg number but you don't.

It appears the issue is what is { Close of yesterday's value and from where } I can't seem to get it to match up with anything.

Reply With Quote
 
  #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, 854 received
Forum Reputation: Legendary

If you follow what I wrote under point 2. in my first reply you should have no problems getting it to work.

The reserved word "yesterday" is is retained for backward compatibility.

Remarks
Yesterday references the previous bar, even when analyzing intraday bars.

Yesterday is no longer necessary as the following are equivalent:

Value1 = Close of Yesterday;

Value1 = Close of 1 Bar Ago;

Value1 = Close[1];

So the issues could come from using yesterday on intraday charts and expecting to actual get values from yesterday (which in this case will only happen on the very first bar of the day!) for example.

Regards,

ABCTG

Reply With Quote
 
  #7 (permalink)
Elite Member
Long Beach
 
Futures Experience: None
Platform: tradestation
Favorite Futures: ES
 
Posts: 11 since Dec 2015
Thanks: 3 given, 0 received

I really appreciate you taking time to help me understand something I obviously didn't understand.

Here is what I got: [on a 5 minutes chart]

Close { would be the close of the current bar}

Close[1] { would be the close of the prior bar, 5 minutes earlier}

etc.

The question is: Is there a "packaged" way to get the prior day's closing price for a data stream or do I have to write a routine to capture that on the run?

Reply With Quote

Reply



futures io > > > > > Yesterday's close - should be simple Right....

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
yesterday close indicator Degault ThinkOrSwim Programming 1 December 29th, 2013 04:00 PM
Ninja Close Position / Close Button / ChartTrader vantojo NinjaTrader Programming 1 October 15th, 2012 06:51 PM
Forensic Analysis Of Yesterday's Market-Close Mini Flash Crash kbit News and Current Events 0 March 1st, 2012 11:03 PM
Yesterday Close Setup Buddha Emini Index Futures Trading 19 October 20th, 2010 08:52 AM
yesterday vol spike cory Off-Topic 4 January 15th, 2010 06:39 PM


All times are GMT -4. The time now is 04:36 AM.

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.10 seconds with 19 queries on phoenix via your IP 54.234.255.29