Fermeture position après une bougie

Viewing 8 posts - 16 through 23 (of 23 total)
  • Author
    Posts
  • #17720 quote
    Nicolas
    Keymaster
    Master

    Pas impossible mais inutile puisque ça ne sera pas interprété par ProOrder. Le trading automatique en tick n’est possible qu’en paper trading (mode démo) et pas en temps réel.

    #17721 quote
    jhonhamy
    Participant
    Average

    D’accord  Nicolas, le mode paper trading m’intéresse quant même !!!

    Peux tu m’aider ??

    #17722 quote
    Nicolas
    Keymaster
    Master

    Pour comparer 2 valeurs temps, il faut utiliser l’instruction time tout simplement 🙂

    #17727 quote
    jhonhamy
    Participant
    Average

    je ne le trouve pas dans le manuel , sinon j’aurai trouvé dans le manuel , c’est pour cela que je vien vers toi Nicolas !!

    #17730 quote
    jhonhamy
    Participant
    Average

    ?

    #17732 quote
    JC_Bywan
    Moderator
    Master

    Le lien du message de Nicolas est clicable vers la page “time” du site, mais si tu préfères des instructions du manuel, alors il y a 3 manuels et non pas un, et time est en page 9 du manuel “probuilder” (le 2ème étant pour “probacktest proorder”, et le 3e pour “proscreener”)

    https://www.prorealtime.com/fr/pdf/probuilder.pdf

    Attention avec l’instruction “time” quand on ne la connait pas encore, je vois passer beaucoup trop de petits morceaux de codes où elle est utilisée comme si c’était juste l’heure, or “time” renvoie comme valeur l’heure de clôture d’une bougie et non pas l’heure qu’il est, ni l’heure qui défile dans un historique. J’aime bien attirer l’attention là-dessus parce qu’on s’évite souvent une recherche inutile de bug fantôme dans le reste du code quand on sait utiliser time pour son vrai rôle.

    Nicolas and jhonhamy thanked this post
    #17733 quote
    jhonhamy
    Participant
    Average

    J’ai essayer cela mais ne marche pas, j’ai du faire une erreur quelque part!!!!

    // Achat
    indicator1 = Stochastic[21,3](close)
    indicator2 = Average[3](Stochastic[21,3](close))
    c1 = (indicator1 CROSSES OVER indicator2[1])
    
    If c1 and time > (time[c1]+000200) then
    buy 1 contract at market
    endif
    
    // Vente
    indicator3 = Stochastic[21,3](close)
    indicator4 = Average[3](Stochastic[21,3](close))
    c2 = (indicator3 CROSSES UNDER indicator4[1])
    
    If c2 and time > (time[c2]+000200) then
    sell 1 contract at market
    endif
    #17793 quote
    Madrosat
    Participant
    Master

    Bonjour

    Noobywan a écrit

    if longonmarket and barindex = tradeindex(1) then

    exitshort at market

    Mais je ne veux pas sortir sur cette première bougie,  si j’écris

    if longonmarket and barindex = tradeindex(1) then

    notrading

    çà ne marche pas   on ne peut vraiment pas remplacer notrading ??

Viewing 8 posts - 16 through 23 (of 23 total)
  • You must be logged in to reply to this topic.

Fermeture position après une bougie


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
jhonhamy @jhonhamy Participant
Summary

This topic contains 22 replies,
has 5 voices, and was last updated by Madrosat
9 years, 2 months ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 08/12/2016
Status: Active
Attachments: No files
Logo Logo
Loading...