//Strategy based on the idea that stop loss and take profit are often placed at full price levels or round numbers, whcih acts as resistance and supports levels
//Actual price (close) is above round number.
//Round number level was not touched in previous ten bars (arbitrary value).
//Place a buy and follow the order with a trail step because price...
Prime numbers with fill gap fills.
Please note - the line colour will not change all the lines due to the cap imposed by limit of plots, however the gap fills will all change colour.
If need be you can edit the colours of the lines via the plot section of the code. I'm trying to find a work around for this in the meantime.
Welcome to Pine Script Tutorial #4
This is more complex than the previous 3 tutorials. This one builds upon the first 3 tutorials.
What does this code do?: It plots on a histogram (at the bottom), the difference between closest round number and the close. So for example 84 -close = 16 pips. It shows the 16 pips on the histogram.
First off, it is actually Two...