#### samiranadhikari

##### Member

Last edited by a moderator:

Last edited by a moderator:

Thanks, are you able to share this scan?

https://tos.mx/qksBhga

What is the Zscorewatch if I may ask and how do you play the data from the scan.

Not asking for financial advice.

2. Unusual volume indicates current interest at peak

3. Sorting on Zscore or DMI oscillator --> intraday strength

4. Sustained momentum --> Daily and weekly RSI >60

5. Green on E1, E5, E15, E30, E4h --> strength

6. Chart Observations -> REGN is a good candidate at this time

7. Only possibility, it can change any time

https://usethinkscript.com/threads/...wave-platform-to-thinkorswim.1232/#post-24521

I use 5 days for 5 min chart and 1 year for daily chart...trial and error method!

def a = Average(close, 8);

def d = close - a;

plot p = (d / close) * 100;

AddLabel(yes, p, color.BLACK);

AssignBackgroundColor(if p == 0

then Color.LIGHT_GRAY

else if p < 0

then Color.RED

else color.GREEN);

I have posted the workspace (https://tos.mx/aIZeT6k). It has all the information.

R

How do you use the above scan query??

Thanks for sharing, workspace does not import to be able to use, If possible can you provide code for Zscorewatch as you provided for MAD

input price = close;

input length = 20;

input ZavgLength = 20;

#Initialize values

def oneSD = stdev(price,length);

def avgClose = simpleMovingAvg(price,length);

def ofoneSD = oneSD*price[1];

def Zscorevalue = ((price-avgClose)/oneSD);

def avgZv = average(Zscorevalue,20);

#Compute and plot Z-Score

plot Zscore = ((price-avgClose)/oneSD);

Zscore.setPaintingStrategy(paintingStrategy.HISTOGRAM);

Zscore.setLineWeight(2);

Zscore.assignValueColor(if Zscore > 0 then color.green else color.red);

plot avgZscore = average(Zscorevalue,ZavgLength);

avgZscore.setPaintingStrategy(paintingStrategy.LINE);

#This is an optional plot that will display the momentum of the Z-Score average

#plot momZAvg = (avgZv-avgZv[5]);

#Plot zero line and extreme bands

plot zero = 0;

plot two = 2;

plot negtwo = -2;

zero.setDefaultColor(color.black);

input maLengthTwo = 21;

input maTypeOne = AverageType.EXPONENTIAL;

input maTypeTwo = AverageType.EXPONENTIAL;

input priceOne = close;

input priceTwo = close;

input barsPerDay = 3;

def maOne = MovingAverage(maTypeOne, priceOne, maLengthOne);

def maTwo = MovingAverage(maTypeTwo, priceTwo, maLengthTwo);

def crossAbove = maOne > maTwo and maOne[1] < maTwo[1];

def crossBelow = maOne < maTwo and maOne[1] > maTwo[1];

rec trackCrossAbove = if crossAbove then 1 else if maOne > maTwo then trackCrossAbove[1] + 1 else 0;

rec trackCrossBelow = if crossBelow then -1 else if maOne < maTwo then trackCrossBelow[1] - 1 else 0;

plot data = if trackCrossAbove > AbsValue(trackCrossBelow) then Round(trackCrossAbove / barsPerDay, 1) else Round(trackCrossBelow, barsPerDay);

data.AssignValueColor(if data > 0 or data < 0 then Color.BLACK else Color.CURRENT);

AssignBackgroundColor(if data > 0 then Color.GREEN else if data < 0 then Color.RED else Color.CURRENT);

Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|

V | How do I make this in my scan? :) | Questions | 0 | |

E | Scan for with filter for "Number of trades" | Questions | 2 | |

T | Scan for cross of StdDevChannel upper or lower line | Questions | 1 | |

N | Scan for Candle which closes at the top 10% of its range | Questions | 2 | |

1 | Symbol link for Scan List? | Questions | 2 |