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
    Steven11Steven11
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    Steven11Steven11
    Participant
    Average

    grazie Roberto

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

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 Steven11Steven11
4 years, 5 months ago.

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