My intention of the code below is to display 3 periods of moving average lines for the range of bars specified by chart window width. Although first period of line is drawn properly, succeeding 2 period lines fail to draw due to CopyBuffer error
While converting my MT4 indicator code to MT5, I came across a strange issue where the arrows disappeared when a new tick came in. Could anyone help with this? When I hit [z] key to activate indicator display, peak high and low arrows appear on
I drew a long transparent horizontal band with canvas from the left to the right end of chart. Then I created a horizontal line object. When the line is outside the canvas band, I can get line handle with either CHRARTEVENT_OBJECT_CLICK
MT4 has a total 32 step of chart zoom levels, but we usually can change only 6 zoom levels( 1 > 2 > 4 > 8 > 16 > 32) from chart menu. I tried the script below, but only the above 6 zoom levels are shown
I've been looking for the answer to the captioned question, but been unable to find it so far. CHARTEVENT_KEYDOWN can only pass code of a(one) pressed key by lparam. Thus it can not tell "shift + z" key input from "z" key input. Is there any way to