Visualizzazione incrocio non corretta
- This topic has 6 replies, 3 voices, and was last updated 6 years ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
Similar topics:
Forums › ProRealTime forum Italiano › Supporto ProBuilder › Visualizzazione incrocio non corretta
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.
|
1 2 3 4 5 6 7 8 9 10 11 12 |
Tenkansen = (highest[9](High)+lowest[9](Low))/2 Kijunsen = (highest[26](High)+lowest[26](Low))/2 IF Tenkansen CROSSES OVER Kijunsen THEN backgroundcolor (0, 255, 0, 100) ENDIF IF Tenkansen CROSSES UNDER Kijunsen THEN backgroundcolor (255, 0, 0, 100) ENDIF Return |
Se 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à.
Per favore aggiorna il tuo Paese nel profilo.
Grazie.
Prova ad inserire questa riga prima della 4:
<pre class=”lang:probuilder decode:true “>backgroundcolor (255,255,255,255)
|
1 |
backgroundcolor (255,255,255,255) |
|
1 2 3 4 5 6 7 8 9 10 11 12 |
BackgroundColor (255,255,255,255) // Init background Tenkansen = (highest[9](High)+lowest[9](Low))/2 Kijunsen = (highest[26](High)+lowest[26](Low))/2 if Tenkansen crosses over Kijunsen then BackgroundColor (0,255,0,100) elsif Tenkansen crosses under Kijunsen then BackgroundColor (255,0,0,100) endif return |
Per favore aggiorna il tuo Paese nel profilo.
Grazie.
Buongiorno, nel paese ho Italia. Devo aggiornare qualche altro campo?
Grazie
Find exclusive trading pro-tools on