Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
Hi guys! I need one indicator that gives me a signal when one candle (bull or bear) cross the horizontal trendline. I don't know if this is difficult, but if not, could you please help me? Thanks in advance!
Hi guys! I need one indicator that gives me a signal when one candle (bull or bear) cross the horizontal trendline. I don't know if this is difficult, but if not, could you please help me? Thanks in advance!
Cheers
creative,
It's a very easy thing my friend.
Please try this code (save it as indicator) when the market opens.
PHP Code:
//+------------------------------------------------------------------+
//| Demo.mq4 |
//| Mohammed |
//+------------------------------------------------------------------+
#property indicator_chart_window
extern double Line_Price = 0;
extern color clr = Yellow;
int init()
{
Draw_Horzintal_Line(Line_Price);
return(0);
}
int deinit()
{
int nobj = ObjectsTotal();
for (int i=nobj; i>=0; i--){
string objn = ObjectName(i);
if(StringFind(objn, "mhline", 0) >= 0)
ObjectDelete(objn);}
return(0);
}
int start()
{
/*-----
/ step 1: draw the horsintal line
/ step 2: alerts in crossing the line up and down
-----*/
Mohammed i want to thank you for your reply , but i need to see the line on the chart before the candle cross. I want to have a visual, do you understand Mohammed?
Mohammed i want to thank you for your reply , but i need to see the line on the chart before the candle cross. I want to have a visual, do you understand Mohammed?
Regards!
creative, Yes I know what do you want.
Just set the Line and wait the cross? Did I mis understand you?
You attach the indicator and set the line (very like you draw a normal line but with an indicator this time) and you wait the cross.
If the candle was down the line and crossed up it will alerts you up.
If the candle was up the line and crossed down it will alerts you down.
I hope it's what you want and sorry if it wasn't what you want.
Just set the Line and wait the cross? Did I mis understand you?
You attach the indicator and set the line (very like you draw a normal line but with an indicator this time) and you wait the cross.
If the candle was down the line and crossed up it will alerts you up.
If the candle was up the line and crossed down it will alerts you down.
I hope it's what you want and sorry if it wasn't what you want.
Yes man that's exactly what i want ! I want to give you a big thanks for your precious help! All the best for you!