Volume above 500,000 twice in one day .. help w/ scan

XeoNoX

Well-known member
VIP
can someone help with scan:

Volume above 500,000 at least THREE times in one day (intraday period)

i can do:

volume > 500000; but dont know how to make it scan for " atleast 3 times in one day"

thanks.
 
Last edited:

XeoNoX

Well-known member
VIP
i dont know how to write the scan to check "if is true 3 times in one day" ... within x bar value will check the previous day's bars as well which i dont want.
 
Last edited:

rad14733

Well-known member
VIP
Looking for the same pattern three times will be difficult at best if you're expecting a scan to produce that result... The TOS scanner has some limitations that contribute to the difficulty...
 

XeoNoX

Well-known member
VIP
i know it can be done, using time from beginning and time from end and then set to something along the lines of:

if volume from beginning of time till end of time is over 500000 then 1x.
if from beginning of time to end of time 1x then bar 1x, then if from bar 1x to end of time 1x is true then 2x, if from bar 2x to end of time 1x is true then 3x.
if 3x then TRUE

something like that.

anyone give it a shot?
 

XeoNoX

Well-known member
VIP
Just figuring I'd update this, thanks to this I learned how to count with thinkscript.

Volume above 500,000 ATLEAST twice in one day

Code:
declare lower;
# ( CUMULATIVE ) COUNT OF THE TOTAL NUMBER TIMES THE SPECIFIED VOLUME GREATER THAN 500,000
# ON THE THE CURRENT DAYS ( TODAYS ) CHART
# By XeoNoX via Usethinkscript.com
def Active = GetDay() == GetLastDay(); #Today
def var = volume>500000;
def cumulative = if Active and !Active[1] then var else if Active then cumulative[1] + var else cumulative[1];
plot scan  = cumulative>=2;
AddLabel (yes, "COUNT " +  (scan), color.dark_green  );
 

Similar threads

Top