trend rialzista

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #136969 quote
    max1775max1775
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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.
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

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 robertogozzirobertogozzi
6 years, 2 months ago.

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