Codice per entrare in posizione

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #187225 quote
    Ciccarelli FrancoCiccarelli Franco
    Participant
    Senior

    Salve, mi interesserebbe un semplice codice che manda a mercato e chiude ordini con la semplice variabile di ora ingresso e ora fine.

    Grazie

    #187267 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Eccolo:

    IF Time = 100000 THEN         //entrare alle 10:00
       BUY 1 CONTRACT AT MARKET   //oppure SELLSHORT per le operazioni short
    ENDIF
    IF Time = 170000 THEN         //uscire alle 17:00
       SELL AT MARKET             //oppure EXITSHORT per le operazioni short
    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

Codice per entrare in posizione


ProOrder: Trading Automatico & Backtesting

New Reply
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
4 years, 7 months ago.

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