coupster Posted April 15, 2021 Report Posted April 15, 2021 Hi, How do I create a scan that just alerts me when price is above the SMA50 and just 8% away from tagging it? The percentage part I believe requires me to enter the advance mode and I don't know C#. Using the rule editor is really easy with the drop downs but no % option - thanks for any help Quote
Mike Medved Posted April 15, 2021 Report Posted April 15, 2021 Make a rule-based scan for price above SMA50. Then convert it to advanced. That will generate the C# code. Then you modify it to your taste. I am not sure what you mean by "8% away from tagging it". 8% is huge in stock-price terms 1 Quote
Jerry Medved Posted April 15, 2021 Report Posted April 15, 2021 btw, lets say after you convert, result is something like this: public void MainCalculation() { if (Close > EMA_Line) { SetColorAndShape("NearEMA", PBShape.Default, 0xFFFF4EBB); TriggerAlert("NearEMA"); SetScanResult(@"NearEMA"); } } to make it so it alerts when the price is 8% below the EMA, you just change the IF statement to be if (Close > EMA_Line * 0.92) 1 Quote
coupster Posted April 15, 2021 Author Report Posted April 15, 2021 The last line of the post above is the golden nugget I couldn't figure out. Thank you guys for the quick help, you guys are the best! Quote
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.