come entrare a mercato sopra massimo candela precedente

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6197 quote
    Marianor76Marianor76
    Participant
    New
    DEFPARAM CumulateOrders=False
    
    if Range[0]<Range[1] AND Range[0] < Range[2] AND Range[0] < Range[3] and high[0]<high[1] and low[0] > low[1]and Average[6](close)< close[0] then
    buy 800 cash AT high[0] LIMIT
    
    
    SET TARGET %PROFIT 5
    
    SET STOP %LOSS 2.5
    
    endif
    #6199 quote
    Marianor76Marianor76
    Participant
    New

    Salve, sono nuovo del forum spero sia la sezione adatta x il mio quesito,
    ho provato a far girare un test con l’ IDNR4, Volevo sapere se esiste una stringa di comando in trading system e probacktest per entrare a mercato long pochi tic sopra il massimo della candela precedente o short sotto il minimo della candela precedente, anziché entrare a prezzo di apertura (dopo la candela zero)
    Saluto e ringrazio x l’aiuto.

    #6225 quote
    NicolasNicolas
    Keymaster
    Legend

    Ciao, sei nella sezione giusta del forum, nessuna preoccupazione 🙂
    Per acquistare ad un prezzo superiore alla soglia di corrente, utilizzare un comando di “STOP” e non un ordine “limite”.
    Guardate il mio esempio qui di seguito, è possibile sostituire la linea 4 del codice.

    xticks = 5 //ticks amount?
    
    buy 800 cash AT high[0]+xticks*ticksize STOP
    #6233 quote
    Marianor76Marianor76
    Participant
    New

    ringrazio x la pronta ed efficace risposta

    #8920 quote
    losdeklosdek
    Participant
    New

    Ciao Nicolas,

     

    anch’io sono nuovo e sto imparando a programmare in PRT. Una domanda relativa a questa…è possibile eseguire un’ordine in un momento preciso, senza aspettare l’apertura della vela successiva?

    Per esempio, se voglio comprare LONG quando il prezzo passa la media di Bollinger, è possibile farlo senza aspettare la vela dopo?

    Grazie mille in anticipo,

    Un saluto

    #8978 quote
    ginoerreginoerre
    Participant
    Junior

    Scusa Nicolas, solo per capire, l’istruzione alla riga 3 non dovrebbe essere

    buy 800 cash AT high[1]+xticks*ticksize STOP

    per far riferimento al massimo della candela precedente, così come richiesto da Marianor76?

    Grazie

Viewing 6 posts - 1 through 6 (of 6 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

come entrare a mercato sopra massimo candela precedente


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Marianor76 @marianor76 Participant
Summary

This topic contains 5 replies,
has 4 voices, and was last updated by ginoerreginoerre
10 years, 3 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 04/29/2016
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...