How to find two candlesticks from two different timeframes with same high and open (upper wick) - page 2
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I don't see any idea in this. Also I don't see a nice way to SHOW the match found. Therefore, I leave the discussion.
The idea is still being developed and manually searching through timeframes for the match makes it extremely difficult to find. That's why I'm working on this. With this I'll be able to quickly test refine the idea and make the necessary changes.
As I said in an earlier comment, there is definitely no elegant way to draw the match on the chart but using a rectangle should do. As this is still work in progress, it is likely that the way to display the final result would follow naturally.
I have been learning MQL5, and I want to use this also as an opportunity to learn more as I work on a strategy. Generally, searching through an array of lower timeframes for a match has been an issue for me. I believe the solution to this would help anyone on the forum having similar issues.
I don't fully understand how I would piece the M1 candles together to get the highs and opens of higher timeframe candles. May I please ask for an example on this?
I don't fully understand how I would piece the M1 candles together to get the highs and opens of higher timeframe candles. May I please ask for an example on this?
Easy.
M20 is composed from the following infos: OHLC
When adding 20 M1 candles to one M20 candle, you take the open of the first M1 and use it as Open for M20.
Then you search the set of M1 candles for the lowest low. This is your M20 low.
You do the same for high.
The close value oof the last M1 candle from this series is your close of the M20 candle.
This can be done to achieve any higher timeframe.
M11, M14.... whatever you take as your set of M1 candles.
Got it?
“Doesn't work” is meaningless — just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires — meaningless.
How To Ask Questions The Smart Way. 2004
When asking about code
Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your problem.
No free help 2017.04.21