Announcement

Collapse
No announcement yet.

Script that Queries Symbols w/ Array

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

  • Script that Queries Symbols w/ Array

    I have a study which looks to identify the symbol in the chart and then based on that symbol puts a bunch of lines on the chart which are levels I've identified specifically for that symbol. Does anyone know how I could do something like this with an array? I am just using a bunch of if statements now and the code is really slow to initialize. Basically, I want to look at the current symbol on the chart and plot horizontal lines based on that symbol. I've attached the code I currently have for this however the logic is pretty much all on one really long line. You can test the study by entering in most of the continuous futures contract symbols (e.g. ES #F).
    Attached Files
    Last edited by Way2285; 11-02-2012, 08:06 AM.

  • #2
    could eval or eval2.efs (next post) be of any use?
    Paul Williams
    Strategy & Applications
    www.futurenets.co.uk

    Comment


    • #3
      try the attached;



      To fully automate, just add the code you use to generate the key levels so it replaces the manual input of the "kL" array values.

      Wayne
      Last edited by waynecd; 11-09-2012, 06:48 AM.

      Comment


      • #4
        The above study "KeyLevelsFutures(3ATR)-Array.efs" has one line out of place so the output is not exactly the same as yours.

        Here is the correction:

        KeyLevelsFutures(3ATR)-Array.efs

        Wayne

        Comment

        Working...
        X