DAX Future 30Min Bollinger

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #34211 quote
    fepabefepabe
    Participant
    Average

    Buongiorno a tutti,

    ho provato a realizzare questo TS, il mio primo TS. Mi potete dare qualche consiglio. Secondo voi lo si può mettere in “reale”? Siate buoni ….

    Grazie.

    // Definizione dei parametri del codice
    // Indicatore Bollinger (16)
    // DAX Future 30 minuti
    
    DEFPARAM CumulateOrders = False // Posizioni cumulate disattivate
    
    starttrade = 083000
    stoptrade = 123000
    chiusuratrade = 190000
    
    cLong = dopen(0) - dlow(0) > 1.5 * (dopen(1) - dlow(1)) // non entra in long se si verifica questa condizione
    cShort = dhigh(0) - dlow(0) > .0075 * dlow(0)           // non entra in short se si verifica questa condizione
    
    
    
    
    // Condizioni per entrare su posizioni long
    indicator1 = BollingerDown[16](close)
    c1 = (close CROSSES OVER indicator1)
    
    IF c1 and currenttime >= starttrade and currenttime <= stoptrade and not clong   THEN
    BUY 1 SHARES AT MARKET
    ENDIF
    
    // Condizioni per uscire da posizioni long
    c2 = currenttime = chiusuratrade
    
    IF c2 THEN
    SELL AT MARKET
    ENDIF
    
    // Condizioni per entrare su posizioni short
    indicator3 = BollingerUp[16](close)
    c3 = (close CROSSES UNDER indicator3)
    
    IF c3 and currenttime >= starttrade and currenttime <= stoptrade and not cshort  THEN
    SELLSHORT 1 SHARES AT MARKET
    ENDIF
    
    // Condizioni per uscire da posizioni short
    c4 = currenttime = chiusuratrade
    
    IF c4 THEN
    EXITSHORT AT MARKET
    ENDIF
    
    set stop $loss 1500
    set target $profit 8600
    
    screenshot-14936549874cp8l1.png screenshot-14936549874cp8l1.png
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

DAX Future 30Min Bollinger


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
fepabe @fepabe Participant
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 05/02/2017
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...