CANDELE HEIKIN HASHI DAILY LONG
- This topic has 3 replies, 2 voices, and was last updated 3 years ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
Similar topics:
Forums › ProRealTime forum Italiano › Supporto ProScreener › CANDELE HEIKIN HASHI DAILY LONG
Buona sera Roberto, chiedevo uno screener che mi estraesse i titoli azionari che sopra la sma a 200 giorni avessero la prima candela heikin hashi che diventa verde cosi da monitorare entrate long e uno che si comportasse uguale ma con il close sotto la sma a 200 giorni sempre per entrate long. Grazie mille.
Eccoli:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
// HA - definizione Heikin-Ashi // xOpen = open xClose = (open + close + high + low) / 4 if barindex > 0 then xOpen = (xOpen[1] + xClose[1]) / 2 endif //xLow = min(low,min(xClose,xOpen)) //xHigh = max(high,max(xClose,xOpen)) xBullish = xClose > xOpen xBearish = xClose < xOpen xChange = (xBearish AND xBullish[1]) or (xBearish[1] AND xBullish) // Sma200 = average[200,0](xClose) //Sma200 = average[200,0](close) // If barindex = 0 then Flag = 0 c1 = 0 c2 = 0 Endif If c2 AND Flag then Flag = 0 c1 = 0 c2 = 0 Endif c1 = xClose CROSSES OVER Sma200 //c1 = close CROSSES OVER Sma200 c2 = xClose CROSSES UNDER Sma200 //c2 = close CROSSES UNDER Sma200 If c1 then Flag = 1 Endif If c2 then Flag = 0 Endif c3 = xBullish AND xChange Screener[c3 AND Flag] |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
// HA - definizione Heikin-Ashi // xOpen = open xClose = (open + close + high + low) / 4 if barindex > 0 then xOpen = (xOpen[1] + xClose[1]) / 2 endif //xLow = min(low,min(xClose,xOpen)) //xHigh = max(high,max(xClose,xOpen)) xBullish = xClose > xOpen xBearish = xClose < xOpen xChange = (xBearish AND xBullish[1]) or (xBearish[1] AND xBullish) // Sma200 = average[200,0](xClose) //Sma200 = average[200,0](close) // If barindex = 0 then Flag = 0 c1 = 0 c2 = 0 Endif If c2 AND Flag then Flag = 0 c1 = 0 c2 = 0 Endif c1 = xClose CROSSES UNDER Sma200 //c1 = close CROSSES UNDER Sma200 c2 = xClose CROSSES OVER Sma200 //c2 = close CROSSES OVER Sma200 If c1 then Flag = 1 Endif If c2 then Flag = 0 Endif c3 = xBullish AND xChange Screener[c3 AND Flag] |
ho sempre usato le candele HA, anche per gli indicatori. Se vuoi usare le normali candele giapponesi (solo per gli indicatori), utilizza l’istruzione che c’è nei commenti delle righe 14, 26 e 27 (al posto di quella attuale).
Buona sera Roberto, scusa ma non mi estrae nessun titolo per il long , mi puoi rifare lo screener per un entrata long con la 1a candela verde daily Heikin HaSHI che si forma? Poi proverò io ad inserire altri parametri, grazie mille.
Eccolo:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
// HA - definizione Heikin-Ashi // Timeframe(Daily) xOpen = open xClose = (open + close + high + low) / 4 if barindex > 0 then xOpen = (xOpen[1] + xClose[1]) / 2 endif //xLow = min(low,min(xClose,xOpen)) //xHigh = max(high,max(xClose,xOpen)) xBullish = xClose > xOpen xBearish = xClose < xOpen xChange = (xBearish AND xBullish[1]) or (xBearish[1] AND xBullish) c1 = xBullish AND xChange Screener[c1] |
Find exclusive trading pro-tools on