Help requested - Created script to compare gains/losses in US session with premarket vs overnight session activity
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
Hello all, I just created this script to compare overnight and premarket activity over a certain number of days, and tell me the percentages when:
1. Premarket high breaks overnight high
- does the US session break the premarket high and/or the overnight highs? if so, by how much %?
- does the US session break the premarket low and/or the overnight lows? if so, by how much %?
2. Premarket low breaks overnight low
- same as above
Problem is, I am getting strange results from this - the data for my highs and lows in each session do not match what I am seeing on my chart. I am pretty sure I've got my timeframes correct, because I print those values as the script runs. But I am seeing serious discrepancies and can't seem to find my issue. Admittedly I am new to MQL, but I am a software dev by trade and have written a few advisors and indicators already. I'm thinking it is some thing about how I am handling the arrays of data, but just can't spot it.