Download MetaTrader 5
To add comments, please log in or register
Find out how your rating can be improved
rockerhell
85
rockerhell 2015.01.24 06: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

SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2015.01.24 06:33  
rockerhell
85
rockerhell 2015.01.24 07: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,

Keith Watford
Moderator
7899
Keith Watford 2015.01.24 07: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

/
To add comments, please log in or register