Pro order Trend Impulse Filter

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #231828 quote
    Gio56Gio56
    Participant
    New

    Bonjour a tous,

    cela fait quelque temps que j’essaye de crée une stratégie automatique avec l’indicateur de Nicolas le “Trend Impulse Filter”.

    je veux juste acheter quand l’indicateur passe haussier et revendre quand il pass baissier, mais impossible.

    si une âme charitable peut m’aider, merci.

    PRC_Trend-Impulse-Filter.itf
    #231850 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Holà. Il suffit de remplacer les lignes de code qui font référence aux dessins des flèches pour les ordres d'achat/vente.

    // --- settings
    length = 100
    center = 1
    //arrows = 1 // Plot Arrows 0=false ; 1=true
    // --- end of settings
    
    once b = src
    if barindex>length then
    src = (highest[length](high)+lowest[length](low))/2
    rising = src-src[length]>0
    falling = src-src[length]<0
    a = rising or falling
    b = exponentialaverage[center](a*src+(1-a)*b[1])
    //—-
    
    if b>b[1] then
    os=1
    cr=0
    cg=128
    cb=255
    elsif b<b[1] then
    os=-1
    cr=230
    cg=81
    cb=0
    endif
    
    if os <> os[1] then
    if os>0 then
    buy 1 contract at market
    else
    sellshort 1 contract at market
    endif
    endif
    endif
    #231864 quote
    Gio56Gio56
    Participant
    New

    Un grand merci de votre réponse, mais cela n’achète pas a l’apparition de la bande bleu et ne revend pas a la bande rouge…. les achats et les vente sont n’importe ou…

    #231866 quote
    Gio56Gio56
    Participant
    New

    Super j’ai réussi! un grand merci a toi;)

Viewing 4 posts - 1 through 4 (of 4 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

Pro order Trend Impulse Filter


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
Gio56 @gio56 Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by Gio56Gio56
2 years, 6 months ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 04/23/2024
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...