ALERTES DE BOT UT

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #225099 quote
    Samir pluquin
    Participant
    Junior

    Bonjour a tous,

    je suis en train de tester des stratégies via l’indicateur “ALERTES DE BOT UT” créer par Nicolas

    prouver vous  me dire comment fait on pour déclencher l’achat lorsque que le signal achat apparait et déclencher la vente lorsque le signal de vente apparait

    merci beaucoup de votre aide

    #225107 quote
    GraHal
    Participant
    Master

    Veuillez publier une capture d’écran de ce que vous regardez lorsque vous utilisez l’ indicateur « BOT UT ALERTS ».

    Samir pluquin thanked this post
    #225109 quote
    Samir pluquin
    Participant
    Junior
    a = 1 //Key Vaule. ‘This changes the sensitivity'
    c = 10 //ATR Period
     
    multiplier=a
    period=10
     
    moy=averagetruerange[period](close)
    iprice=totalprice
    up=iprice+multiplier*moy
    dn=iprice-multiplier*moy
    once trend=1
    if close>up[1] then
    trend=1
    elsif close<dn[1] then
    trend=-1
    endif
    if trend<0 and trend[1]>0 then
    flag=1
    else
    flag=0
    endif
    if trend>0 and trend[1]<0 then
    flagh=1
    else
    flagh=0
    endif
    if trend>0 and dn<dn[1] then
    dn=dn[1]
    endif
    if trend<0 and up>up[1] then
    up=up[1]
    endif
    if flag=1 then
    up=iprice+multiplier*moy
    endif
    if flagh=1 then
    dn=iprice-multiplier*moy
    endif
    if trend=1 then
    mysupertrend=dn
    else
    mysupertrend=up
    endif
    if mysupertrend > mysupertrend[1] then
    color1=0
    color2=255
    color3=0
    elsif mysupertrend < mysupertrend[1] then
    color1=255
    color2=0
    color3=0
    endif
     
    if iprice crosses over mysupertrend then 
    drawarrowup(barindex,mysupertrend) coloured("green")
    endif 
    if iprice crosses under mysupertrend then 
    drawarrowdown(barindex,mysupertrend) coloured("red")
    endif 
     
    return mysupertrend coloured (color1,color2,color3) as "SuperTrend"

    Bonjour,

    veuillez trouver ci joint le code de l’indicateur,

    je vous mets en plus la prise écran de l’indicateur ci joint, j’ai entouré les signaux d’achats et de ventes

    merci beaucoup pour votre aide

    ALERTES-DE-BOT-UT.odt
    #225111 quote
    GraHal
    Participant
    Master

    dis-moi comment déclencher l’achat

    Cliquez sur Buy Mkt (coin supérieur droit de votre capture d’écran) lorsque vous voyez le signal d’achat.

    Samir pluquin thanked this post
    #225128 quote
    Samir pluquin
    Participant
    Junior

    Bonjour,

    merci beaucoup mais je cherche à savoir coder l’achat lorsque signal d’achat ce déclenche ( flèche verte) et savoir coder la vente lorsque le signal de vente se déclenche ( flèche rouge )

    merci beaucoup

    GraHal thanked this post
    #225129 quote
    fifi743
    Participant
    Master

    c’est ce que tu veux

     

     

    n=1 // nombre de contract
    a = 1 //Key Vaule. ‘This changes the sensitivity'
    c = 10 //ATR Period
     
    multiplier=a
    period=10
     
    moy=averagetruerange[period](close)
    iprice=totalprice
    up=iprice+multiplier*moy
    dn=iprice-multiplier*moy
    once trend=1
    if close>up[1] then
    trend=1
    elsif close<dn[1] then
    trend=-1
    endif
    if trend<0 and trend[1]>0 then
    flag=1
    else
    flag=0
    endif
    if trend>0 and trend[1]<0 then
    flagh=1
    else
    flagh=0
    endif
    if trend>0 and dn<dn[1] then
    dn=dn[1]
    endif
    if trend<0 and up>up[1] then
    up=up[1]
    endif
    if flag=1 then
    up=iprice+multiplier*moy
    endif
    if flagh=1 then
    dn=iprice-multiplier*moy
    endif
    if trend=1 then
    mysupertrend=dn
    else
    mysupertrend=up
    endif
    if mysupertrend > mysupertrend[1] then
    color1=0
    color2=255
    color3=0
    elsif mysupertrend < mysupertrend[1] then
    color1=255
    color2=0
    color3=0
    endif
     
    if iprice crosses over mysupertrend then
    buy n contract at market
    endif
    if iprice crosses under mysupertrend then
    sellshort n contract at market
    endif
    GraHal and Samir pluquin thanked this post
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

ALERTES DE BOT UT


ProOrder : Trading Automatique & Backtests

New Reply
Author
Summary

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

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 12/10/2023
Status: Active
Attachments: 1 files
Logo Logo
Loading...