Errore definisci la variabile Advance, higtPoint
Forums › ProRealTime forum Italiano › Supporto ProScreener › Errore definisci la variabile Advance, higtPoint
- This topic has 6 replies, 3 voices, and was last updated 8 months ago by robertogozzi. 
- 
	
		
- 
		
			
				
02/19/2025 at 12:27 PM #244027Nel caricare lo scrinner che includo mi da l’errore in oggetto. Come risolvo Grazie 02/19/2025 at 3:06 PM #24405502/19/2025 at 3:43 PM #244066Immagino che ciò sia dovuto al fatto che la variabile "Advance" non è definita. Per consentirci di aiutarti in modo efficace, è meglio se condividi il codice con il pulsante "Aggiungi codice PRT" e copi il codice nella finestra che si apre. 02/19/2025 at 3:57 PM #244070REM Compute the power of the bearish trend // Find the lowest quote on the last 8 bars 
 LowPoint = HIGHEST[8](LOW)// Compute the variation of price from this point to now 
 nowAdvance = OPEN- highPoint// Compute the usual volatility of the stock (median of True Range) 
 Norm = SUMMATION[3](TR) – HIGHEST[3](TR) – LOWEST[3](TR)REM Stock picking : only the bearish engulfing Filter = OPEN[1] > CLOSE[1] AND CLOSE > OPEN[1] AND OPEN < CLOSE[1] REM We keep the most serious advances 
 SCREENER [ Filter ] (Advance / Norm AS “Trend Power”)Eccolo 02/20/2025 at 9:50 AM #244088Se esegui lo screener, vedrai un messaggio che indica qual è il problema. devi definire le variabili Advance e highPoint. Immagino che la variabile Advance (riga 15) faccia in realtà riferimento alla variabile nowAdvance (riga 5). Quindi devi solo modificare la riga 15. D'altra parte devi definire HighPoint. 02/20/2025 at 9:56 AM #244091Non ho ben capito. Grazie 02/20/2025 at 9:10 PM #244121Quando si usa una variabile, occorre che prima sia stata definita, cioè gli sia stato assegnato un valore. Nel tuo caso vengono usate le due variabili indicate nella foto di Iván, che però non sono state definite in precedenza. Devi definirle, oppure, se hai copiato il codice, l’hai copiato in modo non completo. 1 user thanked author for this post.
- 
		AuthorPosts
			Find exclusive trading pro-tools on 



 
		 
		 
		