DojiLine Screener Heikin Ashi Mensile

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #174497 quote
    guifraguifra
    Participant
    New

    Ciao a tutti,

    avrei la necessità di utilizzare uno screener per cercare azioni che stanno formando una candela Doji Heikin Ashi sul timeframe mensile.

    Attualmente lo screener funziona correttamente con tutti i timeframe fino a quello settimanale, in questo modo:

    HaClose = (Open + High + Low + Close) / 4
    
    IF barindex > 1 THEN
    HaOpen = (HaOpen[1] + HaClose[1]) / 2
    xHigh = Max(HaOpen, HaClose)
    xLow = Min(HaOpen, HaClose)
    HaHigh = Max(High,xHigh)
    HaLow = Min(Low,xLow)
    ENDIF
    
    DojiSize = 5
    
    Data = (abs(HaOpen - HaClose) <= (HaHigh - HaLow) * DojiSize/100)
    
    screener [Data]

    Ho provato a modificare questo script, adattandolo per la ricerca su timeframe mensile in questo modo:

    HaClose = (Open[4] + High[4] + Low[4] + Close[4]) / 4
    
    IF barindex >= 8 THEN
    HaOpen = (HaOpen[8] + HaClose[8]) / 2
    xHigh = Max(HaOpen, HaClose)
    xLow = Min(HaOpen, HaClose)
    HaHigh = Max(High,xHigh)
    HaLow = Min(Low,xLow)
    ENDIF
    
    DojiSize = 5
    
    Data = (abs(HaOpen - HaClose) <= (HaHigh - HaLow) * DojiSize/100)
    
    screener [Data]
    

    Questo script, va lanciato utilizzando il timeframe settimanale, messo a disposizione da ProRealTime.

    Secondo voi funziona correttamente? Oppure devo modificare qualcosa?

    Grazie per il supporto.

    #174502 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    No, non va bene, la linea 1, ad esempio, non calcola il valore mensile, ma quello della quarta settimana precedente a quella corrente.

    Dovresti sommare tutti i valori (OHLC) di TUTTE le 4 settimane, poi dividerli per 4.

    Però devi farlo quanto cambia il mese, altrimenti prendi 4 settimane a cavallo di mesi diversi.

    guifra thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

DojiLine Screener Heikin Ashi Mensile


ProScreener: Scansione Mercati & Screener

New Reply
Author
author-avatar
guifra @guifra Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
5 years, 1 month ago.

Topic Details
Forum: ProScreener: Scansione Mercati & Screener
Language: Italian
Started: 08/01/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...