Evan Moore / Publications
Forum
Trendlines Indicator Help
Hello, I am working on a trendlines indicator which use swing highs/lows with a period of 9, but having some issues with some initial break conditions. I have got it to break the trend one it has fully formed, but am having difficulty getting the trend to not draw at all if it is broken in-between
Nested For Loops
Hello, I am at the beginning of trying to create a support and resistance indicator which uses swing high and lows. I have started with a bit of code which should look back looks for two swings highs and checks whether they come within ATR of each other. The issue I am having is I want to run a loop