richiamo indicatori su barra trade precedenti

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #13535 quote
    maximus78
    Participant
    Senior

    Buongiorno!

    ho ancora un quesito riguardo la piramidazione e l’ammontare delle posizioni:

    Come faccio a identificare un indicatore sulla barra del trade precedente?

    esempio:

    voglio comprare tot. azioni con un dato ammontare di rischio dato da entry-stop loss:

    200$/(Highest[a](High)-supertrend[x,y])

    Il supertrend fa da stop loss, l’high fa da entry in posizione.

    Come faccio a richiamare high e supertrend del precedente trade per stabilire l’ammontare delle azioni acquistate fin’ora per cerare un sistema a piramide?

    Grazie e buona giornata a tutti!

    Massimo

    #13593 quote
    Nicolas
    Keymaster
    Master

    Se si vuole fare riferimento al valore SuperTrend della barra  precedente, deve innanzitutto scrivere il suo indicatore SuperTrend all’inizio del codice:

    st = supertrend[3,10]

    e quindi recuperare il valore della barra precedente in questo modo: (barra precedente)

    st[1]

    e si può fare lo stesso per tutte le altre variabili.

    #13800 quote
    maximus78
    Participant
    Senior

    Giusto, ma io voglio richiamare il supertrend corrispondente alla barra del trade precedente cioè su tradeindex(1).

    E’ possibile?

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

richiamo indicatori su barra trade precedenti


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
maximus78 @maximus78 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by maximus78
9 years, 4 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 09/22/2016
Status: Active
Attachments: No files
Logo Logo
Loading...