trend rialzista

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #136969 quote
    max1775
    Participant
    Average

    si puo realizzare un screener basato su canale di donchian settato a 10 periodi con timeframe settimanale in cui partendo dalla linea centrale il prezzo impieghi 4 candele per sforare la linea superiore del suddetto canale?  allego foto

    IMG_20200623_195246.jpg IMG_20200623_195246.jpg
    #136972 quote
    robertogozzi
    Moderator
    Master

    Eccolo (non l’ho provato):

    Timeframe (Weekly)
    p      = 10
    shift  = 1
    maxN   = 4
    If BarIndex = 0 or n >= MaxN Then
       n   = 0
    Endif
    Upper  = HIGHEST[p](High[shift])
    Lower  = LOWEST[p](Low[shift])
    Middle = (Upper + Lower) / 2
    If n < MaxN and n > 0 then
       n = n + 1
    Endif
    If Close > Middle and Low <= Middle and n = 0 and close > open Then
       n = 1
    Endif
    Timeframe (default)
    Segnale = 0
    If n = MaxN and High > Upper Then
       Segnale = 1
       n = 0
    Endif
    Screener[Segnale]
    loris75 thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

trend rialzista


ProScreener: Scansione Mercati & Screener

New Reply
Author
author-avatar
max1775 @max1775 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
5 years, 8 months ago.

Topic Details
Forum: ProScreener: Scansione Mercati & Screener
Language: Italian
Started: 06/23/2020
Status: Active
Attachments: 1 files
Logo Logo
Loading...