Pro order Trend Impulse Filter

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #231828 quote
    Gio56
    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ález
    Moderator
    Master

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

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 Gio56
1 year, 10 months ago.

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