Hi,
I need to convert the Super Trend 2 Strategy from Tradingview Pine Script to Meta Trader5 EA, so that it can open and close orders on its own.
Supertrend is a strategy by breizh29 using *rajandran.r* Supertrend Indicator, and here is the original code:
strategy("Super Trend 2", overlay=true, default_qty_value=100)
res = input(title="Main SuperTrend Time Frame", type=resolution, defval="120")
Factor=input(1, minval=1,maxval = 100)
Pd=input(1, minval=1,maxval = 100)
tp = input(500,title="Take Profit")
sl = input(400,title="Stop Loss")
Up=hl2-(Factor*atr(Pd))
Dn=hl2+(Factor*atr(Pd))
MUp=security(tickerid,res,hl2-(Factor*atr(Pd)))
MDn=security(tickerid,res,hl2+(Factor*atr(Pd)))
Mclose=security(tickerid,res,close)
TrendUp=close[1]>TrendUp[1]? max(Up,TrendUp[1]) : Up
TrendDown=close[1]<TrendDown[1]? min(Dn,TrendDown[1]) : Dn
MTrendUp=Mclose[1]>MTrendUp[1]? max(MUp,MTrendUp[1]) : MUp
MTrendDown=Mclose[1]<MTrendDown[1]? min(MDn,MTrendDown[1]) : MDn
Trend = close > TrendDown[1] ? 1: close< TrendUp[1]? -1: nz(Trend[1],1)
Tsl = Trend==1? TrendUp: TrendDown
MTrend = Mclose > MTrendDown[1] ? 1: Mclose< MTrendUp[1]? -1: nz(MTrend[1],1)
MTsl = MTrend==1? MTrendUp: MTrendDown
linecolor = Trend == 1 ? green : red
plot(Tsl, color = linecolor , style = line , linewidth = 2,title = "SuperTrend")
Mlinecolor = MTrend == 1 ? blue : orange
plot(MTsl, color = Mlinecolor , style = line , linewidth = 2,title = "Main SuperTrend")
plotshape(cross(close,Tsl) and close>Tsl , "Up Arrow", shape.triangleup,location.belowbar,green,0,0)
plotshape(cross(Tsl,close) and close<Tsl , "Down Arrow", shape.triangledown , location.abovebar, red,0,0)
up = Trend == 1 and Trend[1] == -1 and MTrend == 1
down = Trend == -1 and Trend[1] == 1 and MTrend == -1
plotarrow(up ? Trend : na, title="Up Entry Arrow", colorup=lime, maxheight=60, minheight=50, transp=0)
plotarrow(down ? Trend : na, title="Down Entry Arrow", colordown=red, maxheight=60, minheight=50, transp=0)
golong = Trend == 1 and Trend[1] == -1 and MTrend == 1
goshort = Trend == -1 and Trend[1] == 1 and MTrend == -1
strategy.entry("Buy", strategy.long,when=golong)
strategy.exit("Close Buy","Buy",profit=tp,loss=sl)
strategy.entry("Sell", strategy.short,when=goshort)
strategy.exit("Close Sell","Sell",profit=tp,loss=sl)
Similar orders
I want an automated trading bot, and before i will purchase here's want i want as a proof. Trading proof: Screenshots or verified logs showing real trading history, including entry and exit points, profit/loss, and trading duration. Chart evidence: Visual charts demonstrating the bot’s trading activity, backtests, or live trading performance. Additional details: Please include any relevant performance metrics
I want a robot that does not demand a huge amount of deposit and which only leverage on a micro account. The one that execute trades on a high speed. It should be able to manipulate all currency pairs and that only operate on MT5 platform
When you scroll down, you’ll see the box for requirements. Here’s a structure you can copy-paste and edit: Project Description I need a trading robot (Expert Advisor) for MetaTrader 5 (MQL5). The EA should execute trades automatically based on predefined strategy rules. Trading Strategy Rules Entry: [Explain your entry condition, e.g., “Buy when 50 EMA crosses above 200 EMA”] Exit: [Explain exit condition, e.g
As the title says. I'm looking for an experienced developer to improve and optimize an existing code created to pass a Prop Firm evaluation. I will only accept someone who believes can do it. The deliver job should be a clean code and optimized in order to meet the goal of it. If not - the job will be cancel with your consent or you can keep trying until you deliver what I'm looking for. So, read this lines carefully
Hi i wanted to see what you will charge me to make a simple indicator in TOS which i can plot on my activity and positions section. Firstly I want a custom column where we can calculate the difference between the trade price and the current price of a stock, or future or option. so we we have the value in that column. Example NVDA - Trade price 140 - Mark is 190 so this new colum will show +50 and option we bought at
I want a scalping MT5 trading bot that will be placing trades without any signal indicator. Conditions will be as follows; it will be opening both buy stop and sell stop at the same time being separated by a gap of 20 points from the entry. If for instance a buy stop is hit, then the sell stop should be closed immediately, and a stop loss is placed immediately where the sell stop was. Ones the buying position gets
I would like to have an Expert Advisor created with the following parameters. This Expert Advisor should analyze the higher time frame and the medium time frame, and based on that, open positions on the lower time frame. For this reason, I would like to work with developers who have experience in multi-timeframe analysis. I have a PDF file that explains the entire trading logic. In addition, I have compressed the
I'm looking to acquire a ready-made, consistently profitable Expert Advisor (EA) for MetaTrader 5 (MT5). The EA should be well-tested in both backtesting and live trading conditions and based on a clear, logical trading strategy (not a black box). I'm open to a variety of strategies as long as they are stable, explainable, and show consistent results
I am looking for a profitable trading bot (Expert Advisor) for MT5. The bot should have: Consistent performance with proven backtest and preferably live results Strong risk and money management features Easy setup and user-friendly inputs Please share your proposals with details and pricing
Hello, I am looking for an experienced QuantConnect/Lean developer for a trading strategy project on futures (Micro Nasdaq – MNQ) with Interactive Brokers integration (paper + live). The strategy includes several key features: • Multi-timeframe analysis (signal validation across multiple horizons) • Integration of economic news/events into the trading logic • Advanced risk management (daily stop, position sizing