After studying several other scripts, I believe I have found the Holy Grail! (Or perhaps I've just found a bug with Tradingview's Pinescript v4 language) Anyhow, I'm publishing this script in the hope that someone smarter than myself could shed some light on the fact that adding a trailing stop to any strategy seems to make it miraculously...no that's an...
Hello Tradingview Community, I've been playing around with some various volume-based indicators, and recently have been experiencing a delay in the entries for my strategy for 2 minutes in this scenario. If the time is adjusted, it also is delayed 2 bars. In this example, the "Short" position should enter when the blue line Crosses under the upper green line,...
Functions with parameters do not work correctly: the returned value is sometimes different from the expected one. The example script works correctly only when idx = 1 (instead of the current line 6).
the way to work around the bug for this specific strategy, altho its not as efficient as it would if both orders activation was possible.