berb:
Hello I am looking for an indicator, which alerts you when a support or resistance is broken only with the body
closing price
Can someone an indicator like this help me?
We are not allowed to discuss or suggest products in the forum, so you should make your own search in the Codebase, the Market or order one in Freelance.
berb: Can someone an indicator like this help me?
Help you with what? You haven't stated a problem,
you stated a want. You have only
four choices:
- Search for it.
- Beg at
- Coding help - MQL4 programming forum
- Requests & Ideas (MQL5 only!) - Trade FX - Expert Advisors and Automated Trading - MQL5 programming forum
- Free coding for your trading system.. - Easy Trading Strategy - General - MQL5 programming forum
- I will code & automate your strategy for free - Options Trading Strategies - General - MQL5 programming forum
- Make It No Repaint Please! - MetaTrader 5 - MQL4 programming forum
-
MT4: Learn to code it.
MT5: Learn to code. If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into yours. - or pay (Freelance) someone to code it.
Hiring to write script - General - MQL5 programming forum
No free help
urgent help.
Get a freelancer to code for you. It's a simple indicator
Horizontal lines and trend lines you drew are available.
//+------------------------------------------------------------------+ //| CloseAlert.mq5 | //| Copyright 2019, MetaQuotes Software Corp. | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2019, MetaQuotes Software Corp." #property link "https://www.mql5.com" #property version "1.00" #property indicator_chart_window input int SoundInterval = 30; input bool Check_HorizontalLine = true; input bool Check_TrendLine = true; bool AlertFlag = false; int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[], const double &open[], const double &high[], const double &low[], const double &close[], const long &tick_volume[], const long &volume[], const int &spread[]) { int obj_total = ObjectsTotal(0, 0, -1); string name; for (int i = 0; i < obj_total; i++) { name = ObjectName(0, i, 0, -1); if(ObjectGetInteger(0, name, OBJPROP_TYPE) != OBJ_HLINE && ObjectGetInteger(0, name, OBJPROP_TYPE) != OBJ_TREND) continue; if (!Check_HorizontalLine && ObjectGetInteger(0, name, OBJPROP_TYPE) == OBJ_HLINE) continue; if (!Check_TrendLine && ObjectGetInteger(0, name, OBJPROP_TYPE) == OBJ_TREND) continue; double HorizontallinePrice, TrendlinePrice; ArraySetAsSeries(time, true); iTime(_Symbol, PERIOD_CURRENT, 0); ArraySetAsSeries(open, true); iOpen(_Symbol, PERIOD_CURRENT, 0); ArraySetAsSeries(close, true); iClose(_Symbol, PERIOD_CURRENT, 0); if (ObjectGetInteger(0, name, OBJPROP_TYPE) == OBJ_HLINE) { HorizontallinePrice = ObjectGetDouble(0, name, OBJPROP_PRICE); } if (ObjectGetInteger(0, name, OBJPROP_TYPE) == OBJ_TREND) { TrendlinePrice = ObjectGetValueByTime(0, name, time[1]); } if((HorizontallinePrice > open[1]) && (HorizontallinePrice <= close[1])) { if(AlertFlag == false) { Alert(_Symbol+_Period+" UP @" +DoubleToString(close[1], _Digits)+" over " +DoubleToString(HorizontallinePrice, _Digits)+" ["+name+"]"); AlertFlag = true; } } else if((TrendlinePrice > open[1]) && (TrendlinePrice <= close[1])) { if(AlertFlag == false) { Alert(_Symbol+_Period+" UP @" +DoubleToString(close[1], _Digits)+" over " +DoubleToString(TrendlinePrice, _Digits)+" ["+name+"]"); AlertFlag = true; } } else if((HorizontallinePrice < open[1]) && (HorizontallinePrice >= close[1])) { if(AlertFlag == false) { Alert(_Symbol+_Period+" DOWN @" +DoubleToString(close[1], _Digits)+" under " +DoubleToString(HorizontallinePrice, _Digits)+" ["+name+"]"); AlertFlag = true; } } else if((TrendlinePrice < open[1]) && (TrendlinePrice >= close[1])) { if(AlertFlag == false) { Alert(_Symbol+_Period+" DOWN @" +DoubleToString(close[1], _Digits)+" under " +DoubleToString(TrendlinePrice, _Digits)+" ["+name+"]"); AlertFlag = true; } } else { AlertFlag = false; } } return(rates_total); }

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello I am looking for an indicator, which alerts you when a support or resistance is broken only with the body closing price
Can someone an indicator like this help me?