This is example to show how you can combine two and more strategies for get a cumulative signal. Result signal will return 1 if two (or more) strategies is long, -1 if all strategies is short and 0 if signals of strategies is not equal.
First strategy Chaikin's Volatility indicator compares the spread between a security's high and low prices. It quantifies volatility as a widening of the range between the high and the low price. You can use in the xPrice1 and xPrice2 any series: Open, High, Low, Close, HL2, HLC3, OHLC4 and ect...
Secon strategy The Moving Average Crossover trading strategy is possibly the most popular trading strategy in the world of trading. First of them were written in the middle of XX century, when commodities trading strategies became popular. This strategy is a good example of so-called traditional strategies. Traditional strategies are always long or short. That means they are never out of the market. The concept of having a strategy that is always long or short may be scary, particularly in today’s market where you don’t know what is going to happen as far as risk on any one market. But a lot of traders believe that the concept is still valid, especially for those of traders who do their own research or their own discretionary trading. This version uses crossover of moving average and its exponential moving average.
No verdadeiro espírito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam compreendê-lo e analisá-lo. Parabéns ao autor! Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.