heikin ashi screener

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #81311 quote
    ullle73
    Participant
    Senior

    Hi!

    Would love if someone could help me code a screener using this indicator:

    Heikin Ashi smoothed with signals

    Candle going from red to green.

    #81365 quote
    ullle73
    Participant
    Senior

    and also if possible to code a screener showing when going from red to green in BOTH daily and weekly at same time

    #81376 quote
    Nicolas
    Keymaster
    Master

    >> Please update your country flag in your profile. Thank you 🙂 <<

    Give a try to this screener, it should detect if the Heikin Ashi smooth go from red to green on both timeframes (daily and weekly).
    SmoothPeriod=2     
    period=5           
    
    timeframe(weekly)
    IF BarIndex=0 THEN
    wxClose = (open+high+low+close)/4
    wxOpen = open
    
    ELSE
    wxClose = (open+high+low+close)/4
    wxOpen = (wxOpen[1]+wxClose[1])/2
    
    endif
    
    if barindex>=(period+SmoothPeriod) then
    wAvOpen=exponentialAverage[SmoothPeriod](wxOpen)
    wAvclose=exponentialAverage[SmoothPeriod](wxClose)
    endif
    
    weeklybull = wavclose>wavopen and wavclose[1]<wavopen[1]
    
    timeframe(daily)
    //    ciclo normal
    IF BarIndex=0 THEN
    xClose = (open+high+low+close)/4
    xOpen = open
    
    ELSE
    xClose = (open+high+low+close)/4
    xOpen = (xOpen[1]+xClose[1])/2
    
    endif
    
    if barindex>=(period+SmoothPeriod) then
    AvOpen=exponentialAverage[SmoothPeriod](xOpen)
    Avclose=exponentialAverage[SmoothPeriod](xClose)
    endif
    
    dailybull = avclose>avopen and avclose[1]<avopen[1]
    
    up = dailybull and weeklybull
    
    screener[up]
    Bard thanked this post
    #81384 quote
    ullle73
    Participant
    Senior
    updated countryflag, Thank you Nicolas! Can i also ask for same screener adding monthly as well? monthly+weekly+daily going green from red using the indicator?   Big thank you!
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

heikin ashi screener


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
ullle73 @jonas_rydqvist Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by ullle73
7 years, 5 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 09/25/2018
Status: Active
Attachments: No files
Logo Logo
Loading...