MQL4:
//---- input parameters extern int HGrid.Weeks=10; // Period over which to calc High/Low of gird extern int HGrid.Pips=20; // Size of grid in Pips extern color HLine=DimGray; // Color of grid extern color HLine2=DarkGreen; // Every 100 pips, change grid color to this. extern int GridTime=15; // Number of periods (days or weeks) to draw time grid extern int TimeGrid=PERIOD_H4; // Grid period in minutes extern int ColorHour=16; // For hour grids, draw color line at this hour (broker time) extern color TimeLine=DimGray; // Color of grid extern color TimeLine2=DarkGreen; // Color of special bars // Recommends settings: // 1 minute - HGrid.Pips=10, TimeGrid = 10 // 5, 15 minutes - HGrid.Pips=20, TimeGrid= PERIOD_H1 (60) // 30, 60 minutes - HGrid.Pips=20, TimeGrid = PERIOD_H4 (240) or 2 hours (120) // 4 hour - HGrid.Pips=50, TimeGrid = PERIOD_D1 (1440) or 12 hours (720) // 1 day - HGrid.Pips=50, TimeGrid = PERIOD_W1 (10800).nd numbers and vertical lines
Attachments
Last edited by a moderator: