Petit bug

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6640 quote
    jhonhamy
    Participant
    Average

    bonjour, petit problem ,avec la fonction call

     

    DEFPARAM FLATBEFORE=080000
    DEFPARAM FLATAFTER=170000
    
    // Conditions pour ouvrir une position acheteuse
    indicator1 = CALL "##SuperTrend AllAverage"[12, 12, 2.5, 48](close)
    indicator2 = close
    c1 = (indicator1 CROSSES UNDER indicator2)
    
    IF c1 THEN
    BUY 1 CONTRACT AT MARKET
    ENDIF
    
    // Conditions pour fermer une position acheteuse
    indicator3 = CALL "##SuperTrend AllAverage"[12, 12, 2.5, 48](close)
    indicator4 = close
    c2 = (indicator3 CROSSES OVER indicator4)
    
    IF c2 THEN
    SELL  AT MARKET
    ENDIF
    
    // Conditions pour ouvrir une position en vente à découvert
    indicator5 = CALL "##SuperTrend AllAverage"[12, 12, 2.5, 48](close)
    indicator6 = close
    c3 = (indicator5 CROSSES OVER indicator6)
    
    IF c3 THEN
    SELLSHORT 1 CONTRACT AT MARKET
    ENDIF
    
    // Conditions pour fermer une position en vente à découvert
    indicator7 = CALL "##SuperTrend AllAverage"[12, 12, 2.5, 48](close)
    indicator8 = close
    c4 = (indicator7 CROSSES UNDER indicator8)
    
    IF c4 THEN
    EXITSHORT  AT MARKET
    ENDIF
    
    // Stops et objectifs
    
    Capture-d’écran-2016-05-09-à-20.32.26.png Capture-d’écran-2016-05-09-à-20.32.26.png
    #6644 quote
    Nicolas
    Keymaster
    Master

    Bien vérifier que le code de l’indicateur en question est modifiable et aussi qu’il s’agit bien du bon nom de fichier..

    Ceci étant je vois que tu utilises la création assistée, donc je pencherai plus pour la première raison..

    #6646 quote
    jhonhamy
    Participant
    Average

    merci nicolas.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Petit bug


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
jhonhamy @jhonhamy Participant
Summary

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

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