PREZZO max min + MARTINGALA

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #42816 quote
    christian m
    Participant
    New

    ciao a tutti

    gentilmente mi servirebbe aggiungere al codice una martingala, fino a 3 contratti, se non dovesse andare a buon fine la prima volta o la seconda… p.s. non so com e incollare il codice con i numeri delle stringhe a fianco  
    // Definizione dei parametri del codice
    DEFPARAM CumulateOrders = False // Posizioni cumulate disattivate
    
    // Condizioni per entrare su posizioni long
    indicator1 = close
    c1 = (high < indicator1[1])
    
    IF c1 THEN
    BUY 1 CONTRACT AT MARKET
    ENDIF
    
    
    // Condizioni per entrare su posizioni short
    indicator3 = close
    c3 = (low > indicator3[1])
    
    IF c3 THEN
    SELLSHORT 1 CONTRACT AT MARKET
    ENDIF
    
    // Stop e target
    SET STOP pLOSS 5
    SET TARGET pPROFIT 3
    Grazie in anticipo
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

PREZZO max min + MARTINGALA


ProOrder: Trading Automatico & Backtesting

New Reply
Author
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 08/09/2017
Status: Active
Attachments: No files
Logo Logo
Loading...