How to communicate with custom indicator ?

 

Hello Forum,

I Hope you are all doing good!

I wanted to communicate with Super Trend here's the link: https://www.mql5.com/en/code/8268

I want to put a Alert for my self when the cross happens and the current candle get solid, I described in attachment below.

I have not a lot but a bit of mql4 programming experience and I need help to communicate with custom indicators.

Two things I need here:

1.  How to check for the Current (0) candle to close.

2. And how to check its closing above/below the line or not.

I try to Explain as much as I could.

Best Regards,

Aqi

 
 
deysmacro:
Try using iCustom.

I know about iCustom, thanks for the answer!

but unfortunately it not giving me the answer of the particular question which I asked above.

A little more help would be appreciated!

Thank you,

 
double value_1= iCustom(,,,,,1);
double value_2= iCustom(,,,,,2);
if(Close[1]< value_1 && Close[2]> value_2)
   {
   //Close has crossed below the line
   } 

 This logic should work

Reason: