StockFetcher Forums · General Discussion · Trading ^SPX closing prices<< >>Post Follow-up
jimmyjazz
102 posts
msg #113326
Ignore jimmyjazz
5/12/2013 10:18:33 AM

This seems trivial, but maybe it isn't. I am testing some simple systems, and my results using SPY don't match hand calculations using values from stockcharts. The values don't line up. I suspect this is because the 2 platforms handle dividends differently.

How can I trade the closing price of ^SPX instead? When I try to do so, it returns components of the S&P500 matching my criteria, but I want to trade the index price itself. I've tried IND(), etc., but to no avail.

four
5,087 posts
msg #113327
Ignore four
modified
5/12/2013 11:31:39 AM

start here?

The other stocks are displayed... however, you are still able to "do things" on the ^SPX... for example, a custom MA of 15 on the close of ^SPX

Fetcher[

set{spx_close, ind(^SPX,close)}
draw cma(spx_close,15)

/* --------- Commented Out ---------

set{spx_ma200, ind(^SPX,MA(200))}
set{spx_ma50, ind(^SPX,MA(50))}
set{spx_cci10, ind(^SPX,CCI(10))}
show stocks where close is above 10.0
and MA(50) crossed above MA(200)
and draw spx_close
and draw spx_ma200 on plot spx_close
and draw spx_ma50 on plot spx_close
and draw spx_cci10
*/
]



wkloss
231 posts
msg #113329
Ignore wkloss
5/12/2013 2:00:59 PM

Yahoo Finance offers historical prices adjusted for dividends and splits. They are downloadable into excel.

jimmyjazz
102 posts
msg #113330
Ignore jimmyjazz
5/12/2013 2:30:26 PM

Yes, I'm aware of the Yahoo database. The problem is that systems based on SPY in SF do not line up pricewise with the same instrument in stockcharts. It becomes impossible to do a quick check on the SF results w/o having to manually alter every price.

What I want to do is work on a system using index data, as IF I could actually trade the index.

Alternatively, if someone could tell me an ETF proxy to ^SPX that does NOT pay dividends or split, that would work.

StockFetcher Forums · General Discussion · Trading ^SPX closing prices<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.