2 operazioni in una candela

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #241329 quote
    Tommaso._r0maTommaso._r0ma
    Participant
    New

    Salve, vorrei sapere come si fa a far entrare il sistema sia short(30 punti sotto l’apertura) che long(30 punti sopra l’apertura) nella stessa candela.

    Grazie in anticipo

    #241340 quote
    Iván GonzálezIván González
    Moderator
    Legend
    Ciao! Il sistema può essere investito solo in una direzione alla volta, a breve o a lungo termine. Ora è possibile avere un'entrata lunga e una entrata corta nella stessa candela. Adesso il problema è che il codice viene ricalcolato solo alla chiusura della candela. Ciò rende impossibile conoscere il prezzo di apertura della candela successiva. Quello che potresti fare è calcolare il prezzo di apertura di un intervallo temporale di 1H e poi lavorare su candele da 15 o 5 minuti, ad esempio. Con questo codice puoi inserire ordini in entrambe le direzioni.
    if yourconditions then
    buy 1 contract at open1H+30*pipsize stop
    sellshort 1 contract at open1H-30*pipsize stop
    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

2 operazioni in una candela


ProOrder: Trading Automatico & Backtesting

New Reply
Author
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Iván GonzálezIván González
1 year, 9 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 12/11/2024
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...