Hi there,
I have a TradingView indicator that would like to convert into a trading robot for MT5.
1. Initial SL should put above/below last Fractals signed on the chart (Fractals in not part of the indicator as I use them separately and combined both of them for the strategy).
2. The position opens once the candle is closed.
3. The opposite signal should close the last position and open a new one.
4. I want a multi-timeframe into an only single chart (with the possibility in the setting to write by myself the timeframes I'm interested).
I need the code at the end when I insert the EA I want all the settings to be settable by myself like in the TW indicator + the Timeframe of the FRACTALS and the possibility to choose the multi-timeframe where the EA should operate.
I'd like to have, if it's possible, by 31st of December.
This is the code (is not mine, is a public code that I implement it with use of another indicator like Williams Fractals with timeframe=2 to put the initial timeframe):
study("Supertrend", overlay = true)
Periods = input(title="ATR Period", type=input.integer, defval=10)
src = input(hl2, title="Source")
Multiplier = input(title="ATR Multiplier", type=input.float, step=0.1, defval=3.0)
changeATR= input(title="Change ATR Calculation Method ?", type=input.bool, defval=true)
showsignals = input(title="Show Buy/Sell Signals ?", type=input.bool, defval=true)
highlighting = input(title="Highlighter On/Off ?", type=input.bool, defval=true)
atr2 = sma(tr, Periods)
atr= changeATR ? atr(Periods) : atr2
up=src-(Multiplier*atr)
up1 = nz(up[1],up)
up := close[1] > up1 ? max(up,up1) : up
dn=src+(Multiplier*atr)
dn1 = nz(dn[1], dn)
dn := close[1] < dn1 ? min(dn, dn1) : dn
trend = 1
trend := nz(trend[1], trend)
trend := trend == -1 and close > dn1 ? 1 : trend == 1 and close < up1 ? -1 : trend
upPlot = plot(trend == 1 ? up : na, title="Up Trend", style=plot.style_linebr, linewidth=2, color=color.green)
buySignal = trend == 1 and trend[1] == -1
plotshape(buySignal ? up : na, title="UpTrend Begins", location=location.absolute, style=shape.circle, size=size.tiny, color=color.green, transp=0)
plotshape(buySignal and showsignals ? up : na, title="Buy", text="Buy", location=location.absolute, style=shape.labelup, size=size.tiny, color=color.green, textcolor=color.white, transp=0)
dnPlot = plot(trend == 1 ? na : dn, title="Down Trend", style=plot.style_linebr, linewidth=2, color=color.red)
sellSignal = trend == -1 and trend[1] == 1
plotshape(sellSignal ? dn : na, title="DownTrend Begins", location=location.absolute, style=shape.circle, size=size.tiny, color=color.red, transp=0)
plotshape(sellSignal and showsignals ? dn : na, title="Sell", text="Sell", location=location.absolute, style=shape.labeldown, size=size.tiny, color=color.red, textcolor=color.white, transp=0)
mPlot = plot(ohlc4, title="", style=plot.style_circles, linewidth=0)
longFillColor = highlighting ? (trend == 1 ? color.green : color.white) : color.white
shortFillColor = highlighting ? (trend == -1 ? color.red : color.white) : color.white
fill(mPlot, upPlot, title="UpTrend Highligter", color=longFillColor)
fill(mPlot, dnPlot, title="DownTrend Highligter", color=shortFillColor)
alertcondition(buySignal, title="SuperTrend Buy", message="SuperTrend Buy!")
alertcondition(sellSignal, title="SuperTrend Sell", message="SuperTrend Sell!")
changeCond = trend != trend[1]
alertcondition(changeCond, title="SuperTrend Direction Change", message="SuperTrend has changed direction!")
Commandes similaires
I’m looking for a profitable MT5 grid EA with strict risk controls and a clear focus on preventing account wipeouts. It can operate on any symbol, as long as capital preservation is the main priority. I’m interested in buying both the EA and its full source code if it meets my criteria. Let me know if you offer something like this
I want EA would work like a bot. I will share the box size on daily market for XAUUSD AND BTC . The bot should apply the same box size on charts and when super trend signals buy it should buy and when sell it should sell with quantity which will shared like 0.01 or 0.10 Secondly when the trade is executed it should carry till trailing SL as for example If supertrend gives Buy signal Entry done at 100 for example and
Description Hello! I’m looking for an experienced MQL5 developer to build an MT5 Expert Advisor that can trade two opposite strategies on the same price levels : BREAKOUT (trend continuation) REVERSAL (pullback / reversal) Key idea: the EA must allow a fair comparison by using the same Trigger Bar logic for both strategies (touch/break event), so we can backtest different combinations of levels, timeframes, and
I’m looking for a profitable MT5 grid trading strategy with strong risk management that is designed to avoid account blowouts . The strategy can trade on any symbol, as long as capital preservation is the top priority. I’m interested in purchasing the EA together with the full source code , provided it meets my requirements. Please let me know if you have a suitable solution available
I recently purchased an off the shelf 'multiple positions executor' EA in order to open multiple trades simultaneously using MT5 however the orders would fail. It seems they would fail because the EA uses PIPs and the broker I use with MT5 uses Points. The EA was sending an order with SL/TP values that violated the broker’s symbol rules. I need an EA developed which Opens multiple market orders simultaneously
I would like an experienced developer to work with. I have an existing EA I would like to modify. The EA works well on demo account but for some reasons, is not profitable on live account. I want an experienced developer to optimise it for a live account. Note: I only have a trial version of the EA, I do not have the source code
Theory : The original calculation of RSI is (in short) the following : Add the changes up and changes down. From those sums, we can then calculate the RSI (Relative Strength Index). At that particular step Welles Wilder used what sometimes is called Wilders EM for smoother results, And that gives us space to [produce all sort of different RSIs by using different types of smoothing at the final step This version : It
Job Details — Gold M1 EMA Consolidation Pullback EA Description: * Fully automatic MT5 EA * Pair: Gold (XAUUSD) * Timeframe: M1 * Funded account use (strict risk rules) * Full source code (.mq5) with lifetime ownership required 🔹 Strategy Rules * Single EMA period = 15 * Buy: price breaks upward and stays above EMA * Sell: price breaks downward and stays below EMA 🔹 Consolidation Logic * Identify last valid swing
SLee ต่อไปนี้เป็นตัวอย่างเอกสารข้อกำหนดสำหรับการพัฒนาเครื่องมือ ช่วยซื้อขาย MACD Sample Expert Advisor ซึ่งมีอยู่ในแพ็กเกจมาตรฐานของ MetaTrader 5 1. แนวคิดของระบบการซื้อขายมีดังนี้ : จะเข้าซื้อขายเมื่อ เส้นหลักและเส้นสัญญาณ ของ MACD ตัดกันในทิศทางแนวโน้ม ปัจจุบัน 2. แนวโน้ม จะถูกกำหนดโดยใช้ ค่าเฉลี่ยเคลื่อนที่แบบเอ็กซ์โปเนนเชียล ( Exponential Moving Average หรือ EMA) ตามช่วงเวลาที่ระบุ (InpMATrendPeriod) หากค่า
Symbol: Xauusd Timeframe: i want to choose Entry: 2 bullish candles in a row= buy order 2 bearish candles in a row= sell order Lotsize: i want to choose Tp 10 pips ( but i want to choose) Sl 50 pips ( i want to choose) I want to achieve 10 pips of profit every day. So if the first trade of the day is profitable, the ea will stop trading for the rest of that day. If the stop loss is hit, then I will need 6 winning