Announcement

Collapse
No announcement yet.

Exporting Instances

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

  • Exporting Instances

    Hi guys- is there a way to export a list of times when a certain criteria is met. For instance: Say I have an EFS that puts a mark above/below a bar every time the 10sma crosses above or below the 20sma (could be any periods). I then can see the marks on the chart.

    Is it possible to export when these instances occured (time/date wise) so that I can manipulate them within Excel.

  • #2
    Hello strongas,

    There are a couple things you could try. You could use the File Object to create a text file that could be imported to Excel. What I would recommend is adding another returned data series in main() where that series would store string values. String data types won't plot anything on the chart, but it will create another array or column for an export to excel (Tools-->Data Export). Use something like "cross"/"none" or "1"/"0" or "true"/"false" to indicate the presence of a cross. The only downside to this method is that you get another item in the cursor window.
    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