♥ 0 |
Hi Pete, input AggressionLevel = {default one, two, three}; Any help in making this correct would be appreciated. Thank you! -LT
Marked as spam
|
Private answer
I had to create my own solution because your example does not result in a fully functioning chart study. Please keep this in mind when posting questions in this forum. Every solution I provide must be geared towards serving the interest of the broadest possible audience. So you will have to examine my example and determine how to correct your own script to work as you intended. The follow example plots a moving average on the chart. The moving average can be adjusted between an 8 ema, 21 ema or 34 ema by selecting "fast", "medium", or "slow" from the user input named "selectOption".
For those wishing to learn more about enumerated inputs and switch/case statements in Thinkorswim, the following resources will help: https://toslc.thinkorswim.com/center/reference/thinkScript/Reserved-Words/switch https://toslc.thinkorswim.com/center/reference/thinkScript/Reserved-Words/input/enum
Marked as spam
|
Please log in to post questions.