Hi,
I am looking to create a scanner to determine the stocks which will have a Tight CPR and hence possibility of stronger momentum for moving up/down the next day. Also, I am looking for a similar scanner that could give the same outcome but in a weekly timeframe.
I have gone through the Frank Ochoa book and would like to give it a try. But I would like to bit smart about it and not go hunting blind
Here's a very basic code I have written till now for the daily timeframe:
how do i add this to be able to scan the stocks in tos scanner?
Note to Admins: Apologies if this question has been asked before. If that be the case, please point me to the link of those resources.
I am looking to create a scanner to determine the stocks which will have a Tight CPR and hence possibility of stronger momentum for moving up/down the next day. Also, I am looking for a similar scanner that could give the same outcome but in a weekly timeframe.
I have gone through the Frank Ochoa book and would like to give it a try. But I would like to bit smart about it and not go hunting blind
Here's a very basic code I have written till now for the daily timeframe:
Code:
#Tight CPR
#ncn37
def agg = AggregationPeriod.DAY;
def hi = high(period =agg)[1];
def lo = low(period =agg)[1];
def cl = close(period =agg)[1];
def Pivot = (hi + cl + lo)/3;
def BC = (hi + lo)/2;
def TC = 2*Pivot - BC;
def R1 = 2*Pivot - lo;
def R2 = Pivot + (hi - lo);
def R3 = R1 + (hi - lo);
def R4 = R3 + (R2 - R1);
def S1 = 2*Pivot - hi;
def S2 = Pivot - (hi - lo);
def S3 = S1 - (hi - lo);
def S4 = S3 - (S1 - S2);
plot H = high(period = agg);
plot C = close(period = agg);
plot L = low(period = agg);
plot PP = Pivot;
plot Pupp = TC;
plot Pdn = BC;
plot sup1 = S1;
plot sup2 = S2;
plot sup3 = S3;
plot sup4 = S4;
plot res1 = R1;
plot res2 = R2;
plot res3 = R3;
plot res4 = R4;
how do i add this to be able to scan the stocks in tos scanner?
Note to Admins: Apologies if this question has been asked before. If that be the case, please point me to the link of those resources.
Last edited by a moderator: