This is the code: (I don't need the bar color and buy/sell signal)
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © ceyhun
//@version=5
indicator('ATR Trailing Stoploss', overlay=true)
Atr = input.int(defval=5, title='Atr Period', minval=1, maxval=500)
Hhv = input.int(defval=10, title='HHV Period', minval=1, maxval=500)
Mult = input.float(defval=2.5, title='Multiplier', minval=0.1)
Barcolor = input(true, title='Barcolor')
Prev = ta.highest(high - Mult * ta.atr(Atr), Hhv)
ta.barssince(close > ta.highest(high - Mult * ta.atr(Atr), Hhv) and close > close[1])
cum_1 = ta.cum(1)
highest_1 = ta.highest(high - Mult * ta.atr(Atr), Hhv)
highest_2 = ta.highest(high - Mult * ta.atr(Atr), Hhv)
iff_1 = close > highest_1 and close > close[1] ? highest_2 : Prev
TS = cum_1 < 16 ? close : iff_1
iff_2 = close < TS ? color.red : color.black
Color = close > TS ? color.green : iff_2
barcolor(Barcolor ? Color : na)
plot(TS, color=Color, linewidth=3, title='ATR Trailing Stoploss')
Buy = ta.crossover(close, TS)
Sell = ta.crossunder(close, TS)
plotshape(Buy, 'BUY', shape.labelup, location.belowbar, color.new(color.green, 0), text='BUY', textcolor=color.new(color.black, 0), display=display.none)
plotshape(Sell, 'SELL', shape.labeldown, location.abovebar, color.new(color.red, 0), text='SELL', textcolor=color.new(color.black, 0), display=display.none)
alertcondition(Buy, 'Buy Signal', 'Buy ATR Trailing Stoploss')
alertcondition(Sell, 'Sell Signal', 'Sell ATR Trailing Stoploss')
相似订单
Hello, I'm seeking for an experienced developer that can convert a simple MQL4 EA (which is about 1000 lines of code, but with simple logic) to MQL5. Furthermore I need him to optimize the EA for better performance and faster backtest speed (all optional backtest features to speed up the process must be enabled optionally with input parameters, like Enter/Exit on new bar only for example). Finaly, I want to add an
This project involves converting the a TradingView Pine Script strategy, into a fully functional MT4 Expert Advisor (EA) using MQL5. The strategy includes multiple technical indicators, entry/exit conditions, stop loss (SL), take profit (TP), and custom entry price offsets. The EA should be designed for backtesting and live trading in MT4
I would like to convert an Expert Advisor into an indicator. Once the work is done, this indicator should work like any indicator on MetaTrader 4. It should look the same and I should be able to add my expert advisor. Thanks & Regards
Using the Fibonacci retracement strategy to open trade exit trade and also set TP and SL. Each level on Fibonacci are predetermined to open a position and increase the lot size (Martigale) as market price go again the previous opened position. I have a clear details on the strategy which I will share you once you respond to this
I need a professional who can convert a Tradingview indicator and make it for MQL5 ? Kindly let me know if you can do this and I need this to be done in 24 hours
Convert MT4 EA to MT 5 EA. I just have the EA(ex4): I don't have the code. I want developer to copy same mt4 code and create mt5 EA NO EDITING REQUIRED
Terms of Reference: Development and Update of a MetaTrader 4 and MetaTrader 5 Bot Project Context: I currently own a MetaTrader 4 bot (Expert Advisor - EA) specialized in gold trading. I want to: Update the MetaTrader 4 version to integrate new features and secure the bot. Create a MetaTrader 5 version of this bot, with the same characteristics and functionalities. Project Objectives: Updating the MetaTrader 4 (MT4)
I want to convert my mt4 EA to mt5 EA . I have a mt4 ea with source code. i want developer to copy same mt4 code and create mt5 EA NO EDITING REQUIRED
DON'T REACH OUT IF YOU CAN'T CONVERT STRATEGY ON TRADINGVIEW TO A WELL AUTOMATED EXPERT ADVISOR THAT RUN WITHOUT PROBLEM ON METATRADER 5 Well, I am only looking for a programmer who is proficient in coding and can turn strategy on tradingview to a well customized expert advisor, please reach out if you can work timely on exactly what I just said
Hello Developers, I’m seeking a professional and highly experienced MQL4 developer to assist with converting an existing TradingView indicator into a fully functional MT4 indicator (.exe file). The source code will be provided , and the key task is ensuring that all features and functionality are preserved in the MT4 version. Project Requirements: Proven experience in converting TradingView Pine Script to MQL4