TRADING SYSTEM CON INDICATORE PARABOLIC SAR

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #137976 quote
    PICCI64PICCI64
    Participant
    New

    Buongiorno,

    vorrei creare un trading system con l’indicatore

    • Parabolic SAR (0.02 0.02 0.2)

    In pratica quando l’indicatore diventa verde il trading system deve acquistare 1 contratto dello strumento su cui è applicato quando diventa rosso

    deve vendere lo stesso contratto e mettersi al ribasso. Con la creazione semplificata non riesco a farlo mi potete aiutare ?

    Ringraziando anticipatamente per la collaborazione

    porgo cordiali saluti.

    Marcello Piccinini

    #137981 quote

    Ciao,

    Ecco fatto….tieni presente che l’entrata avviene sempre alla barra successiva….

    la lettura del codice è sempre a chiusura della barra.

    Non è provato controlla.

    DEFPARAM CumulateOrders = False 
    
    // Condizioni per entrare su posizioni long
    indicator1 = SAR[0.02,0.02,0.2]
    c1 = (close CROSSES OVER indicator1)
    
    IF c1 THEN
    BUY 1 CONTRACT AT MARKET
    ENDIF
    
    // Condizioni per entrare su posizioni short
    indicator2 = SAR[0.02,0.02,0.2]
    c2 = (close CROSSES UNDER indicator2)
    
    IF c2 THEN
    SELLSHORT 1 CONTRACT AT MARKET
    ENDIF
    robertogozzi thanked this post
    #137992 quote
    PICCI64PICCI64
    Participant
    New

    Perfetto !!!!!!!

    Si si lo testerò su vari time frame.

    Grazie mille!!!!!

Viewing 3 posts - 1 through 3 (of 3 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

TRADING SYSTEM CON INDICATORE PARABOLIC SAR


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
PICCI64 @picci64 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by PICCI64PICCI64
6 years, 3 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 07/01/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...