Creer un algo auto à partir de cet itf

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #233105 quote
    geronimangeroniman
    Participant
    Average

    L’objectif est de Creer un algo ( “Tiger”) pour gagner quelques ticks 10 à 20 fois par jour. ( je trade sur le 2mn). C’est celui de mon post precedent. Tiger LONG ou SHORT. Avec des TP variables si on est sur du 2m,5m , 30mn, H2 ou Daily.

    en supprimant la time periode 12h/14h sur le marché eropéen et 18h/20h sur le marché US.

     

    //
    defparam calculateonlastbars = 1000
    if Close>( max(max(high,high[1]),max(high[1],high[1]) ))[1] then
    D=Min(Min(low,low[1]),Min(low[1],low[1]))
    elsif close<(Min(Min(low,low[1]),Min(low[1],low[1])))[1] then
    D=Max(Max(high,high[1]),Max(high[1],high[1]))
    else
    D=D[1]
    endif
    //plot1 = 0
    //plot2 = 0

    rge = averagetruerange[10](close)

    if (close crosses over D) then
    //plot1 = 1
    DRAWARROWUP(barindex,low[1]-0.1*rge) coloured(0,250,0,250)
    //DRAWTEXT(“.”,BarIndex,low[1]-0.1*rge,dialog,bold,25) coloured(0,0,250,255) //(H1/H4 = +7) (1 min = -1)

    levelDwn=low[0]
    hh=high

    //else
    //plot1 = 0
    endif
    if (close crosses under D) then
    DRAWARROWDOWN(barindex,high[1]+0.1*rge) coloured(250,0,0,250)
    //DRAWTEXT(“.”,BarIndex,high[1]+0.6*rge,serif,bold,1) coloured(250,250,0,255) //(H1/H4 = +7) (1 min //= -1)
    //plot2=-1
    //else
    //plot2=0
    levelUP=high[0]
    ll=low
    endif

    return D,levelUp coloured(0,250,0) STYLE(DOTTEDLINE),levelDwn coloured(250,0,0) STYLE(DOTTEDLINE),hh coloured(0,250,0) STYLE(LINE),ll coloured(250,0,0) STYLE(LINE)

    dax-27mai-m5-1.png dax-27mai-m5-1.png
    #233191 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Salut. Ci-dessous, je vais vous donner le code système afin que vous puissiez commencer à le configurer à votre guise. Vous devez maintenant saisir le TP et le SL souhaités, ainsi que toutes les conditions supplémentaires.

    if Close>( max(max(high,high[1]),max(high[1],high[1]) ))[1] then
    D=Min(Min(low,low[1]),Min(low[1],low[1]))
    elsif close<(Min(Min(low,low[1]),Min(low[1],low[1])))[1] then
    D=Max(Max(high,high[1]),Max(high[1],high[1]))
    else
    D=D[1]
    endif
    
    if (close crosses over D) then
    buy 1 contract at market
    endif
    if (close crosses under D) then
    sellshort 1 contract at market
    endif
    
    graphonprice D coloured("blue")
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

Creer un algo auto à partir de cet itf


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
geroniman @geroniman Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Iván GonzálezIván González
2 years, 6 months ago.

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