AIUTO PER CODICE ENTRATE ED USCITE INTRADAY

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

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

    #194708 quote
    robertogozzirobertogozzi
    Moderator
    Legend

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

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 robertogozzirobertogozzi
4 years, 3 months ago.

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