iCustom don't work - page 2

 
Michael Charles Schefe #:

close. I think i would do somthing like this. maybe a moderator can "pipe in".

where you have the copy buffer, i would add a function call of the following function load_Buffers();

I did this but the response is still 0 in both buffers

 
dam. i have put this thread in my favourites to monitor. Hopefully a pro will find this a challenge and help some.
 
abnercta:

Hello every one.

I'm iniciant in mql5, I have a indicator that I do and now I want create a EA for work with indicator. This is very simple because I am a iniciant

I'm testing this EA, but I think that the values of buffers are not actualized when I am using the EA. 
If you try ut just the indicator on a graph, you will see tha indicator works fine, but if you try use the EA, the values of buffers will be 0 ever.


this the code to indicator:



and this is the code of EA:

OnTimer() and OnBookEvent() are not triggering in an indicator launched through iCustom() alone.

You would need to add the indicator on the chart using ChartIndicatorAdd().

 
Alain Verleyen #:

OnTimer() and OnBookEvent() are not triggering in an indicator launched through iCustom() alone.

You would need to add the indicator on the chart using ChartIndicatorAdd().

OK, nice, can you show me, how do it? 

I'm researching now to understand how to do this, but if you could show me I'd be grateful

 
abnercta #: OK, nice, can you show me, how do it? I'm researching now to understand how to do this, but if you could show me I'd be grateful

He literally gave you the answer—"You would need to add the indicator on the chart using ChartIndicatorAdd()."

So, now read the documentation, which includes sample code, and apply the function in your code ... Documentation on MQL5: Chart Operations / ChartIndicatorAdd

Documentation on MQL5: Chart Operations / ChartIndicatorAdd
Documentation on MQL5: Chart Operations / ChartIndicatorAdd
  • www.mql5.com
Adds an indicator with the specified handle into a specified chart window. Indicator and chart should be generated on the same symbol and time...
 
Fernando Carreiro #:

He literally gave you the answer—"You would need to add the indicator on the chart using ChartIndicatorAdd()."

So, now read the documentation, which includes sample code, and apply the function in your code ... Documentation on MQL5: Chart Operations / ChartIndicatorAdd

Sorry, I don't know the community very well yet. But I managed to do it, thank you very much!