Convert TradingView Indicator/Strategy into MT4 EA/Trading Robot

MQL4 Experts

Specification

Looking for someone to examine and correct a pine script and convert into MQL4 script to perform the following functions as a robot & also an indicator for both Pine Script & MQL. 


The robot needs to:

Determine total available balance for trading. 

Useable on all trading timeframes (5min, 15min, 1Hr, 4Hr, Daily, Weekly) charts & Forex Pairs

Enter a Buy order of 10% of total available equity when 100 EMA crosses under 200 EMA (close of bar). 

Enter a Sell order of 10% of total available equity when 100 EMA crosses over 200 EMA (close of bar). 

(Example: $10,000 cash deposit on a 1:10 ratio account = $100,000 available including margin; trades = each trade uses 10% of $100,000 to each trade and no more than 50% of total margin or 5 trades open at one time reserving 50% of margin for drawdown.)

Ability to turn off either the Buy or the Sell so robot only performs Buy or the Sell trades leaving it up to the trader to include or exclude one or the other.

No more than 5 trades can be open at one time. 

Trades opens at cross. 

Long take profit @ .4 percent of price.

Stop loss @ .5 percent of price 

Plots both the 100 (color:red) & 200 (color:white) EMA's

Plots trade entry & exit with arrows. (red for Sell, green for Buy)

Ability to adjust parameters like the Take Profit & Stop Loss %'s & pyramid amount.

Audible alert of trade entry & exit.


Here's the Pine Script I have thus far (Please make any changes to meet the needs described above):


// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/

// © ForexDestiny


//@version=3

strategy(title="Take profit (% of instrument price)", calc_on_order_fills=true,calc_on_every_tick =true, initial_capital=100000,commission_value=.05,overlay=true,pyramiding=5, default_qty_type = strategy.percent_of_equity, default_qty_value = 10)

StartYear = input(2021, "Backtest Start Year")

StartMonth = input(1, "Backtest Start Month")

StartDay = input(1, "Backtest Start Day")


// STEP 1:

// Make inputs that set the take profit % (optional)

longProfitPerc = input(title="Long Take Profit (%)",

     type=float, minval=0.0, step=0.1, defval=1) * 0.01


shortProfitPerc = input(title="Short Take Profit (%)",

     type=float, minval=0.0, step=0.1, defval=1) * 0.01

     

longLossPerc = input(title="Long Stop Loss (%)",

     type=float, minval=0.0, step=0.1, defval=5) * 0.01


// Calculate moving averages

EMA100 = ema(close, 100)

EMA200 = ema(close, 200)


// Calculate trading conditions

enterLong  = crossunder(EMA100, EMA200)

enterShort = crossover(EMA100, EMA200)


// Plot moving averages

plot(series=EMA100, color=teal)

plot(series=EMA200, color=orange)


// STEP 2:

// Figure out take profit price

longExitPrice  = strategy.position_avg_price * (1 + longProfitPerc)

shortExitPrice = strategy.position_avg_price * (1 - shortProfitPerc)


// Determine Stop Loss price

longStopPrice  = strategy.position_avg_price * (1 - longLossPerc)


// Plot take profit values for confirmation

plot(series=(strategy.position_size > 0) ? longExitPrice : na,

     color=green, style=circles,

     linewidth=3, title="Long Take Profit")

     

plot(series=(strategy.position_size < 0) ? shortExitPrice : na,

     color=red, style=circles,

     linewidth=3, title="Short Take Profit")

     

// Plot stop loss values for confirmation

plot(series=(strategy.position_size > 0) ? longStopPrice : na,

     color=red, style=cross,

     linewidth=2, title="Long Stop Loss")


// Submit entry orders

if (enterLong)

    strategy.entry(id="EL", long=true)


// STEP 3:

// Submit exit orders based on take profit price

if (strategy.position_size > 0)

    strategy.exit(id="XL TP", limit=longExitPrice)

    

    // Submit exit orders based on calculated stop loss price

