Hello,
I am using Stock Hacker (Scan function in TOS) to find stocks from my watchlist when the price comes in between the lower bands of LinearRegression Channel 50 and 100 bands (the standard function from TOS). On the chart this works fine, but the scan for 5 min aggregation does not produce accurate results. Any idea how to fix the scanning issue?
Thanks,
Shai
Shared Link - https://tos.mx/!vnnZ172S
Code for the scan:
declare lower;
def lookback = 1;
plot NearBottomOfChannel = LinearRegCh50().LowerLR > close or LinearRegCh50().LowerLR > low within lookback bars;
NearBottomOfChannel.SetDefaultColor(Color.GREEN);
AddLabel(yes,"BofCh: " + NearBottomofChannel, color.DARK_GREEN);
When you plot this on the 5 min chart it works fine. In scan it won't pick all stocks from the watchlist that match this condition as i can see this visually in the graph e.g. doesn't pick up CRM or COIN
I am using Stock Hacker (Scan function in TOS) to find stocks from my watchlist when the price comes in between the lower bands of LinearRegression Channel 50 and 100 bands (the standard function from TOS). On the chart this works fine, but the scan for 5 min aggregation does not produce accurate results. Any idea how to fix the scanning issue?
Thanks,
Shai
Shared Link - https://tos.mx/!vnnZ172S
Code for the scan:
declare lower;
def lookback = 1;
plot NearBottomOfChannel = LinearRegCh50().LowerLR > close or LinearRegCh50().LowerLR > low within lookback bars;
NearBottomOfChannel.SetDefaultColor(Color.GREEN);
AddLabel(yes,"BofCh: " + NearBottomofChannel, color.DARK_GREEN);
When you plot this on the 5 min chart it works fine. In scan it won't pick all stocks from the watchlist that match this condition as i can see this visually in the graph e.g. doesn't pick up CRM or COIN