I'm not a programmer and tried to find this by searching but I'm not getting much results so I figured I'll just ask here since some of you seem to be so knowledgeable.
I want to plot certain items depending on the input settings or the underlying symbol. For example, I want to plot the zero line plus lines at -10, -5, -1, 1, 5, 10 as default or when I'm charting ES but when I'm charting CL, I want lines plotted for -1.5, -1, -0.5, 0.5, 1, 1.5 instead. So instead of creating a different study for each asset, I was hoping to have it in the same study but have it dynamically set depending on the symbol selected.
My search points me to the switch and case functions but I'm not sure how to proceed. This would save some time if it can be done because there are studies where the settings are specific to certain symbol or even time-frame. Can it also be set according to time-frame/tick/ATR?
I want to plot certain items depending on the input settings or the underlying symbol. For example, I want to plot the zero line plus lines at -10, -5, -1, 1, 5, 10 as default or when I'm charting ES but when I'm charting CL, I want lines plotted for -1.5, -1, -0.5, 0.5, 1, 1.5 instead. So instead of creating a different study for each asset, I was hoping to have it in the same study but have it dynamically set depending on the symbol selected.
My search points me to the switch and case functions but I'm not sure how to proceed. This would save some time if it can be done because there are studies where the settings are specific to certain symbol or even time-frame. Can it also be set according to time-frame/tick/ATR?