2 operazioni in una candela

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #241329 quote
    Tommaso._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ález
    Moderator
    Master
    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.

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ález
1 year, 2 months ago.

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