Riconoscere il colore delle barre volume
Forums › ProRealTime forum Italiano › Supporto ProOrder › Riconoscere il colore delle barre volume
- This topic has 6 replies, 2 voices, and was last updated 2 years ago by
robertogozzi.
-
-
10/12/2022 at 9:44 AM #202352
Roberto buongiorno,
vorrei mettere tra le condizioni di entrata in mio trading system il colore e il valore delle barre del volume, come faccio?
Grazie
10/12/2022 at 3:38 PM #202380Il colore è ROSSO quando la candela è ribassista, VERDE quando è rialzista ed invariato (uguale alla candela precedente) quando apertura e chiusura sono uguali:
12345678MioVolume = VolumeIF close > open THEN//colore VERDEELSIF close < open THEN//colore ROSSOELSE//colore invariatoENDIFMioVolume è il valore del VOLUME.
10/12/2022 at 5:40 PM #202394Non ho capito bene,
Quello che vorrei, descritto in Italiano è;
Se il volume >= 1000 e la barra è verde , va al comando compra.
Se il volume >=100o e la barra è rossa, va al comando vendita allo scoperto
Grazie
10/12/2022 at 7:00 PM #202396Eccolo (non l’ho provato):
1234567891011121314ONCE Verde = 0ONCE Rosso = 0IF close > open THENVerde = 1ELSIF close < open THENRosso = 1ENDIFIF Volume > 1000 THENIF Verde THENBUY 1 Contract at MarketELSIF Rosso THENSELLSHORT 1 Contract at MarketENDIFENDIF10/13/2022 at 8:22 AM #20241410/13/2022 at 4:05 PM #202480Mi fa solo long perdendo tutti i trade.
10/13/2022 at 4:30 PM #202485Si, hai ragione, ho dimenticato due righe di azzeramento delle variabili contrarie:
12345678910111213141516ONCE Verde = 0ONCE Rosso = 0IF close > open THENVerde = 1Rosso = 0ELSIF close < open THENRosso = 1Verde = 0ENDIFIF Volume > 1000 THENIF Verde THENBUY 1 Contract at MarketELSIF Rosso THENSELLSHORT 1 Contract at MarketENDIFENDIF -
AuthorPosts
Find exclusive trading pro-tools on