♥ 0 |
Hello Peter, Can you convert this study for me to a scan? input SMAPeriod1 = 20; plot fastema = ExpAverage(price, SMAPeriod1); #Plot arrows #Trigger alerts
Marked as spam
|
Private answer
Corrected the question title from "Convert study to a scan" to "Scan for 20 EMA crossing 50 SMA". The title of the question should always describe the context of your request. "converting a study to a scan" could describe the vast majority of posts in the forum and is therefore far to vague to be useful. Moved this question out of the "Frequently Asked Questions" topic and into the "Stock Scanners" topic. The questions should be posted in the topic that aligns with the requested solution. There is no need whatsoever to convert your code to a scan. This scan already exists as a built-in scan that comes with Thinkorswim. The name of the scan filter is "MovingAvgCrossover". Screenshot below shows this scan filter applied to a scan and setup to match the code you provided. Based on your request, I highly recommend you take the time to learn how to use the scan tools available on Thinkorswim. There is whole lot more available then you realize. Converting a study to a scan or writing custom code is rarely needed, once you learn how to use the tools. The following videos will get you up to speed. https://www.hahn-tech.com/thinkorswim-scans-beginner-to-advanced/ https://www.hahn-tech.com/thinkorswim-condition-wizard/
Marked as spam
|
Please log in to post questions.