SUPERTREND: E' POSSIBILE AVERE QUESTI RISULTATI ?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14532 quote
    ablibero
    Participant
    New
    // Definizione dei parametri del codice
    DEFPARAM CumulateOrders = False // Posizioni cumulate disattivate
    
    // Condizioni per entrare su posizioni long
    indicator1 = close
    indicator2 = SuperTrend[0.4,3]
    c1 = (indicator1 > indicator2)
    
    IF c1 THEN
    BUY 1 CONTRACT AT MARKET
    ENDIF
    
    // Condizioni per uscire da posizioni long
    indicator3 = close
    indicator4 = SuperTrend[0.4,3]
    c2 = (indicator3 < indicator4)
    
    IF c2 THEN
    SELL  AT MARKET
    ENDIF
    
    // Condizioni per entrare su posizioni short
    indicator5 = close
    indicator6 = SuperTrend[0.4,3]
    c3 = (indicator5 < indicator6)
    
    IF c3 THEN
    SELLSHORT 1 CONTRACT AT MARKET
    ENDIF
    
    // Condizioni per uscire da posizioni short
    indicator7 = close
    indicator8 = SuperTrend[0.4,3]
    c4 = (indicator7 > indicator8)
    
    IF c4 THEN
    EXITSHORT  AT MARKET
    ENDIF
    
    // Stop e target
    SET STOP pTRAILING 1
    
    Schermata-2016-10-09-alle-20.46.01.png Schermata-2016-10-09-alle-20.46.01.png
    #14546 quote
    Nicolas
    Keymaster
    Master

    Ovviamente no. E ‘a causa dell’uso di trailing stop e ProBacktest nella versione 10.2 non guardare dentro bar se il stoploss è verificato prima della TakeProfit. Così è sempre il takeprofit che viene attivato. Ho fatto un video su questo e il cambiamento del motore backtest della nuova versione ProRealTime 10.3 a venire (in English).

    https://www.youtube.com/watch?v=zrWcgzXNwJA

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

SUPERTREND: E' POSSIBILE AVERE QUESTI RISULTATI ?


Benvenuto e Presentazione Nuovi Membri

New Reply
Author
author-avatar
ablibero @ablibero Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
9 years, 4 months ago.

Topic Details
Forum: Benvenuto e Presentazione Nuovi Membri
Language: Italian
Started: 10/09/2016
Status: Active
Attachments: No files
Logo Logo
Loading...