AIUTO PER CODICE ENTRATE ED USCITE INTRADAY

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #194646 quote
    edilio75
    Participant
    New

    Salve è possibile codificare lingresso long ad ogni barra oraria è uscire alla chiusura della barra stessa?

    #194708 quote
    robertogozzi
    Moderator
    Master

    Perf avore dai un titolo significativo al tuo argomento. Descrivi la tua domanda o l’oggetto nel titolo. Non utilizzare titoli privi di significato come “Aiuto per la codifica” o simili, sii più dettagliato possibile.
    L’ho variato io.
    Grazie 🙂

    Ecco il codice. La sequenza è INGRESSO-USCITA-INGRESSO,….. (serve una barra per sapere se un’operazione è entrata):

    DEFPARAM CumulateOrders = FALSE
    SELL AT MARKET
    BUY AT MARKET

    Una sequenza SENZA una barra intermedia si riesce ad evre solo facendo lo Stop & reverse:

    DEFPARAM CumulateOrders = FALSE
    ONCE flag = 0
    flag = abs(flag - 1)
    IF flag THEN
       BUY AT MARKET
    ELSE
       SELLSHORT AT MARKET
    ENDIF
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

AIUTO PER CODICE ENTRATE ED USCITE INTRADAY


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
edilio75 @edilio75 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
3 years, 9 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 06/04/2022
Status: Active
Attachments: No files
Logo Logo
Loading...