The script shows a workaround for arrays in pine-script via drawings.
There are few restrictions with them:
1. The length of the array cannot be more that amount of allowed drawings (about 40 by now)
2. Because the "array" shares the space of drawings throughout the whole script, using drawings with the "array" must be careful, with handly creating and removing of...
This is my first attempt at a psuedo-random number generator in Pine. It is, as you can see, a failed attempt thus far. I began by trying to implement the random color generator as described here: www.tradingcode.net in version 3 Pine (Not sure which version he was using). As you can see, the color isn't random.
Have tried a few different methods but just constantly get errors in different lines of code......been trying for hours *sigh*. Any help would be so greatly appreciated
Long when rsi overbought,
close trade when rsi oversold and < Vstop
strategy("Vstop and RSI", overlay=true)
length = input(2, "RSI Period")
overSold = input(30,...