Minor MQL Programming question

ForexNewbie51

Active Trader
Sep 22, 2011
31
5
44
I have this section of code in my EA which takes a screenshot when an order is opened

MQL4:
void BuySceenshot()
{
  if (!WindowScreenShot(Symbol() + BuyPicFileName+"_" +BuyShotsCounter+".gif", PicWidth, PicHeight))
  Print("WindowScreenShot() error - ");
  else
  BuyShotsCounter++;
}

It places a screenshot in: BrokerMT4\MQL4\Files\EURUSD_Buy_1.gif

I would like to have the screenshot located in a subdirectory of the Symbol e.g. EURUSD thus:

BrokerMT4\MQL4\Files\EURUSD\EURUSD_Buy_1.gif

Can anyone help to tell me what I need to do to make this modification? WOuld be gratefully accepted.

TIA
 
Last edited by a moderator: