All of us “hear” what one of the best hours are to commerce however how can we validate one of the best hours to commerce? There are scalpers and there are swing merchants. Scalpers might need to goal completely different market circumstances, maybe intervals the place candles are lengthy sufficient to revenue and swing merchants / intraday merchants might need to determine one of the best hour for lengthy maintain entries.
As coders and analysts, we should be capable to show what one of the best hour is to commerce primarily based on present market circumstances, calculated over a time period.
Right here is my methods to investigate worth information for an instrument.
Indicators /Abilities required:
- ATR
- ZigZag
- Excel pivot tables
For scalpers, you may need to take note of the ATR script. The thought is for me, as a scalper, to focus on hours that provide the best buying and selling vary for my focused instrument.
For Swing/Intraday merchants you may need to take note of ZigZag. The thought is to focus on the hour that has the best ATR worth inside the swing low to swing excessive or vice versa, as a way to really feel snug staying within the positoin.
STEP 1
To determine one of the best hour to scalp I run the ATR Statistics.mq4 script on ANY time interval to assemble the next columns in a csv file, over a interval of N Bars for the next time intervals (M1,5,15,30,H1)
- Image
- ID
- Interval
- Time
- ATR
- Yr
- Month
- Hour
- Minute
- Day of week
- Day of Yr
- Pips
This script calculates the common buying and selling vary for each single bar. The thought is for me, as a scalper, to focus on hours that provide the best buying and selling vary for my focused instrument.
Open the spreadsheet and create a pivot desk on the values. See the connected Excel sheet. The fields in yellow had been derived from the exported information.
Step 3
Analyze the output and goal your technique.
Finish outcome will look one thing like
For scalpers, run the ZigZagStats.mq4 script. Repeat the identical course of above.