Indicateur en Screener

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #239416 quote
    toulinetouline
    Participant
    Senior
    Bonjour
    Pourriez-vous convertir cet indicateur en screener Un grand merci d avance
    Cordialement 
    
    //------------------------------------------------------------------//
    //PRC_TrendEnvelopes
    //version = 0
    //19.06.2024
    //Iván González @ www.prorealcode.com
    //Sharing ProRealTime knowledge
    //------------------------------------------------------------------//
    //-----Inputs-------------------------------------------------------//
    period=21
    type=1
    colorcandles=1
    //------------------------------------------------------------------//
    //-----Moving averages----------------------------------------------//
    smax=average[period,type](high)
    smin=average[period,type](low)
    //------------------------------------------------------------------//
    //-----Trend calculation--------------------------------------------//
    once trend=undefined
    if close > smax[1] then
    trend=1
    elsif close < smin[1] then
    trend=-1
    else
    trend=trend
    endif
    //------------------------------------------------------------------//
    //-----Trail calculation--------------------------------------------//
    once mytrail=undefined
     
    if trend>0 and smin < smin[1] then
    smin=smin[1]
    elsif trend<0 and smax > smax[1] then
    smax=smax[1]
    endif
     
    if trend=1 then
    mytrail=smin
    r=0
    g=255
    b=0
    if trend[1]<>1 then
    drawpoint(barindex,mytrail,2)coloured("blue")
    endif
    elsif trend=-1 then
    mytrail=smax
    r=255
    g=0
    b=0
    if trend[1]<>-1 then
    drawpoint(barindex,mytrail,2)coloured("blue")
    endif
    endif
    //------------------------------------------------------------------//
    //-----Color Candles------------------------------------------------//
    if colorcandles then
    drawcandle(open,high,low,close)coloured(r,g,b)
    endif
    //------------------------------------------------------------------//
    return mytrail coloured(r,g,b)style(line,2)
    
    
    
    #239467 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Signale quand il y a un changement dans le TREND. Voilà:

    //------------------------------------------------------------------//
    //PRC_TrendEnvelopes
    //version = 0
    //19.06.2024
    //Iván González @ www.prorealcode.com
    //Sharing ProRealTime knowledge
    //------------------------------------------------------------------//
    //-----Inputs-------------------------------------------------------//
    period=21
    type=1
    //------------------------------------------------------------------//
    //-----Moving averages----------------------------------------------//
    smax=average[period,type](high)
    smin=average[period,type](low)
    //-----Trend calculation--------------------------------------------//
    once trend=undefined
    if close > smax[1] then
       trend=1
    elsif close < smin[1] then
       trend=-1
    endif
    //------------------------------------------------------------------//
    screener[(trend <> trend[1] AND (high <> low))]
    Iván González thanked this post
    #239476 quote
    toulinetouline
    Participant
    Senior

    super Merci beaucoup pour votre retour.

    Bonne journée.

    robertogozzi thanked this post
Viewing 3 posts - 1 through 3 (of 3 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

Indicateur en Screener


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
touline @touline Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by toulinetouline
1 year, 10 months ago.

Topic Details
Forum: ProScreener : Scanners de Marché & Détection
Language: French
Started: 10/24/2024
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...