Methods for debuging/output into a table, console like style.
init(size) initiate property variables.
size : int, console line size.
Returns: tuple, table and string array.
queue(console_id, new_line) Regular Queue, will be called once every bar its called.
console_id : string array, console...
This is the same RSI7 used inside the 3cBot+ backtesting engine.
Use this code as example to develop your buy/sell signal indicators
and interface it to the backtesting engine.
Calculating buy/sell signals.
signal(RSI7_OverSold) Calculates buy/sell signals.
RSI7_OverSold : (default value 20) and RSI7_OverBought...
I'm building quite a lot of pretty complicated indicators/strategies in Pine Script. Quite often they don't work from the 1 try so I have to debug them heavily.
In Pine Script there are no fancy debuggers so you have to be creative. You can plot values on your screens, check them in the data window, etc.
If you want to display some textual information, you can...
Simple method I used to debug problem in my script.
For loop generates 5 numbers from the given depth. At present, depth is 9
Rules for generating the combinations are as follows:
First number is always 1
Two even numbers should not be adjacent to each other and two odd numbers should not be adjacent to each other
Numbers should be ordered in...
Okay, so this is a lot. It started mostly with me combining indicators and looking for ideal entry criteria.
It is also a collection of conditions, whether used or unused, for my current chosen "best" strategy. It is currently set how I like it, but it has changed with time, and will continue to do so. Within, there are variables that are unused, but offer some...