if (strategy.position_size > 0)

    strategy.exit(id="XL STP", stop=longStopPrice)









Responded

1
Developer 1
Rating
(33)
Projects
49
12%
Arbitration
16
0% / 88%
Overdue
10
20%
Free
2
Developer 2
Rating
(203)
Projects
303
35%
Arbitration
56
38% / 38%
Overdue
99
33%
Free
3
Developer 3
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
4
Developer 4
Rating
(70)
Projects
104
54%
Arbitration
3
0% / 67%
Overdue
8
8%
Working
5
Developer 5
Rating
(564)
Projects
933
47%
Arbitration
302
59% / 25%
Overdue
125
13%
Loaded
6
Developer 6
Rating
(137)
Projects
167
35%
Arbitration
11
91% / 0%
Overdue
0
Free
Similar orders
Hello Everyone, I want a professional programmer to help me create an Expert with the ability to take bids in accuracy and be able to manage trades effectively. I have developed a price mechanism that will help to identify if a trade is Going upwards or downwards. This has helped me to identify 2 price positions. So, after establishing the price positions, the next move of the market afterwards will then determine
Create a fix button, click on meta will remove custom indicator from chat, click again will add Also add a background image, the image is given below. Make this on EA Contact me at telegram if you are an expat on this @Gw_rakib1
I am looking for a highly sample and ready and tested profitable EA to purchase.if it meets my requirements i will order same one.EA must be low drawdown high profit on any timeframe
i have a ready made SMC EA and looking for optimizing and debugging and also adding back the missing things in the requirement file. Basically work with the current code and refine it to fit the requirement file. Most indicator is already in the EA and the requirement file below are mostly finish. here are the things need to add back and debug based on the requirement file 1. TP from the filter and need to check
If you think you can replicate EA ("reverse engineering") from Metarader's Market, and create a new EA from scratch that works 100% the same - please send an offer. I have already managed to find out many features of that EA (entry times, risk management, averaging, trailing...) but I still miss a few
Candle wick bot The bot will have a set amount of wick length to enter trade at candle open price, there will be a set Amount in points that the candle wick has to be to then enter that opposite of the wick direction Settings will look like this : Timeframe: (meaning which candles you’re using to measure open price from for the wick length ) If set to 5 min it’ll be using 5 min candles , if set to 15 it’ll use 15
Looking for a developer to create an MT4 EA based on a custom currency strength indicator and simple moving average. Will provide currency strength indicator code to the selected developer. Buy rules If the EA added in the EURUSD chart and EUR has a currency strength above or equal to 6 and USD has strength less than 2. Wait for the prices comes back to SMA and open the buy trade if the price closes above SMA. Place
I have an equity reporter. This equity reporter displays the maximum and minimum equity reached over a specific interval. So, if the interval is set to 24 hours, the script will generate data in the format: "Profit ATT" (profit AtThatTime) shows max./min. during the specific interval This specific report shows data in pips. It can also be set to display in price or percentages. The interval is also easily adjustable
Sistema HTF EFECTIVO 30 - 60 USD
Hola, me gustaría que un programador experimentado creea un sistema de trading EA que abra y cierre operaciones muy rápido en segundos (HFT). Sería óptimo tener una opción/botón para activar solo para comprar o solo para vender (operaciones unidireccionales). Con una buena interfaz gráfica de usuario. Se agradece la implementación de su propia experiencia con sistemas de trading HFT. Es para mercados volátiles como
Hello, I would like an experienced programmer to create an EA trading system which opens and closes trades very fast within seconds (HFT). To have an option/button to activate either for only buy or only sell (one way trading) would be optimal. With a nice GUI. Implementing your own experience with HFT trading systems is welcomed. It's for volatile markets such as XAUUSD or US30. Taking advantage of order placements

Project information

Budget
30+ USD
For the developer
27 USD