How to communicate with custom indicator ?

Back to topics list To post a new topic, please log in or register
avatar
9
rockerhell 2015.01.24 07:22
 

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

avatar
1211
deysmacro 2015.01.24 07:33 #
 
Try using iCustom.
avatar
9
rockerhell 2015.01.24 08:21 #
 
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,

avatar
Moderator
3418
GumRai 2015.01.24 08:39 #
 

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

Back to topics list  

To add comments, please log in or register