chiudere posizioni aperte il giorno prima alle 8 di mattina del giorno dopo.

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

    Buon pomeriggio ,

    vorrei formulare un codice che chiuda automaticamente le posizioni aperte il giorno prima alle ore 8:00 del giorno dopo. Grazie in anticipo.

    #190368 quote
    robertogozzi
    Moderator
    Master

    Eccolo:

    IF OnMarket AND Time = 080000 THEN
       SELL      AT MARKET
       EXITSHORT AT MARKET
    ENDIF

    Ovviamente occorre che la candela del timeframe da te scelto chiuda alle 08:00, quindi il 4 ore o il Giornaliero (forse anche il 2 ore), non potranno chiudere a quell’ora.

    #190506 quote
    Steven11
    Participant
    Average

    grazie Roberto

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

chiudere posizioni aperte il giorno prima alle 8 di mattina del giorno dopo.


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Steven11 @steven11 Participant
Summary

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

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 03/23/2022
Status: Active
Attachments: No files
Logo Logo
Loading...