This strategy is a result of a study to understand better the workings of functions, for loops and the use of lines to visualize price levels. The strategy is a complete rewrite of the older RSI+PA+DCA Strategy with the goal to make it dynamic and to simplify the strategy settings to the bare minimum. In case you are not familiar with the older RSI+PA+DCA...
This moving average takes all of the moving averages between 1 and 700 and takes the average of them all. It also takes the min/max average (donchian) of every one of those averages. Also included is Bollinger Bands calculated in the same way. One nice feature I have added is the option to use geometric calculations for. I also added regular bb calculations...
'Study forloop' pinescript Program to print star diamond The Program Logic I've taken the previous script and added a footer to it. instantly transformed into a diamond shape.
'Study forloop' pinescript Program to print star Triangle The Program Logic For example, the following Pinescript programme will need two nested for loops. The outer forloop is for rows and the inner forloop is for columns or stars. to create a triangle shape.
This script shows a sample of how to do confidence weighted scoring indicators and for loops with Pine. This indicator may or may not be found useful, it's intent is to provide a sample on how to create such an indicator and use certain Pine features. Features: - Defined points based on the confidence of RSI and Stochastic indicator - Defined points based on...
This indicator provides some base code for looping over data to identify swings in price action. Full code commentary can be found on the backtest rookies website. The indicator shall allow users to "analyse" a recent historical candle to detect whether it was a swing point. This will work by inputting a number to select which historical candle you want to...