PREZZO max min + MARTINGALA

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #42816 quote
    christian mchristian 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.
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

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
ProRealCode ProRealCode
Loading...