| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Need help Calculating total Bars between 2 Time points! https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4377 |
Page 1 of 1 |
| Author: | denialyg [ Sat Aug 08, 2015 5:41 am ] |
| Post subject: | Need help Calculating total Bars between 2 Time points! |
Hi all, Ive been stuck trying to figure out how to solve this. Could some kind soul help me out or point in me the right direction please. Basically Ive got 2 time points, a starting and ending time. I want to get the total number of bars shown on chart between these 2 points. Ive tried using (EndTimeRange -StartTimeRange * 60 * Period() ) but this included weekends into the total number. Is the below code correct or is that a much simplier way to handle this? Code: Select all Much appreciated! |
|
| Author: | SteveHopwood [ Sat Aug 08, 2015 2:06 pm ] |
| Post subject: | Need help Calculating total Bars between 2 Time points! |
Code: Select all |
|
| Author: | denialyg [ Mon Aug 10, 2015 1:50 am ] |
| Post subject: | Need help Calculating total Bars between 2 Time points! |
Thanks Steve, Glad to know I was on the right track. I've been learning through referencing other coders codes and lots of trial and error, was the easiest way to pick up and learn mql4 for a person with 0 background in programming. Thanks again! |
|
| All times are UTC | Page 1 of 1 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|