I want to reference only new york(=n) data in my calculations for the previous OHLC. Is there a way to specify this in the EFS calculation to only use the NYSE data?
Announcement
Collapse
No announcement yet.
Allow NY only data?
Collapse
X
-
Hello Jimmyz,
EDIT: Try these efs calls.
open("IBM=N");
high("IBM=N");
low("IBM=N");
close("IBM=N");
Jason K.
Project Manager
eSignal - an Interactive Data company
EFS KnowledgeBase
JavaScript for EFS Video Series
EFS Beginner Tutorial Series
EFS Glossary
Custom EFS Development Policy
New User Orientation
-
Thanks but I would like it to be for the getSymbol function. Would then just use getSymbol()=n ? or something similar
vSymbol = (getSymbol() + "=n,D"); for instance?
I dont want to reference just a specific symbol because of its inherent limitations, and I use this calculation for many symbols as I cycle through my charts.
Comment
-
Hello JIMMYZ,
getSymbol() will return the current symbol from the advanced chart so your code example should work fine. However, if you are displaying the daily OHLC data on intraday intervals you will need to do some synching between the two intervals to properly display the historical data. For an example, see getPrevDaysOHLC.efs. You could modify this formula to use "=N" with a 0 for the offset parameter, which will display the previous day's daily data.Jason K.
Project Manager
eSignal - an Interactive Data company
EFS KnowledgeBase
JavaScript for EFS Video Series
EFS Beginner Tutorial Series
EFS Glossary
Custom EFS Development Policy
New User Orientation
Comment
-
Hello JIMMYZ,
I've realized one problem with the previous solution. We do not have the =N data for the daily interval. So what you'll need to do is use an intra-day interval that is equal to the total number of minutes that your time template covers. If you're using a 24-hour template use vSymbol = getSymbol() + "=N,1440";. This will create the sudo-daily bars using intra-day data.Jason K.
Project Manager
eSignal - an Interactive Data company
EFS KnowledgeBase
JavaScript for EFS Video Series
EFS Beginner Tutorial Series
EFS Glossary
Custom EFS Development Policy
New User Orientation
Comment
Comment