Announcement

Collapse
No announcement yet.

import external data

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • import external data

    i have a file that contains date and 1 field of data

    i would like to create a study with that

    the data field range from -200 to +200

    the date data is for every day of the year including future dates

    i also have date and time + data in an other file if we can brake it down further

    any help to point me in the right direction would be appreciated

    Richard

  • #2
    Hello Richard,

    You could use the File Object to extract the data from your file(s). One possible solution would be to create a routine that occurs at BARSTATE_ALLBARS (i.e. getBarState() ) to read through the file and populate some arrays in your EFS. Then as the formula moves forward and processes each historical bar, loop through the array of dates to find the array element number that corresponds to the current bar's date in the chart and plot your data from the data array accordingly using the same array element number.
    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

    Working...
    X