Execution incorrect du systeme

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #173025 quote
    phoenixphoenix
    Participant
    New

    Salut,

    Je developpe une strategie et je rencontre un probleme, j’ai placer des ordres BUY STOP a des niveaux avec des TPet SL et il se trouve que le systeme execute des ordres de mes niveaux de BUY STOP

    Merci de bien vouloir m’aider

    if (heureDebut) then
    po = Open
    lv1buy = po + fTunnel
    lv2Buy = po + sTunnel
    start = 1
    endif
    
    cdt = time >= heureDebut and time <= heureFin and start = 1
    if cdt then
    
    BUY taille CONTRACT AT lv1buy STOP
    SET TARGET pPROFIT ftp
    SET STOP pLOSS sl
    endif
    
    
    If onmarket then
    if time >= heureFin then
    sell at market
    exitshort at market
    elsif (CurrentDayOfWeek=5 and time>=heureFin) then
    sell at market
    exitshort at market
    endif
    endif
    
    
    
    
    
    #173026 quote
    phoenixphoenix
    Participant
    New

    merci de m’aider

    #173030 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    1. Vous pouvez supprimer les lignes 21, 22 et 23, les autres suffisent

    2. Sur la ligne 11 vous avez utilisé un ordre STOP, sans vérifier si LIMIT est plus approprié

    3. Si vous avez saisi l’ordre en attente, pourquoi ne voulez-vous pas qu’il soit exécuté ?

    4. Vous n’avez pas mis «and Not OnMarket» à la ligne 9, il peut donc entrer plusieurs fois.

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

Execution incorrect du systeme


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
phoenix @phoenix Participant
Summary

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

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