mastertrader Posted June 7, 2021 Report Share Posted June 7, 2021 I am trying to set up a scan defining if EMA 9 is less than / crossing Lower Kelt...similarly if EMA 9 is greater than / crosses the Lower Kelt and so on...How would I go about doing it? Appreciate a screenshot. Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted June 7, 2021 Report Share Posted June 7, 2021 if (EMA_Line(9) > KeltnerChannels_Top(20,10,1)) { SetColorAndShape("K.Top", PBShape.Default, 0xFF0AFF54); TriggerAlert("K.Top"); SetScanResult(@"K.Top"); return; } if (EMA_Line(9) < KeltnerChannels_Bottom(20,10,1)) { SetColorAndShape("K.Bottom", PBShape.Default, 0xFFFF4E4E); TriggerAlert("K.Bottom"); SetScanResult(@"K.Bottom"); return; } 1 Quote Link to comment Share on other sites More sharing options...
mastertrader Posted June 7, 2021 Author Report Share Posted June 7, 2021 Hi Jerry, Does the above needs to be configured in Switch To Advanced section? In the regular Scan/Paintbar Edit, I am not able manually add KeltnerChannels_Top(20,10,1) Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted June 7, 2021 Report Share Posted June 7, 2021 You add Keltner Channels. Then you click the "Edit Params" button to specify which parameters you want to assign to that indicator. "Any Params", if checked, will either set the default parameters for the indicator or take the existing indicator on the chart. Quote Link to comment Share on other sites More sharing options...
mastertrader Posted June 8, 2021 Author Report Share Posted June 8, 2021 Awesome. Tried that. However getting errors. Also, on Edit Params, I don't see an option to add, KeltnerChannels_Top(20,10,1), KelternerChannels_Middle(20,10,1), and KeltnerChannels_Bottom(20,10,1)? How would I enter this information into the scan? Appreciate it. Quote Link to comment Share on other sites More sharing options...
mastertrader Posted June 8, 2021 Author Report Share Posted June 8, 2021 Never mind. Figured it out -:)🙏 Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted June 8, 2021 Report Share Posted June 8, 2021 By the way you do not need to use advanced mode for the stuff I gave. Note that internally all simple mode gets converted to advanced anyway. And for each simple mode rule, we show the corresponding advanced text on the bottom. That is what I was copying 1 Quote Link to comment Share on other sites More sharing options...
mastertrader Posted June 8, 2021 Author Report Share Posted June 8, 2021 🙏 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.