Entrata e uscita con orari

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #195180 quote
    Mauro M
    Participant
    New

    Come faccio a codificare che voglio che il sistema orario entri alle 9 ed esca alle 10?

    <hr />

    #195209 quote
    robertogozzi
    Moderator
    Master

    Ho spostato l’argomento da ProBuilder, in quanto non è un indicatore.

    Ecco il codice:

    If time = 090000 and Not OnMarket then
       Buy 1 contract at Market
    Endif
    If time = 100000 and OnMarket then
       SELL 1 contract at Market
    Endif
    #195234 quote
    Mauro M
    Participant
    New

    Prima cosa la ringrazio di tutto se mi posso sdebitare in qualsiasi maniera mi dia pure un suo contatto. Non sembra funzionare mi apre le posizioni in tutti gli orari.

    #195235 quote
    Mauro M
    Participant
    New

    non prendetemi in giro per sto squallore di codice . Lo so da solo che non so programmare

     

    // prova sistema

    if time=090000 and not onmarket then
    buy 1 contract at market
    endif
    if time= 100000 and onmarket then
    sell 1 contract at market
    endif

     

    Ntick =1
    N2TICK =1

     

    //Long entry

    IF close < (OPEN) then

    buy 1 shares at HIGH – Ntick stop
    endif

    //Short entry
    if close >(OPEN) then
    sellshort 1 shares at LOW + Ntick stop
    endif
    IF LONGONMARKET and (BarIndex – TradeIndex)=3then
    endif

    Set Stop Loss 30//as insurance
    Set Target profit 150

    #195266 quote
    robertogozzi
    Moderator
    Master

    Certo che entra sempre, solo nella prima parte hai usato le condizioni temporali, nel resto no.

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

Entrata e uscita con orari


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Mauro M @mauro-m Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by robertogozzi
3 years, 9 months ago.

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