can't access value from function in pine editor
问题 I am trying to test out an RSI-14 DI reversal strategy, but am unable to access the DI+ or DI- (variables are "plus" and "minus") from the function that they are in. Any ideas on how to access them? Here is the code: //@version=4 strategy("RSI-14, DI+, DI- Reversal Strategy", overlay=false) /// DI+ DI- Code /// /// DI+ is the variable called "plus" and DI- is the variable called "minus" adxlen = input(14, title="ADX Smoothing") dilen = input(14, title="DI Length") dirmov(len) => up = change