stategia non funzionante

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #176451 quote
    emanuele81
    Participant
    Senior

    Buonasera ho creato una strategia cxon media hull e Tether line, non capisco perche non riesco a farla funzionare, grazie in anticipo a chi mi puo aiutare.

    scalping-1-minuto.itf
    #176456 quote
    robertogozzi
    Moderator
    Master

    Non parte?

    Ti segnala un errore?

    #176477 quote
    GraHal
    Participant
    Master

    It’s due to your lookbacks of -2 … e.g. Line 19 below

    indicator3 = HullAverage[16](close)[-2]

    Try

    indicator3 = HullAverage[16](close)[2]
    #176490 quote
    robertogozzi
    Moderator
    Master

    Si, non si possono usare indici negativi.

    Se intendi fare riferimento a CLOSE del secondo giorno precedente devi scrivere [2], non [-2].

    #176495 quote
    emanuele81
    Participant
    Senior

    grazie mille, ora funziona tutto

    #176499 quote
    emanuele81
    Participant
    Senior

    come posso fare per chiudere una strategia dopo che si susseguono 3 candele dello stesso colore?

    #176501 quote
    robertogozzi
    Moderator
    Master

    Eccolo:

    Bullish = close > open
    Bearish = close < open
    If summation[3](Bullish) = 3 then
       Sell at Market
    Endif
    If summation[3](Bearish) = 3 then
       Sellshort at Market
    Endif
    #176502 quote
    emanuele81
    Participant
    Senior

    grazie

    #179310 quote
    MaoRai54
    Participant
    Master

    non dovrebbe essere exitshort ?

    #179311 quote
    robertogozzi
    Moderator
    Master

    Si, hai ragione. Scusami la svista.

    MaoRai54 thanked this post
    #179320 quote
    MaoRai54
    Participant
    Master

    Roberto,

    sei un faro per noi

    non scusarti, capita 🙂

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

stategia non funzionante


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
emanuele81 @emanuele81 Participant
Summary

This topic contains 10 replies,
has 4 voices, and was last updated by MaoRai54
4 years, 4 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 08/29/2021
Status: Active
Attachments: 1 files
Logo Logo
Loading...