I'm not an EasyLanguage expert but I do have some(very) basic knowledge. I am trying to plot a custom ShowMe based on the SuperTrend user function (appended below). For the life of me I cannot figure out what the final input (strend) is supposed to be. When I plot the indicator SuperTrend there is no input for strend, only for ATRLength, ATRmult and Strength. I just want red dots when C < Supertrend and green if vice versa but I can't plot this without this final input. Driving me nuts. Any help would be appreciated.
welcome to futures.io. When you are working in the Tradestation development environment (or in Multicharts's PL Editor for that matter) you can highlight a reserved word and press F1, this will bring up an explanation of this word does.
NumerifRef is used to reference values back from a function, meaning you don't pass anything into the function using this input, but you can use it to receive a value. In your case of of the supertrend it just references +1 or -1 depending on the trend being up or down. You can use a simple numeric variable to hold what the function references back via STrend, but you don't have to use this variable later in your code.
By the way you can show your appreciation for a post here on Futures.io using the "Thanks" button under it.
The following 2 users say Thank You to ABCTG for this post:
Thank you for answering my recent forum post re: the variable required to use the supertrend function. Unfortunately, not really having a programming background, I didn't even understand your answer. And now I am running into the same problem with a function for donchian channels. I want to use this function and I know what to enter for the inputs, however it seems to want me to enter something for the variables. Would you be able to tell me what I need to enter to use this function properly? Thanks and sorry to bother you. I'm not sure who else to ask.
I am sorry, but I don't understand what you mean with "it seems to want me to enter something for the variables". Your code snippet only shows inputs and no variables, so it's not really clear what you mean.
For the inputs you can see that you have three NumericRef inputs, so these will return values to the indicator (signal or function) calling your function.
Then you have "period" that sets the lookback length for the Highest and Lowest function and you have the price inputs for the Highest and Lowest function i.e. upperPrice and lowerPrice. The latter two are probably something like High or Low.