how to find Arrow on the chart if Object List empty?

 

i want to identify arrow on the chart whether Up Arrow or Down Arrow but when i test with iCustom i couldn't see 'arrow' object in Object List even though arrow already populated on the chart.

i tried iCustom to get allocated buffer for find value in HalfTrend TT indicator which i attached file in here post.

but no luck.

any input or help much appreciate!

double HalfTrend0 = iCustom(Symbol(),0,"HalfTrend TT [x5v4]",0,i);
double HalfTrend1 = iCustom(Symbol(),0,"HalfTrend TT [x5v4]",1,i);
double HalfTrend2 = iCustom(Symbol(),0,"HalfTrend TT [x5v4]",2,i);
double HalfTrend3 = iCustom(Symbol(),0,"HalfTrend TT [x5v4]",3,i);
double HalfTrend4 = iCustom(Symbol(),0,"HalfTrend TT [x5v4]",4,i);
double HalfTrend5 = iCustom(Symbol(),0,"HalfTrend TT [x5v4]",5,i);
double HalfTrend6 = iCustom(Symbol(),0,"HalfTrend TT [x5v4]",6,i);
Files:
 
i attached file. 
 
james272:
i attached file. 

Buffer 4 : signal up. Buffer 5 : signal down

Source code (among other places) here : https://www.mql5.com/en/forum/317586


PS: when an indicator does this in a main loop 

   for(int i=Bars-1; i>=0; i--)

I would seriously reconsider using that version (especially from iCustom() calls) instead of using some properly coded version

HalfTrend TT [x5v4].mq4
HalfTrend TT [x5v4].mq4
  • 2019.07.10
  • www.mql5.com
Hello smart people! Among the many indicators I found this. This seems to me to be quite accurate. I've been testing it for some time...
 
Mladen Rakic:

Buffer 4 : signal up. Buffer 5 : signal down

Source code (among other places) here : https://www.mql5.com/en/forum/317586


PS: when an indicator does this in a main loop 

I would seriously reconsider using that version (especially from iCustom() calls) instead of using some properly coded version

Hi..thanks for your answer! 

but what i attached ex4 file and above url source is some different .

so it some different when fire arrow position and also i try to find matched value while testing but couldn't found mq4 version which matched with ex4 version.

i like this ex4 version indi that why i try to use icustom.

are there any method to archieve what i want to do?

thanks you

 
james272:

Hi..thanks for your answer! 

but what i attached ex4 file and above url source is some different .

so it some different when fire arrow position and also i try to find matched value while testing but couldn't found mq4 version which matched with ex4 version.

i like this ex4 version indi that why i try to use icustom.

are there any method to archieve what i want to do?

thanks you

Same buffers. Nothing changes as far as that is concerned

 
double HalfTrend0 = iCustom(Symbol(),0,"HalfTrend TT [x5v4]",0,i);

Open the «DataFolder»/Indicator folder and verify the filename exactly matches (including the square brackets and spaces).

Reason: