Convert image into base 64 format string for being read by a web-browser for mt5

MQL5 統合

指定

 
  //Takes screenshot
      string  imgname="image.png";
       bool first=ChartScreenShot(0,imgname,1920,1080);
       // write the initial html code
      int Report_File=FileOpen("report.html",FILE_WRITE|FILE_TXT,",");

      FileWrite(Report_File,"<!DOCTYPE html>");
   
      FileWrite(Report_File,"<html>");
      FileWrite(Report_File,"<body>");

       string timeString=TimeToString(TimeCurrent()|TIME_MINUTES);
       FileWrite(Report_File,"<center>Report generated at "+timeString+"</center>");
       FileWrite(Report_File,"</br>");
                                                        
     // file is referencing the location of the image  
     FileWrite(Report_File,"<center><a href="+imgname+" target=_blank>"+"<img src="+imgname +" alt=twx   width=1920 height=1080 class=aligncenter></a></center>"); 
     
      FileWrite(Report_File,"</br>");
      FileWrite(Report_File,"<br>");
      FileClose(Report_File); 


The code above
1)take a screenshot
2) Creates a text file with  .html extension (so its read by a web browser)  and writes html text inside it.
3) The Yellow highlighted text   uses href to reference and read the image  that was taken at (1). 

What I need you to do is to find a way to rather than reference the picture  using href and require the image to be present  ,to somehow convert the image to a base64 or some other  string format that can be read by the web-browser and convert it into an image without the need for the image to exist. 

In order to prove to me that you can actually do that  please send me an html file that displays an mt5 image.

 You can copy the above code in the init part of an EA/Script/Indicator and you will see it produce an html file with the chart image.


I have attached also the indicator




ファイル:

応答済み

1
開発者 1
評価
(87)
プロジェクト
134
14%
仲裁
41
22% / 29%
期限切れ
14
10%
2
開発者 2
評価
(10)
プロジェクト
10
0%
仲裁
1
0% / 0%
期限切れ
1
10%
類似した注文
I want to connect Python with MT5 for trading signal managing. Currently, this is solved by exporting the .csv file from Python and the MT5 EA reads it and trades based on it. After a while, MT5 does not allow me to import the .csv file from the MQL5/Files folder and the process stops. I have to restart it, so it's not stable. The data exchange sometimes stops after 4-5 hours or 30 minutes. Not so stable. I'm looking
Hello, I have an existing Expert Adviseo for Metatrader 5 that still contains a few errors. (The MQL5 code is present.) I would like to have these errors fixed. If necessary I would add a few more features to the EA
I need EA which can copy telegram signals to MT5 The EA should have the following 1. take profit 2. take loss 3. Break even 4. trailing stop 5. Stop trading if amount reaches 6. Accept buy stop , sell stop , sell limit and buy limit
I am looking for someone to help me to automate my trading from mt4/5 expert advisors and own trades to tradovate. My trades are generated by my expert in MT5, I want those trades copied to Tradovate's platform using their API to different accounts, that some programmers have suggested is a REST API and should be easily doable
I want to receive and automate trade signal on Metatrader from tradingview, but i do not have access to the indicator i am using presently now but i have an alternative indicator which i have it's source code and also works similar to it but needed to be included with this features (SL and TP logic, add code to calculate the stop-loss and take-profit levels) so it can provide me the signal i want on
I need to export from MT5 the live charts open data to excel. So the information that is on the Data Windows Must show in the excel (including the indicators value). ScreenShot of MT5 information I want: https://ibb.co/pKDxWcz So the information I want from all open tabs on the MT5
Dear Developer, I would like to hire your service for developing an algorithm for the thinkorswim platform for placing the trades in accordance with this indicator named UT Bot : https://usethinkscript.com/threads/ut-bot-for-thinkorswim.12640/. Please, see this page for the complete algorithm code for thinkorswim platform. It should enter the trade when the indicator shows the signal and then exit it and then enter
Id Like to have a web based trading journal where i can import MT4/5, excel sheet or manual input. This page will require uses to register There has to be a performance dashboard of the journal
Hello, We receive trading requests via FIX Protocol. We need a structure to manage these requests in Python MT5Manager ManagerAPI and create positions, deals and orders. What we need is NOT about the FIX Protocol. Even though we have all our permissions and pump mode is on, we are having problems while creating an order, position or deal
Hello I have an old mql4 EA file, I need to convert it to python script which can be run on tradelocker studio. You maybe need to use backtrader package of python. Time line is 5 days. Thank you

プロジェクト情報

予算
30+ USD
VAT(付加価値税) (19%): 5.7 USD
合計: 36 USD
開発者用
27 USD

依頼者

(3)
出された注文9
裁定取引数0