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).
Announcement
Collapse
No announcement yet.
Script that Queries Symbols w/ Array
Collapse
X
-
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
Comment