zemuss Posted March 10, 2022 Report Share Posted March 10, 2022 I have been writing my own scanner and have a few questions. Main bias is based on 5 /8/ 13 ema on 5 or 15 min time frame where the scanner is running. However, what I want is to look at the 1 hour chart to find the direction based on two emas stacked in a direction. I dont know if the logic of the scanner can perform the validations because the scanner is running on the 15m TF but I need it to validate the 1 hour. Example: Scanner Runs on 15 tf Logic: IF Timeframe 60 min 50 EMA > 62 EMA then Bullish Tend { Do other logic here } Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted March 11, 2022 Report Share Posted March 11, 2022 you cannot reference different frequencies within 1 scan but what you are seemingly doing should work: 62 EMA on 60 min chart is about the same as 13 EMA on a 15 min chart, as long as you have the scan set to 15 min. If you have it set to 5 min, then you would have to multiply accordingly Quote Link to comment Share on other sites More sharing options...
zemuss Posted March 11, 2022 Author Report Share Posted March 11, 2022 Okay, is this something that could be enhanced? Would be nice if i could run one scan and specify a tf / frequency to check conditions. Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted March 11, 2022 Report Share Posted March 11, 2022 No, not something that can be done at this time Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted March 13, 2022 Report Share Posted March 13, 2022 zemuss, to add to Jerry's answer: the paintbar operates on the candles that are calculated either in the chart or inside the scan for that particular candle frequency. That dataset would have to be calculated twice or more and in case of paintbars would make no sense - because when you're operating on a 3 min candle and you check a 20 min candle data, how do you match the candles? Here is an exercise that can possibly be done to combine 5m and 15m candles in one scan though it is a bit complicated. 1. Make two portfolios. Identical. Same source. Run them. 2. Run a scan on one portfolio with 15m candle that calculates some value and then uses the SetInterVar function with whatever that value is. Or several values. 3. Run a different scan on the second portfolio on 5m candles, and use GetInterVar function to get the values from the 15m candle run to use. 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.