and60rm Posted October 26, 2021 Report Share Posted October 26, 2021 I want to build a breakout scanner that reports stocks whose opening price is higher than the highest price of the last x bars (with x variable entering). I would like to add this indication to the example On growing volumes. Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted October 26, 2021 Report Share Posted October 26, 2021 You would run a historical chart scan, and use DefinePaintbarParameter("Period", "Period", true, 1, 100, 1, 5); var num = Convert.ToInt32(GetPaintbarParameter("Period")); if (Open > Max(1, num, High)) { SetScanResult("O>HH"); } Quote Link to comment Share on other sites More sharing options...
and60rm Posted October 26, 2021 Author Report Share Posted October 26, 2021 (edited) Thx for the suggestion. I try to code a beakout intraday screener, to identify stocks that rocks at 15.30. Would you suggest something to try this strategy? Edited October 26, 2021 by and60rm Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted October 26, 2021 Report Share Posted October 26, 2021 Not sure I really cannot suggest the algorithms, but if you can think of a condition I can help you code it. Quote Link to comment Share on other sites More sharing options...
and60rm Posted October 26, 2021 Author Report Share Posted October 26, 2021 I think to something like this (scanner intraday) condition 1: last close > sma200 (the stock is in long uptrend) condition 2: open price > average(highest high of last X bars) condition 3: yield between open and close(1) >+5% condition 4: volume > average volume last x periods condition 5 :%R>50 Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted October 27, 2021 Report Share Posted October 27, 2021 I am not sure what "yield between open and close[1]" is... But in general yes all that stuff can be done. 1. For SMA and other indicators - just plug them right into the scan/paintbar. 2. For averages - look up StateFIFOQueue and examples using it. Quote Link to comment Share on other sites More sharing options...
and60rm Posted October 27, 2021 Author Report Share Posted October 27, 2021 Thx! I have noticed for many US stocks growth in the premarket and an explosion in prices in the first phase of trading. the goal is to capture this explosiveness, perhaps possible with Trade Ideas, with the breakout scanner. even if we don't find a way to capture the first trend, we could enter on possible retracements of the main trend. mine was just a hypothesis. your assistance is invaluable. and I thank you. where can I get a list of all the functions and syntax of the language? Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted October 28, 2021 Report Share Posted October 28, 2021 The code syntax is C# (with a couple of enhancements, but 99% C#). The reference - press F1 in MT or go here: https://www.medvedtrader.com/trader/WebHelp/advanced_-_all_available_funct.htm Quote Link to comment Share on other sites More sharing options...
and60rm Posted October 28, 2021 Author Report Share Posted October 28, 2021 1 hour ago, Mike Medved said: The code syntax is C# (with a couple of enhancements, but 99% C#). The reference - press F1 in MT or go here: https://www.medvedtrader.com/trader/WebHelp/advanced_-_all_available_funct.htm thx for info 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.