Entrée en position malgré un NoEntry

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #202274 quote
    wlshr27wlshr27
    Participant
    New

    Bonjour à tous, bonjour Nicolas, j’ai une strategie sur UT35mins

     

    je souhaite ne plus entrer en position après 21h10 et j’ai codé de la façon suivante :

    DEFPARAM CumulateOrders = False 
    DEFPARAM FLATBEFORE = 144500
    DEFPARAM FLATAFTER = 225500
    noEntryAfterTime = 211000
    timeEnterAfter = time < noEntryAfterTime

    Malgré cela j’ai des ordres qui s’ouvrent à 21h45 et 22h20, vous auriez la solution ? Merci bonne soirée !

    #202284 quote
    NicolasNicolas
    Keymaster
    Legend

    Est ce que la variable “timeEnterAfter” est bien testé strictement positive dans une condition avant d’entrer en position ?

    #202318 quote
    wlshr27wlshr27
    Participant
    New

    Non c’est le seul moment du code où je fais reference à l’heure. A quoi ça devrait ressembler de tester strictement positif l’heure dans une condition ? Merci Nicolas

    #202336 quote
    NicolasNicolas
    Keymaster
    Legend

    Désolé je ne comprends pas, si tu n’utilises pas cette condition dans ton code, comme celui-ci est censé la connaître pour ouvrir ou non une position ? 🙂

    if timeEnterAfter then //si VRAI alors
     // du code qui permet de faire des choses si timeEnterAfter est VRAI
    endif
    #202587 quote
    wlshr27wlshr27
    Participant
    New

    Oui désolé je patine avec les bases … c’est bon j’ai réussi à intégrer ma plage horaire grâce à votre aide !!!

Viewing 5 posts - 1 through 5 (of 5 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

Entrée en position malgré un NoEntry


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
wlshr27 @wlshr27 Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by wlshr27wlshr27
4 years, 1 month ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 10/10/2022
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...