HEURE DE SORTIE AVEC PROORDER

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #181240 quote
    jerome974jerome974
    Participant
    Average

    Bonjour

    j ai une strategie avec pro order en 30 mm, mais j ‘aimerai le vendredi soir sortir de position a 22:58:00

    avec le code suivant

    if (currentDayOfWeek = 5) then
    if time = 225800 then
    Sell at Market
    Exitshort at Market
    endif
    endif

    Ma question est la suivante : étant donné que la strategie est en 30 mm, je suppose que les calculs se font uniquement toutes les 30mm

    donc si l instruction ne tombe pas a 30mm cad (22:30:00 par exemple) l’ instruction de sortie a 22:58:00 ne sera pas exécutée ?

    Ai je raison ? Si oui comment faire a part solder l’automatique et reprendre en manuel…

    merci de votre aide

    #181358 quote
    NicolasNicolas
    Keymaster
    Legend

    En effet, le code étant lu en fin de bougie cet horaire précis ne sera pas testé, il ne le serait uniquement qu’en UT 1-minute.

    Dans ce cas, il faudrait lancer la stratégie en UT 1-minute, avec la modification ci-dessous :

    timeframe(30 minutes, updateonclose)
    // coller ici l'autre partie du code
    
    timeframe(1 minute)
    if (currentDayOfWeek = 5) then
     if time = 225800 then
      Sell at Market
      Exitshort at Market
     endif
    endif
    jerome974 thanked this post
    #181402 quote
    jerome974jerome974
    Participant
    Average

    Merci Nicolas, je vais essayer cela.

    Si cela fonctionne c est super !

    je ne pensais pas que c’était possible avec PRT.

    Bravo et merci pour votre aide 🙂

    #181405 quote
    jerome974jerome974
    Participant
    Average

    Re Bonjour

    Finalement cela ne fonctionne pas, je pense que je n’ai pas tout compris. pourtant 30 minutes et bien le multiple de 1 minute

    (1*30 = 30) et si je mets mon graphe en 1 minute, les résultats ne sont pas du tout identiques !!

    Est ce bien cela ?

    Cordialement

    erreur.png erreur.png
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

HEURE DE SORTIE AVEC PROORDER


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
jerome974 @jerome974 Participant
Summary

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

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 11/08/2021
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...