Stochastic Crossover Screener
Forums › ProRealTime English forum › ProScreener support › Stochastic Crossover Screener
- This topic has 8 replies, 2 voices, and was last updated 6 years ago by rhuw.
-
-
04/07/2018 at 9:19 AM #6747904/07/2018 at 10:08 AM #67480
This should work, le me know
123456789101112131415161718// Constant definitions// OverBought/OverSold tresholdsONCE StocOB = 80 //80 - 20ONCE StocOS = 100 - StocOB// Stochastic parametersONCE Stoc1 = 5 //5ONCE Stoc2 = 3 //3ONCE Stoc3 = 3 //3 (average for the D line)StocK = Stochastic[Stoc1,Stoc2](close) //K lineStocD = Average[Stoc3](StocK) //D lineCrossOB = StocK CROSSES UNDER StocD AND StocK > StocOB //Crossing occurred while K line is still OBCrossOS = StocK CROSSES OVER StocD AND StocK < StocOS //Crossing occurred while K line is still OSSCREENER[CrossOB OR (CrossOS * 2)] //1=crossing while OB, 2=crossing while OSRoberto
1 user thanked author for this post.
04/07/2018 at 10:11 AM #67481Lines 15-16 may make the screener return different occurrences if you require line K not to be OS/OB (still line D will), by replacing them with the following two:
12CrossOB = StocK CROSSES UNDER StocD AND StocD > StocOB //Crossing occurred while D line is still OBCrossOS = StocK CROSSES OVER StocD AND StocD < StocOS //Crossing occurred while D line is still OSYou may change all constants tu best suit your needs.
1 user thanked author for this post.
04/07/2018 at 10:28 AM #67482Lines 17-18 shold be replaced by the following to show correct results:
12Result = CrossOB OR (CrossOS * 2)SCREENER[Result](Result AS "Cross") //1=crossing while OB, 2=crossing while OS04/07/2018 at 12:21 PM #6748504/07/2018 at 12:42 PM #67489You can Copy & Paste the following code to ProScreen or you may either import the attached file into ProScreener.
12345678910111213141516171819// Constant definitions// OverBought/OverSold tresholdsONCE StocOB = 80 //80 - 20ONCE StocOS = 100 - StocOB// Stochastic parametersONCE Stoc1 = 5 //5ONCE Stoc2 = 3 //3ONCE Stoc3 = 3 //3 (average for the D line)StocK = Stochastic[Stoc1,Stoc2](close) //K lineStocD = Average[Stoc3](StocK) //D lineCrossOB = StocK CROSSES UNDER StocD AND StocK > StocOB //Crossing occurred while K line is still OBCrossOS = StocK CROSSES OVER StocD AND StocK < StocOS //Crossing occurred while K line is still OSResult = CrossOB OR (CrossOS * 2)SCREENER[Result](Result AS "Cross") //1=crossing while OB, 2=crossing while OSThis is a link to help import code, of cource you’ll have import the screener to ProScreener, not ProOrder (for automated Strategies) or ProBuilder (for Indicators/Oscillators) https://www.prorealcode.com/import-export-prorealtime-code-platform/
I also attach 3 screenshots to help you import the .ITF file.
The last step step, not shown, is to select the file to import from the same folder where you saved it, usually the DOWNLOAD folder on Windows.
04/07/2018 at 10:18 PM #6752704/08/2018 at 9:01 AM #67531I regularly use a similar stochastic crossover, engulfing pattern detection and stochastic divergences.
04/12/2018 at 5:04 PM #68194 -
AuthorPosts
Find exclusive trading pro-tools on