tommyjames Posted December 9, 2021 Report Share Posted December 9, 2021 I have a scan looking for NR7s (narrowest range of the last 7 bars) on a 30 min chart. It doesn't work until there are at least seven 30 minute bars for the current day. How do I get it to look back past the current day so it will display results in the first hour of trading? Thanks Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted December 9, 2021 Report Share Posted December 9, 2021 Tommy, can you send me the scan in question? Quote Link to comment Share on other sites More sharing options...
tommyjames Posted December 9, 2021 Author Report Share Posted December 9, 2021 (edited) Edited December 9, 2021 by tommyjames Quote Link to comment Share on other sites More sharing options...
tommyjames Posted December 9, 2021 Author Report Share Posted December 9, 2021 Do you have to do something special to post code? Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted December 10, 2021 Report Share Posted December 10, 2021 Not sure Just export it in MT and send me the file. support@medvedtrader.com Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted December 12, 2021 Report Share Posted December 12, 2021 What you sent looks ok to me. Look at the chart - it detects at start of day as well. Quote Link to comment Share on other sites More sharing options...
tommyjames Posted December 13, 2021 Author Report Share Posted December 13, 2021 It will only detect it during the beginning of the day if you select "Show Extended Hours". I'm guessing it's looking for 7 bars during the current day for some reason. It does this on a chart and in a scan. Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted December 13, 2021 Report Share Posted December 13, 2021 Well - Current Day and During Extended Hours is very different. Just like on the chart. I am guessing that when the new day starts, and you have it set to During Extended Hours, then the internal chart is recalculated not to include premarket and your logic does not find the condition you want. Quote Link to comment Share on other sites More sharing options...
tommyjames Posted December 13, 2021 Author Report Share Posted December 13, 2021 I have the default set to "During Extended Hours". I only changed it to "Current Day" to see if it would work. I don't want it to look at the data from extended hours if possible but that's the only way it will work right now. It seems like by setting it to "Current Day" it then has enough bars from pre-market to do the calculation. Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted December 13, 2021 Report Share Posted December 13, 2021 If you don't want it to have data from premarket, just set it to Never. If you set it to Current Day, then it will always have data from Premarket (for Current Day). To check if you SHOULD be getting the scan that you want, place the scan as a paintbar on a chart, then set its Extended Hours to be same as on the scan and see if anything gets hit. Quote Link to comment Share on other sites More sharing options...
tommyjames Posted December 13, 2021 Author Report Share Posted December 13, 2021 I have the default set to "During Extended Hours" because I want to see the pre-market data during pre-market, then at 9:30 it doesn't show the pre-market data anymore, which is how I want it. I don't run a scan until 10am. So when I run a scan it shouldn't be pulling any data from pre-market (which it isn't). Now between 10am to 11:30am when I am running this scan on a 30 minute chart it doesn't find any NR7s unless I change Extended Hrs: to "Current Day" (which I don't want). If I put it on the chart as a paintbar it does not show NR7s during the first few hours of the day, but at the end of the day it will then show the ones that it was supposed to be showing from the morning. Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted December 13, 2021 Report Share Posted December 13, 2021 Ok. Are you SURE it is NOT catching NR7s that it should catch in the morning while NOT showing premarket data? 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.