Settings for 1 minute are (0.001, 5, 1). On a second window, add again the indicator and set (0.001, 15, 5). After setting the indicators, entry when the last signal from the fast window agree with the slow window (exit as soon as the fast window send an opposite signal and repeat the process as desired).
Please write down your feedback and Ideas for testing and improving the code. Enjoy!
The Following indicator/code IS EXPERIMENTAL AND NOT intended to be a formal investment advice or recommendation by the author, nor should be construed as such. Users will be fully responsible by their use regarding their own trading vehicles/assets.
l0_0 = PineActivationFunctionLinear(input)
l0_1 = PineActivationFunctionLinear(input)
l0_2 = PineActivationFunctionLinear(input)
Any specific within these three or all of them?
threshold = input(title="Threshold", type=float, defval=0.001, step=0.001)
largeTimeframe = input(title="Large timeframe", type=resolution, defval='5')
smallTimeframe = input(title="Small timeframe", type=resolution, defval='1')
Also, what v stands for in the following functions?
PineActivationFunctionLinear(v) => v
(exp(v) - exp(-v))/(exp(v) + exp(-v))
(input) is a variable between "entry" and "exit" inputs