richiamo indicatori su barra trade precedenti

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #13535 quote
    maximus78maximus78
    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
    NicolasNicolas
    Keymaster
    Legend

    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
    maximus78maximus78
    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.
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

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 maximus78maximus78
10 years ago.

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