Menu
Brokers
MT4 Forex Brokers
MT5 Forex brokers
PayPal Brokers
Skrill Brokers
Oil Trading Brokers
Gold Trading Brokers
Web Browser Platform
Brokers with CFD Trading
ECN Brokers
Bitcoin FX Brokers
PAMM Forex Brokers
With Cent Accounts
With High Leverage
Cryptocurrency Brokers
Forums
All threads
New threads
New posts
Trending
Search forums
What's new
New threads
New posts
Latest activity
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Reply to thread
Forums
Trading Platforms
MetaTrader Expert Advisors
EA Calculates at different time frames simultaneously- How to?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
[QUOTE="TradeChaser, post: 210697, member: 66787"] Hello, To anyone who can assist, I am trying to understand how I can run parts of my dashboard/EA based on the timeframe that I am trying to analyze. For example, I would like my EA to rest on the M15 chart, but calculate H1/H4/D1 data - not on every new M15 bar, but on the bars that correlate. Off the start, I believe I can use some thing like: if(TimeHour(TimeCurrent()) == 01 && TimeMinute(TimeCurrent()) == 00) Well this would allow me to commence a script or some code at the top of the hour. Major drawbacks: [LIST=1] [*]the obvious bulky code that could ensue to do this for multiple timeframes [*]The bigger one - if the code concludes before minute is able to increment to ':01' will it run again? [/LIST] I suppose another idea is iBarShift to analyze higher timeframes. My biggest worry here is that if I am not mistaken, iBarShift can repaint. [/QUOTE]
Insert quotes…
Verification
Post reply
Top
Bottom
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…