MQL5 is good but will be better if...

 

I like this software and use almost 10 years. Every major update makes me happy. Espically AI Assistant works almost perfect. I believe with new updates getting better.

I create indicator and add it to my EA but doesnt show value at Data Window. I took warning =  

"An Expert Advisor cannot put values into the Data Window. In MQL5, the Data Window is populated only by indicator buffers ( SetIndexBuffer ). Expert Advisors are  OnTick  programs — they have no  OnCalculate , no chart window, and no buffer API. There is no MQL5 call that lets an EA write a value into the Data Window. That's exactly why we created the companion indicator  XXX  earlier: it exposes the XXX  DRAW_NONE  buffers, which is the only supported way to see EA-side computed values in the Data Window."

MQL5 is good but will be better; if this problem solved.

and

MQL5 is good but will be better; if EA works in our GSM Phones.

Any update ideas from you ?

 
Cuneyt Ates:
I create indicator and add it to my EA but doesnt show value at Data Window.

If the indicator is a separate file (not embedded in the EA),called by the EA via iCustom(), and added to the chart by the EA via ChartIndicatorAdd(), then you will have indicator values showing in the Data Window.

Cuneyt Ates:
MQL5 is good but will be better; if EA works in our GSM Phones.

I really have to question whether the average mobile phone running Mobile MT5 can handle the entire MQL5 language that comes along with custom coding. Maybe an MQ Admin can answer that question definitively.

 
Ryan L Johnson #:

If the indicator is a separate file (not embedded in the EA),called by the EA via iCustom(), and added to the chart by the EA via ChartIndicatorAdd(), then you will have indicator values showing in the Data Window.

I really have to question whether the average mobile phone running Mobile MT5 can handle the entire MQL5 language that comes along with custom coding. Maybe an MQ Admin can answer that question definitively.

Thank you for your comment Mr Johnson. 

I know iCustom function. Problem; i want standalone EA, one code, everything works inside.

 
Cuneyt Ates #:

Thank you for your comment Mr Johnson. 

I know iCustom function. Problem; i want standalone EA, one code, everything works inside.

Thank you for clarifying your issue.

In that case, I presume that you're not interested in coding the EA to Print() to the Experts tab, nor to Comment() or draw text Objects directly on a chart?

 
Cuneyt Ates #I know iCustom function. Problem; i want standalone EA, one code, everything works inside.

Just embed the other indicator(s) inside your indicator/EA. Add the CI(s) to your code as a resource.

#resource "\\Indicators… iCustom("::Indicators…
          Use the publicly released code - MQL5 programming forum (2017)
          Resources - MQL4 Reference

Be aware that using resources were 40x times slower than using CIs directly. That is no longer true on MT5. You need to test on MT4.
          A custom indicator as a resource - MQL4 programming forum (2019)
          In your EAs, where is the indicator code? - Indices - Expert Advisors and Automated Trading - MQL5 programming forum #6 (2019)

Also make use there are no spaces in the path.
          Getting error 4802 when loading custom indicator that loads another custom indicator with iCustom - Technical Indicators - MQL5 programming forum. (2020)

Also Use of Resources in MQL5 - MQL5 Articles (2011)

 
William Roeder #:

Just embed the other indicator(s) inside your indicator/EA. Add the CI(s) to your code as a resource.

#resource "\\Indicators… iCustom("::Indicators…
          Use the publicly released code - MQL5 programming forum (2017)
          Resources - MQL4 Reference

Be aware that using resources were 40x times slower than using CIs directly. That is no longer true on MT5. You need to test on MT4.
          A custom indicator as a resource - MQL4 programming forum (2019)
          In your EAs, where is the indicator code? - Indices - Expert Advisors and Automated Trading - MQL5 programming forum #6 (2019)

Also make use there are no spaces in the path.
          Getting error 4802 when loading custom indicator that loads another custom indicator with iCustom - Technical Indicators - MQL5 programming forum. (2020)

Also Use of Resources in MQL5 - MQL5 Articles (2011)

Does embedding an indicator as a resource in an EA print that indicator's data to the MT5 Data Window?
 
Ryan L Johnson #:
Does embedding an indicator as a resource in an EA print that indicator's data to the MT5 Data Window?

Please disregard this question. ☝

I researched everything that I could find regarding an indicator as a #resource, and there is no exception that allows it to print to the MT5 Data Window.

 
Cuneyt Ates:

MQL5 is good but will be better; if EA works in our GSM Phones.

Any update ideas from you ?

It would be nice to add custom indicators to the mobile app. Like "All Pivot Points". Just custom indicators in general. Because all they do is run the available candles through an iteration and output the results.