Screener con indicatore personalizzato
Forums › ProRealTime forum Italiano › Supporto ProScreener › Screener con indicatore personalizzato
- This topic has 2 replies, 2 voices, and was last updated 11 months ago by pignolaus.
Viewing 3 posts - 1 through 3 (of 3 total)
-
-
12/14/2023 at 2:39 PM #225246
Buongiorno,
volevo chiedere cortesemente come si può trasformare l’indicatore “Enhanced Volume Pocket Pivot” visibile in questa pagina https://www.prorealcode.com/prorealtime-indicators/enhanced-volume-pocket-pivot/ in uno screner che ricerchi i giorni in cui si verifica il volume pocket pivot.
Ho provato a richiamare l’indicatore tramite il comando CALL ma non riesco a finalizzarlo e non funziona.
Allego il codice originale.
Grazie mille
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192//// Enhanced Volume Pocket Pivot// Version 1.0// Author : TeamOne (https://www.prorealcode.com/user/teamone/)// Date : 2022/04/02//// This indicator identifies different interesting configurations// on volumes and especially on the appearance of "pocket pivots".// As describe by Gil Morales et Chris Kacher in their book "Trade like an O'Neil disciple" ,// a "pocket pivot" volume is an up day volume that is greater than the highest down volume day of the last 10 down days.//// Also this indicator try to identify "distribution day" and can help to regnonize instutionnal selling.// O’Neil referred to these days as " heavy volume, without further price progress higher. ".// I use these criterias to identify them : price drop greater than 0.2 % on heavier volume than the prior day// Clusters are more relevant than a ditribution day here and there.// When the bar count reaches 5-7 be on guard. Note that price can continue uptrends even with an elevated distribution bar counts.// Also closing range matters// Distribution days are erased when price index rises 5% from a ditribution day// or after 25 trading days have passed.////// Disclaimer : this indicator is not a buying signal, it simply gives a sense of institutional buying or selling pressure and must imperatively be// analyzed according to many others parameters (trend, price, stage, stock fundamentals...)//// Here is the meaning of the different graphical elements rendered by this indicator :// Green bars : 10 day pocket pivots// Blue bars : 5 day pocket pivots// Dark gray bars : dow volume days bars// Light gray bars : up volume days bars// Red bars : distribution bars// Orange line : average volume over the last 50 days.// Orange Down Arrows on average line : dry volume < 45 % of the 50 days average volume////avgVolume = Average[50](Volume)// is current bar a 10 days pocket pivot ?isPP10 = Close > Close[1] AND Volume > ABS(Close[1] < Close[2]) * Volume[1] AND Volume > ABS(Close[2] < Close[3]) * Volume[2] AND Volume > ABS(Close[3] < Close[4]) * Volume[3] AND Volume > ABS(Close[4] < Close[5]) * Volume[4] AND Volume > ABS(Close[5] < Close[6]) * Volume[5] AND Volume > ABS(Close[6] < Close[7]) * Volume[6] AND Volume > ABS(Close[7] < Close[8]) * Volume[7] AND Volume > ABS(Close[8] < Close[9]) * Volume[8] AND Volume > ABS(Close[9] < Close[10]) * Volume[9] AND Volume > ABS(Close[10] < Close[11]) * Volume[10]// is current day price above last day price ?isAnUpDay = Close > Close[1]// is current day a distribution day ?closeLocationValue = ((Close-Low)-(High-Close))/(High-Low)//A value of zero would mean that the price closed halfway between the high and low of the range.// A value of +1 means the close is equal to the high of the range.// A value of -1 means the close is equal to the low of the range.evolClose = ((Close-Close[1])/Close[1])isDistributionDay = Volume > avgVolume and evolClose<-0.002 and closeLocationValue<0// colors definitionr=0g=0b=0// 10 day pocket pivot bar : green barif isPP10 thenr=0g=255b=0// distribution day bar : red barelsif isDistributionDay thenr = 206g=83b=86// up volume day bar : light gray barelsif isAnUpDay thenr=192g=192b=192// donw volume day bar : dark gray barelser=130g=130b=130endif// Dry volume : display down arrow in case of volume less than 45 % of the 50 days average volumeavgVol45 = 0.55 * avgVolumeif(Volume <= avgVol45) thendrawtext("▾",barindex,avgVolume, dialog,bold,20)coloured("LightCoral")endifreturn Volume Coloured(r,g,b) style(histogram) AS "Enhanced Volume Pocket Pivot",avgVolume coloured(255, 127, 39) style(line) as "50 Days Average Volume"12/20/2023 at 5:58 PM #225553Immagino tu desideri che siano segnalati i giorni in cui vengono visualizzati gli asterischi:
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182//// Enhanced Volume Pocket Pivot// Version 1.0// Author : TeamOne (https://www.prorealcode.com/user/teamone/)// Date : 2022/04/02//// This indicator identifies different interesting configurations// on volumes and especially on the appearance of "pocket pivots".// As describe by Gil Morales et Chris Kacher in their book "Trade like an O'Neil disciple" ,// a "pocket pivot" volume is an up day volume that is greater than the highest down volume day of the last 10 down days.//// Also this indicator try to identify "distribution day" and can help to regnonize instutionnal selling.// O’Neil referred to these days as " heavy volume, without further price progress higher. ".// I use these criterias to identify them : price drop greater than 0.2 % on heavier volume than the prior day// Clusters are more relevant than a ditribution day here and there.// When the bar count reaches 5-7 be on guard. Note that price can continue uptrends even with an elevated distribution bar counts.// Also closing range matters// Distribution days are erased when price index rises 5% from a ditribution day// or after 25 trading days have passed.////// Disclaimer : this indicator is not a buying signal, it simply gives a sense of institutional buying or selling pressure and must imperatively be// analyzed according to many others parameters (trend, price, stage, stock fundamentals...)//// Here is the meaning of the different graphical elements rendered by this indicator :// Green bars : 10 day pocket pivots// Blue bars : 5 day pocket pivots// Dark gray bars : dow volume days bars// Light gray bars : up volume days bars// Red bars : distribution bars// Orange line : average volume over the last 50 days.// Orange Down Arrows on average line : dry volume < 45 % of the 50 days average volume////avgVolume = Average[50](Volume)// is current bar a 10 days pocket pivot ?isPP10 = Close > Close[1] AND Volume > ABS(Close[1] < Close[2]) * Volume[1] AND Volume > ABS(Close[2] < Close[3]) * Volume[2] AND Volume > ABS(Close[3] < Close[4]) * Volume[3] AND Volume > ABS(Close[4] < Close[5]) * Volume[4] AND Volume > ABS(Close[5] < Close[6]) * Volume[5] AND Volume > ABS(Close[6] < Close[7]) * Volume[6] AND Volume > ABS(Close[7] < Close[8]) * Volume[7] AND Volume > ABS(Close[8] < Close[9]) * Volume[8] AND Volume > ABS(Close[9] < Close[10]) * Volume[9] AND Volume > ABS(Close[10] < Close[11]) * Volume[10]// is current day price above last day price ?isAnUpDay = Close > Close[1]// is current day a distribution day ?closeLocationValue = ((Close-Low)-(High-Close))/(High-Low)//A value of zero would mean that the price closed halfway between the high and low of the range.// A value of +1 means the close is equal to the high of the range.// A value of -1 means the close is equal to the low of the range.evolClose = ((Close-Close[1])/Close[1])isDistributionDay = Volume > avgVolume and evolClose<-0.002 and closeLocationValue<0// colors definitionr=0g=0b=0// 10 day pocket pivot bar : green barif isPP10 thenr=0g=255b=0// distribution day bar : red barelsif isDistributionDay thenr = 206g=83b=86// up volume day bar : light gray barelsif isAnUpDay thenr=192g=192b=192// donw volume day bar : dark gray barelser=130g=130b=130endif// Dry volume : display down arrow in case of volume less than 45 % of the 50 days average volumeavgVol45 = 0.55 * avgVolumeSegnale = 0if(Volume <= avgVol45) then//drawtext("▾",barindex,avgVolume, dialog,bold,20)coloured("LightCoral")Segnale = 1endifif r and g and b thenendif//return Volume Coloured(r,g,b) style(histogram) AS "Enhanced Volume Pocket Pivot",avgVolume coloured(255, 127, 39) style(line) as "50 Days Average Volume"SCREENER[Segnale]12/21/2023 at 12:58 PM #225573 -
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
Find exclusive trading pro-tools on
Similar topics: