Chiudere posizioni a chiusura posizione Oraria H1

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #212641 quote
    Steven11
    Participant
    Average

    Buon Pomeriggio,

    vorrei fare chiudere le posizioni aperte dal sistema automatizzato di trading a chiusura candela H1 Oraria.

    Ringrazio in anticipo chiunque possa aiutarmi.

    #212670 quote
    robertogozzi
    Moderator
    Master

    Quale TF utilizzi?

    #212942 quote
    Steven11
    Participant
    Average

    Buon pomeriggio,

    utilizzo il time frame  a 10 secondi.

    #212964 quote
    Steven11
    Participant
    Average

    Scusa , opero con un sistema con time frame a 10 sec ma vorrei far chiudere posizioni al sistema alla chiusura della candela oraria , quindi es. alle 16:00, al 17:00 …etc.

    #212965 quote
    robertogozzi
    Moderator
    Master

    Eccolo, chiude al cambio dell’ora:

    IF hour <> hour[1] THEN
       IF OnMarket THEN
          SELL      AT MARKET
          EXITSHORT AT MARKET
       ENDIF
    ENDIF

    ti conviene metterlo all’inizio del codice, subito dopo eventuali righe DEFPARAM.

    #213017 quote
    Steven11
    Participant
    Average

    Grazie mille.

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

Chiudere posizioni a chiusura posizione Oraria H1


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Steven11 @steven11 Participant
Summary

This topic contains 5 replies,
has 2 voices, and was last updated by Steven11
2 years, 10 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 04/01/2023
Status: Active
Attachments: No files
Logo Logo
Loading...