Here we have 2 simple conditions for long and short.
Once a condition is met, it ignores the same signal until the other condition is met and vice versa.
Had this issue in a script of mine, but couldn't find any published idea regarding this.
Plot a series of your portfolio! Merely calculate the (constant) weights (ensuring that they sum to one) and plug in along with the corresponding symbols in order to visualize your portfolio returns as a series. Experimenting before settling on a portfolio? Calculate your theoretical weights using tools online for mean-variance optimization, Black-Litterman...
Hope you had a nice weekend and you're all excited for the week to come. At least I am (thanks to a few coffee but that still counts !!!)
This indicator is inspired from Dollar-Cost-Average-Cost-Basis
The educational post is coming a bit later this afternoon explaining how to use the indicator so I would advise to follow me...
By default, this script overlays seven simple moving averages (5, 10, 20, 50, 100, 150, 200) and allows you to customize the SMA values as you wish. If a candle closes at or above a moving average, the plot for that SMA is colored green for that candle otherwise it's red.
Day25Range(1) - Plot on the candle the 25% low range of the daily price. This helps to show when the current price is at or below the 25% price range of the day. Best when used with other indicators to show early wakening strength in price. On the attached chart, if you look at Jan 23, 2018 you will see a red candle that closed below the 25% mark of the trading...
Day25Range(1) - I use this indicator to show where the lower 25% daily range of a stock is. This helps to show weakness in a stock during the trading day. I use this indicator with a CIRCLE or DOT plotted on the candle. Makes it easy to show weakness during the trading day.
Draws points (lines) to high low and close. In some trading situations, this method is more convenient than candles or bars.
Рисует точки(линии) по high low и close. В некоторых ситуациях торговли такой способ бывает удобней, чем свечи или бары. На вкус и цвет все фломастеры разные =)