Break out candela IDNR4
Forums › ProRealTime forum Italiano › Supporto ProOrder › Break out candela IDNR4
- This topic has 4 replies, 3 voices, and was last updated 11 months ago by
Carburo.
-
-
05/24/2024 at 8:32 AM #232979
una volta identificata una candela IDNR4 (di seguito le condizioni per definirla tale)
inside=(high<high[1]) and (low>low[1]) //candela inside
narrowrange=(range<(range)[1]) and (range<range[2]) and (range<range[3]) //candela narrow range 4vorrei entrare LONG o SHORT al break out di massimo e minimo, grazie.
1 user thanked author for this post.
05/24/2024 at 12:58 PM #233006Ciao, ecco il codice per aprire le posizioni. Dovrai solo programmare la partenza:
123456789inside=(high<high[1]) and (low>low[1]) //candela insidenarrowrange=(range<(range)[1]) and (range<range[2]) and (range<range[3]) //candela narrow range 4setup=inside and narrowrangeif not onmarket and setup thenbuy 1 contract at high stopsellshort 1 contract at low stopendif2 users thanked author for this post.
05/24/2024 at 9:08 PM #233038grazie, se volessi mettere un target ed uno stop loss pari al range della candela IDNR4 come dovrei fare?
1 user thanked author for this post.
05/28/2024 at 7:53 AM #233122Di niente. Per inserire una fermata e un target è necessario introdurre 2 righe in più di codice:
1234567891011inside=(high<high[1]) and (low>low[1]) //candela insidenarrowrange=(range<(range)[1]) and (range<range[2]) and (range<range[3]) //candela narrow range 4setup=inside and narrowrangeif not onmarket and setup thenbuy 1 contract at high stopsellshort 1 contract at low stopset stop loss rangeset target profit rangeendif1 user thanked author for this post.
11/26/2024 at 2:19 PM #240772Grazie Ivan,
ho notato che quando in certi casi il sistema apre la posizione correttamente (p.es. LONG al tocco del massimo della candela IDNR4), la chiude in Stop Loss (al minimo della candela) e immediatamente la riapre (SHORT nel caso dell’esempio) in quanto il prezzo ha battuto almeno due volte al minimo della candela, come si vede nell’immagine.
L’apertura della seconda posizione è in pratica uno Stop&Reverse, ma poiché a volte non avviene (scattato lo SL, non sempre viene aperta l’operazione contraria) sarebbe bene che il sistema evitasse la seconda posizione.
C’è modo di evitare l’apertura della seconda posizione nel corso della stessa candela nella quale il sistema ha chiuso la prima posizione?
Grazie mille.
-
AuthorPosts
Find exclusive trading pro-tools on 