Hi guys, I got a script but it is not exactly working to the tee as I figured there are some tickers that it did not pick up like SBUX where it had 3 rising weeks of both volume and price even though I set the % parameters to 0.5% from initial 2%
My script is as below, can someone enlighten me how could I modify it to pick up tickers accurately?
input price = close;
input length = 3;
input vol = volume;
def twoPercentGainPrice = 100 * (price / price[1] - 1) >= 2.0;
def threeBarsOfGainPrice = twoPercentGainPrice[2] and twoPercentGainPrice[1] and twoPercentGainPrice;
def twoPercentGainVol = 100 * (vol / vol[1] - 1) >= 2.0;
def threeBarsOfGainVol = twoPercentGainVol[2] and twoPercentGainVol[1] and twoPercentGainVol;
plot scan = threeBarsOfGainPrice and threeBarsofGainVol;
My script is as below, can someone enlighten me how could I modify it to pick up tickers accurately?
input price = close;
input length = 3;
input vol = volume;
def twoPercentGainPrice = 100 * (price / price[1] - 1) >= 2.0;
def threeBarsOfGainPrice = twoPercentGainPrice[2] and twoPercentGainPrice[1] and twoPercentGainPrice;
def twoPercentGainVol = 100 * (vol / vol[1] - 1) >= 2.0;
def threeBarsOfGainVol = twoPercentGainVol[2] and twoPercentGainVol[1] and twoPercentGainVol;
plot scan = threeBarsOfGainPrice and threeBarsofGainVol;