Visualizzazione incrocio non corretta
Forums › ProRealTime forum Italiano › Supporto ProBuilder › Visualizzazione incrocio non corretta
- This topic has 6 replies, 3 voices, and was last updated 4 years ago by F Traders.
-
-
04/23/2019 at 12:43 PM #96983
Buongiorno a tutti, premetto che sono alle prime armi con la scrittura di indicatori prorealtime e quindi il mio problema potrebbe essere semplice per molti di voi.
Ho creato un indicatore che colora di rosso lo sfondo quando avviene l’incrocio al ribasso tra la tenkan e la kijun, e verde viceversa.
Incrocio tenkan-kijun123456789101112Tenkansen = (highest[9](High)+lowest[9](Low))/2Kijunsen = (highest[26](High)+lowest[26](Low))/2IF Tenkansen CROSSES OVER Kijunsen THENbackgroundcolor (0, 255, 0, 100)ENDIFIF Tenkansen CROSSES UNDER Kijunsen THENbackgroundcolor (255, 0, 0, 100)ENDIFReturnSe applico l’indicatore la prima volta funziona correttamente, se poi cambio titolo sbaglia la visualizzazione inserendo delle zone di colore non valide.
Se però riapplico l’indicatore ex novo torna a funzionare correttamente.Allego schermate.
Grazie a chi mi aiuterà.04/23/2019 at 12:57 PM #96987Per favore aggiorna il tuo Paese nel profilo.
Grazie.
04/23/2019 at 1:06 PM #96989Prova ad inserire questa riga prima della 4:
<pre class=”lang:probuilder decode:true “>backgroundcolor (255,255,255,255)
04/23/2019 at 1:07 PM #969901backgroundcolor (255,255,255,255)04/23/2019 at 1:17 PM #96993123456789101112BackgroundColor (255,255,255,255) // Init backgroundTenkansen = (highest[9](High)+lowest[9](Low))/2Kijunsen = (highest[26](High)+lowest[26](Low))/2if Tenkansen crosses over Kijunsen thenBackgroundColor (0,255,0,100)elsif Tenkansen crosses under Kijunsen thenBackgroundColor (255,0,0,100)endifreturn1 user thanked author for this post.
04/23/2019 at 4:06 PM #97000Per favore aggiorna il tuo Paese nel profilo.
Grazie.
Buongiorno, nel paese ho Italia. Devo aggiornare qualche altro campo?
Grazie04/23/2019 at 4:07 PM #97001 -
AuthorPosts
Find exclusive trading pro-tools on