Conversion Wave from TradingView

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #238791 quote
    Alera15
    Participant
    New

    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)

    #238795 quote
    Iván González
    Moderator
    Master

    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"
    Alera15 thanked this post
    #238799 quote
    Georgiaava
    Participant
    New

    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.

    #238805 quote
    robertogozzi
    Moderator
    Master

    @Georgiaava

    do not post links to external sites not related to the ProRealTime. Thanks 🙂

    #238829 quote
    Alera15
    Participant
    New

    Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Conversion Wave from TradingView


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Alera15 @alera15 Participant
Summary

This topic contains 4 replies,
has 4 voices, and was last updated by Alera15
1 year, 4 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 10/10/2024
Status: Active
Attachments: 1 files
Logo Logo
Loading...