Download MetaTrader 5

How to take screenshot of previous day/week chart?

To add comments, please log in or register
Jun
16
Jun  
What I'm trying to do is go through my closed trades and see what price action did 20-30 candlesticks afterwards. I want to move the chart window back to that point in time and take a screenshot of it. Does mq4 have some type of scroll function? The alternative I have right now is to run an EA waiting for the 20-30 candlesticks to pass after the trade close and then take a screenshot, but the downfall of this method is that I can't run this retroactively.
Fred
4
Fred  

Why not add code to your EA to take a screen shot automatically?

Check out WindowScreenShot()

Jun
16
Jun  
Because that would require my computer to be on during the few hours after I close my trade. I'm already using that function for open / close screenshots, now I need something to do 30 candlesticks after trade. So next day after trade, I run the script, it finds the close of my last trade, then moves chart over 30 candlesticks and bam screenshot. Windowscreenshot only takes screenshot of current window, this could work if I couldsomehow SHIFT the chart back in time to a particular point. What I'm wondeirng is, is this possible?
Simon Gniadkowski
Moderator
18025
Simon Gniadkowski  
juntao65:
Because that would require my computer to be on during the few hours after I close my trade. I'm already using that function for open / close screenshots, now I need something to do 30 candlesticks after trade. So next day after trade, I run the script, it finds the close of my last trade, then moves chart over 30 candlesticks and bam screenshot. Windowscreenshot only takes screenshot of current window,
No, that is not correct, did you read the documentation ? WindowScreenShot() what do you think the parameter start_bar is for ?
To add comments, please log in or register