Specification
Convert this script below to a mt4 indicator: Must add a Notification do mobile every breakout.
Plus, if possible adda option to notification if the candle in the breakout its a engulfing.
Plus, if possible adda option to notification if the candle in the breakout its a engulfing.
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © HoanGhetti
//@version=5
indicator("RSI Trendlines with Breakouts [HG]", precision = 2, max_labels_count = 500, max_lines_count = 500)
import HoanGhetti/SimpleTrendlines/3 as tl
g_trendlines = 'Trendline Settings', g_conditions = 'Conditions', g_styling = 'Styling', g_timeframe = 'Timeframe'
input_timeframe = input.timeframe(defval = '', title = 'Timeframe', group = g_timeframe)
input_pLen = input.int(defval = 4, title = 'Lookback Range', minval = 1, group = g_trendlines, tooltip = 'How many bars to determine when a swing high/low is detected.')
input_rLen = input.int(defval = 14, title = 'RSI Length' , minval = 1, group = g_trendlines)
input_rSrc = input.source(defval = close, title = 'RSI Source', group = g_trendlines)
input_repaint = input.string(defval = 'On', title = 'Repainting', group = g_conditions, options = ['On', 'Off: Bar Confirmation'], tooltip = 'Bar Confirmation: Generates alerts when candle closes. (1 Candle Later)')
input_rsiDiff = input.int(defval = 3, title = 'RSI Difference', group = g_conditions, tooltip = 'The difference between the current RSI value and the breakout value.\n\nHow much higher in value should the current RSI be compared to the breakout value in order to detect a breakout?')
input_rsiCol = input.color(defval = color.blue, title = 'RSI Color', group = g_styling)
input_width = input.int(defval = 2, title = 'Line Width', minval = 1, group = g_styling)
input_lblType = input.string(defval = 'Simple', title = 'Label Type', group = g_styling, options = ['Full', 'Simple'])
input_lblSize = input.string(defval = size.small, title = 'Label Size', group = g_styling, options = [size.huge, size.large, size.normal, size.small, size.tiny])
input_pLowCol = input.color(defval = color.red, title = 'Pivot Low', inline = 'col', group = g_styling)
input_pHighCol = input.color(defval = #089981, title = 'Pivot High', inline = 'col', group = g_styling)
input_override = input.bool(defval = false, title = 'Override Text Color', group = g_styling, inline = 'override')
input_overCol = input.color(defval = color.white, title = ' ', group = g_styling, inline = 'override')
lblText = switch input_lblType
'Simple' => 'Br'
'Full' => 'Break'
repaint = switch input_repaint
'On' => true
'Off: Bar Confirmation' => false
rsi_v = ta.rsi(input_rSrc, input_rLen)
rsi = input_timeframe == '' ? rsi_v : request.security(syminfo.tickerid, input_timeframe, rsi_v, lookahead = barmerge.lookahead_on)
pl = fixnan(ta.pivotlow(rsi, 1, input_pLen))
ph = fixnan(ta.pivothigh(rsi, 1, input_pLen))
pivot(float pType) =>
pivot = pType == pl ? pl : ph
xAxis = ta.valuewhen(ta.change(pivot), bar_index, 0) - ta.valuewhen(ta.change(pivot), bar_index, 1)
prevPivot = ta.valuewhen(ta.change(pivot), pivot, 1)
pivotCond = ta.change(pivot) and (pType == pl ? pivot > prevPivot : pivot < prevPivot)
pData = tl.new(x_axis = xAxis, offset = input_pLen, strictMode = true, strictType = pType == pl ? 0 : 1)
pData.drawLine(pivotCond, prevPivot, pivot, rsi)
pData
breakout(tl.Trendline this, float pType) =>
var bool hasCrossed = false
if ta.change(this.lines.startline.get_y1())
hasCrossed := false
this.drawTrendline(not hasCrossed)
condType = (pType == pl ? rsi < this.lines.trendline.get_y2() - input_rsiDiff : rsi > this.lines.trendline.get_y2() + input_rsiDiff) and not hasCrossed
condition = repaint ? condType : condType and barstate.isconfirmed
if condition
hasCrossed := true
this.lines.startline.set_xy2(this.lines.trendline.get_x2(), this.lines.trendline.get_y2())
this.lines.trendline.set_xy2(na, na)
this.lines.startline.copy()
label.new(
bar_index,
this.lines.startline.get_y2(),
text = lblText, color = pType == pl ? color.new(input_pLowCol, 50) : color.new(input_pHighCol, 50),
size = input_lblSize, style = pType == pl ? label.style_label_lower_left : label.style_label_upper_left,
textcolor = pType == pl ? (input_override ? input_overCol : input_pLowCol) : input_override ? input_overCol : input_pHighCol)
hasCrossed
method style(tl.Trendline this, color col) =>
this.lines.startline.set_color(col)
this.lines.startline.set_width(input_width)
this.lines.trendline.set_color(col)
this.lines.trendline.set_width(input_width)
this.lines.trendline.set_style(line.style_dashed)
plData = pivot(pl)
phData = pivot(ph)
plData.style(input_pLowCol)
phData.style(input_pHighCol)
cu = breakout(plData, pl)
co = breakout(phData, ph)
hline(70, title = 'Overbought', color = input_pHighCol, linestyle = hline.style_dotted)
hline(30, title = 'Oversold', color = input_pLowCol, linestyle = hline.style_dotted)
plot(rsi, title = 'Relative Strength Index', linewidth = 2, color = input_rsiCol)
alertcondition(ta.change(plData.lines.startline.get_y1()), 'New Pivot Low Trendline')
alertcondition(ta.change(cu) and cu, 'Pivot Low Breakout')
alertcondition(ta.change(phData.lines.startline.get_y1()), 'New Pivot High Trendline')
alertcondition(ta.change(co) and co, 'Pivot High Breakout')
Responded
1
Rating
Projects
78
59%
Arbitration
13
38%
/
54%
Overdue
9
12%
Free
2
Rating
Projects
35
23%
Arbitration
4
0%
/
50%
Overdue
2
6%
Working
3
Rating
Projects
648
33%
Arbitration
41
41%
/
46%
Overdue
11
2%
Busy
4
Rating
Projects
215
76%
Arbitration
4
50%
/
25%
Overdue
18
8%
Free
Published: 2 articles
5
Rating
Projects
7
0%
Arbitration
2
0%
/
100%
Overdue
0
Working
6
Rating
Projects
72
22%
Arbitration
13
46%
/
15%
Overdue
5
7%
Free
7
Rating
Projects
6
0%
Arbitration
2
50%
/
0%
Overdue
1
17%
Free
8
Rating
Projects
1
0%
Arbitration
1
0%
/
100%
Overdue
0
Free
Published: 2 codes
9
Rating
Projects
3
33%
Arbitration
1
0%
/
100%
Overdue
0
Free
10
Rating
Projects
499
67%
Arbitration
5
40%
/
0%
Overdue
4
1%
Free
Published: 8 codes
11
Rating
Projects
598
35%
Arbitration
64
20%
/
58%
Overdue
147
25%
Free
Published: 1 article, 22 codes
12
Rating
Projects
844
73%
Arbitration
15
53%
/
13%
Overdue
193
23%
Free
13
Rating
Projects
243
74%
Arbitration
7
100%
/
0%
Overdue
1
0%
Free
Published: 1 article
14
Rating
Projects
1
0%
Arbitration
2
0%
/
100%
Overdue
0
Free
15
Rating
Projects
146
34%
Arbitration
13
8%
/
62%
Overdue
26
18%
Free
Published: 6 codes
Similar orders
Booma and crash robot
30+ USD
I need a boom-and-crash MT5 robot that is very accurate for opening trades just before the spike happens. It should use M1 or M5 timeframe It should have options for changing lot size, number of trades to open, stop loss and take profit in points If the spike happens and it makes some profit, it should automatically close all trades. If the spike happens and the spike is not in profits, the trades can remain open
A perfect indicator
30 - 80 USD
Merge nearby zones yes/no Alert on/off Label on/off Show only current relevant zones near price yes/no Distance filter from current price Zone transparency Colors Preferred Output on Chart: I want the indicator to show only: the strongest nearby support zones under price the strongest nearby resistance zones above price major higher timeframe zones clean chart view I do not want excessive clutter. Entry Assistance
Criei um Robô para a venda alta precisão que automatiza a estratégia de correção média de Larry Williams. Possui filtros de tendência seletiva, controle de lote por risco percentual e execução rápida. Compatível com contas Hedge e Netting. Configuração simples e otimizada para mercados de alta volatilidade. *55(16) 993786056
SMC ORDER BLOCK
30 - 60 USD
I want already build FULLY AUTOMATED order block MT5 XAUUSD HTF H4 ENTRY LTF M15 - Show result on live account. m15 ob entry in the direction of h4 ob bias the developper to provide source code in the end
Project Title: Custom XAUUSD Support & Resistance Indicator Platform Required: MT5 preferred. If possible, also provide TradingView Pine Script version later. Main Goal: I want a custom indicator made specifically for XAUUSD (Gold) only. The indicator should automatically detect and draw strong support and resistance zones where price has a high probability of reacting, rejecting, or reversing. It must update
1. IF price forms: - Higher highs + higher lows → TREND = BUY - Lower highs + lower lows → TREND = SELL ELSE → NO TRADE 2. IF: - Trend = BUY - Price retraces to support zone - Bullish engulfing candle forms - TDI green crosses above red (optional) THEN: - Execute BUY 3. IF: - Trend = SELL - Price retraces to resistance - Bearish engulfing forms - TDI confirms THEN: - Execute SELL 4. Risk per trade = 1% of account Lot
HFT trading robot needed
30+ USD
I need a high frequency trading robot for gold in one or 5 minute timeframe the robot should have spread filter where it should only open trades below a set spread should have news filter to allow trading during fundal news or not the robot should have input in number of minutes to close all open trades and remove pending orders before fundamental news as part of news filter. It should also have the number of minutes
Hello, I am looking for a professional trading system including: 1- Trading Bot (Expert Advisor): - Good profit performance - High security and strong risk management - Works efficiently during high market volatility (news and strong movements) - Works on all pairs (Forex + Gold) 2- Signal Indicator: - Provides clear Buy and Sell signals - Includes Take Profit and Stop Loss - No repaint (signals must not change or
Apply with a screen of your work . Symbol Specific Logic . Live Chart Optimization Check the Core logic . [back tests as well] Change points to pips . Create buffer for the zone
Project information
Budget
30 - 200 USD