Conversion indicateur mq4 vers prorealtime

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

    Bonjour
    Pourriez-vous convertir cet indicateur mq4 vers prorealtime s’il vous plait
    Un grand merci d’avance
    Cordialement

    #234057 quote
    touline
    Participant
    Senior

    Veuillez trouver une copie d’écran de l’indicateur en question cordialement

    #234100 quote
    Iván González
    Moderator
    Master

    Holà. Ici, vous avez l’indicateur converti en PRT.

    //------------------------------------------------------------------//
    //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)
    #234117 quote
    touline
    Participant
    Senior

    Bonjour ivan

    un grand Merci pour le retour rapide. j’ai d’autre indicateur a traduire si ca ne vous dérange pas.cordialement

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Conversion indicateur mq4 vers prorealtime


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
touline @touline Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by touline
1 year, 7 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 06/18/2024
Status: Active
Attachments: 2 files
Logo Logo
Loading...