2 supertrend + adx

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #134602 quote
    focus180
    Participant
    New

    Salve
    gentilmente potete aiutarmi a codificare questa strategia

    con

    1 Supertrend a 50 periodi e 2 ATR

    2 Supertrend a 10 periodi e 1 ATR

    – entriamo long ( candela successiva ) quando il 1 Supertrend è long + il 2 passa da short a long + adx > 25

    – entriamo short ( candela successiva ) quando il 1 Supertrend è short e il 2 passa da short a long + adx > 25

    grazie

    fabio

    P.S. ci sono libri o corsi per imparare a programmare per prorealtime

    #134611 quote
    robertogozzi
    Moderator
    Master

    Per favore Pubblica il tuo argomento nel forum corretto:

    ProOrder: solo argomenti su strategie.

    Grazie 🙂

    #134612 quote
    robertogozzi
    Moderator
    Master

    Cosa deve fare l’ATR ?

    #134647 quote
    focus180
    Participant
    New

    saluti,

    errore mio

    1  Supertrend (50,2)

    2  Supertrend (10,1)

    – entriamo long ( candela successiva ) quando il 1 Supertrend è long + il 2 passa da short a long + adx > 25

    – entriamo short ( candela successiva ) quando il 1 Supertrend è short e il 2 passa da short a long + adx > 25

    grazie

    fabio

    P.S. ci sono libri o corsi per imparare a programmare per prorealtime

    #134753 quote
    robertogozzi
    Moderator
    Master

    Per i corsi ci sono video qui:

    https://www.prorealcode.com/programming-with-prorealtime/

    https://www.youtube.com/channel/UCj1ZsVjiKQQH1XzIMENQTyQ

    Per la strategia, eccola:

    DEFPARAM CumulateOrders = false
    St1   = Supertrend[50,2]
    St2   = Supertrend[10,1]
    L1    = close > St1
    L2    = close CROSSES OVER  St2
    S1    = close < St1
    S2    = close CROSSES UNDER St2
    MyADX = ADX[14] > 25
    Lcond = L1 AND L2 AND MyADX AND Not OnMarket
    Scond = S1 AND S2 AND MyADX AND Not OnMarket
    IF Lcond THEN
       BUY 1 CONTRACT AT MARKET
    ENDIF
    IF Scond THEN
       SELLSHORT 1 CONTRACT AT MARKET
    ENDIF
    SET TARGET pPROFIT 100
    SET STOP   pLOSS   50
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

2 supertrend + adx


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
focus180 @focus180 Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by robertogozzi
5 years, 8 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 06/04/2020
Status: Active
Attachments: No files
Logo Logo
Loading...