- I need to find out what i am missing here. Thanks for the help
- I need to fix this. this sends screenshot of all open charts in that account, i want to send only one chart which is chart open, thanks for
- EA to take screenshot of chart when trade is opened
It doesn't take screenshots of all open charts in the account.
Find the chartID you want to take a screenshot from and use that ID in the call.

- www.mql5.com
if (TimeCurrent() >= lastscreenshotsend + 21600 ) //if (lastscreenshotsend + 3600 != Time[0] ) { photosend == 0; string token = "1454697537:AAG7f8tMvGXSh9G-dmTIZCPhMeB_jBQSwsQ"; SendScreenShot(-1001331438105,"Contact : Telegram @vickyjackakash"+ "\n" + "Deposit : $ "+DoubleToString(openingdeposit,2)+ "\n" + "Last Week Profit : "+DoubleToStr(AccountLastWeekProfit()*100/Deposit,2)+" % - $ "+DoubleToString(AccountLastWeekProfit(),2)+ "\n" + "This Week Profit : "+DoubleToString(Perc,2)+" % - $ "+ DoubleToString(AccountWeekProfit(),2)+ "\n" + //"Balance : $ "+DoubleToString(AccountBalance(),2)+ "\n" + "Account Number: "+AccountNumber()+ "\n" + "Account Name: "+AccountName()+ "\n" +AccountServer()+ "\n" +WindowExpertName()+ "\n" +"Time Frame ",PERIOD_M15,1366,768,true,"1454697537:AAG7f8tMvGXSh9G-dmTIZCPhMeB_jBQSwsQ"); //ObjectSetText("Vendokho51ia","Last Week Profit - "+DoubleToStr(AccountLastWeekProfit()*100/Deposit,2)+ " % - $ "+ DoubleToString(AccountLastWeekProfit(),2),11,"Rockwell",clrLime); // ObjectSetText("Vendokho51sa","Earned So Far this Week - "+DoubleToString(Perc,2)+" % - $ "+ DoubleToString(AccountWeekProfit(),2),11,"Rockwell",clrYellow); //SendScreenShot(618256809,Symbol(), PERIOD_M15,1366,768,TRUE,token); //1001331438105 lastscreenshotsend = TimeCurrent(); }
It doesn't take screenshots of all open charts in the account.
Find the chartID you want to take a screenshot from and use that ID in the call.
int SendScreenShot(const long _chat_id, const string _symbol, const ENUM_TIMEFRAMES _period, int x_axis, int y_axis, bool current_chart, string token)
Here see the parameters the second one should be Symbol() the third PERIOD_CURRENT.
But when i look at your call its a string with
"Contact : Telegram @vickyjackakash"
It doesn't make any sense.
SendScreenShot(618256809,Symbol(), PERIOD_M15,1366,768,TRUE,token);Marco vd Heijden:
Here see the parameters the second one should be Symbol() the third PERIOD_CURRENT.
But when i look at your call its a string with
It doesn't make any sense.

- www.mql5.com
Maybe you can try to start with SendPhoto() in stead of SendScreenshot().
You can make a screenshot of the chart you desire, then save it as a file, and then send that file as a photo to your channel.
Maybe you can try to start with SendPhoto() in stead of SendScreenshot().
You can make a screenshot of the chart you desire, then save it as a file, and then send that file as a photo to your channel.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use