Hi,
is it possible to convert this code from TradinView?
Many thanks in advance!
study(title="Wave A", shorttitle="WAVE-A", precision = 2)
usewa = input(true, title = "Wave A", type=bool)
// WAVE A CALC
// Wave A
fastMA1 = usewa ? ema(close, 8) : na
slowMA1 = usewa ? ema(close, 34) : na
macd1 = usewa ? fastMA1 - slowMA1 : na
signal1 = usewa ? ema(macd1, 34) : na
hist1 = usewa ? macd1 - signal1 : na
fastMA2 = usewa ? ema(close, 8) : na
slowMA2 = usewa ? ema(close, 55) : na
macd2 = usewa ? fastMA2 - slowMA2 : na
signal2 = usewa ? ema(macd2, 55) : na
hist2 = usewa ? macd2 - signal2 : na
// PLOTs
plot(hist2, color=#007e49, transp=0, style=histogram, title="Wave Lenta", linewidth=3)
plot(hist1, color=#f7801f, transp=0, style=histogram, title="Wave Veloce", linewidth=3)
hline(0, color=black, title = "Zero Line", linewidth = 2, linestyle = solid)
Aquí tienes
fastMa1=average[8,1](close)
slowMA1=average[34,1](close)
macd1=fastMA1 - slowMA1
signal1=average[34,1](macd1)
hist1=macd1 - signal1
fastMA2=average[8,1](close)
slowMA2=average[55,1](close)
macd2=fastMA2 - slowMA2
signal2=average[55,1](macd2)
hist2=macd2 - signal2
return hist2 as "Slow Wave"style(histogram)coloured(0,126,73),hist1 as "Fast Wave"style(histogram)coloured(247,128,31),0 as "zero"
It provides dynamic signals for entering and exiting trades based on trend changes, helping traders stay aligned with the market’s momentum. What sets this …The Elliott Wave Theory is a form of technical analysis that XXXXXXX looks for recurrent long-term price patterns related to persistent changes in investor sentiment and psychology. The theory identifies impulse waves that set up a pattern and corrective waves that oppose the larger trend. The theory assumes that stock price movements can be predicted because they move in repeating up-and-down patterns called waves created by investor psychology or sentiment.
@Georgiaava
do not post links to external sites not related to the ProRealTime. Thanks 🙂