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
Wirtschaftskalender 50 - 200 USD
1) Einbinden des Wirtschaftskalender ( https://www.mql5.com/de/economic-calendar ) 2) Unterschiedliche Gewichtung der Ereignisse erkennen (Farbe rot/orange/grau) 3) Je nach Gewichtung unterschiedliche Wartezeiten vor und nach dem Ereigniss Der Sourcecode muss dokumentiert sein. Die Bezahlung des vereinbarten Betrages läuft in 33% Schritten ab. 33% bei Vergabe 33% bei Endabnahme (Version 1.0) 33% nach Abgabe des
Hi, This is my demand: Enhancement to an existing robot with the ability to modify the main time frame and indicators settings. Buy/Sell Stops are placed depending on candle positioning and a positive/negative Bulls Power. Trades are supplemented after reaching 10 points of profit. The robot should also support a balance option for propfirm accounts, switchable to use real account balance when needed. I will send
algo trading application want to developed Prerequisites for ordering a trading robot Trading robots are programs, which operate according to underlying algorithms. An algorithm is a set of actions that need to be performed in response to certain events. For example, the most common task in algo trading is the identification of the "New bar" event . When the event occurs, the robot checks the emergence of trading
I have list of free indicators in tradingview and i would like to convert them into an mt4 ea, But the EA will have and work based on the indicators features The list of the are listed as follows :> 1. Market Structure Break And Order block. By EmreKb 2. Rainbow Adaptive RSI by LuxAlgo 3. Multiple MA (21,50,100) 4. SuperTrend Please don't apply if can't do this, So we won't ourselves time
Hi I do not know why but my other order have been deleted and it's not me... I do not know what i did wrong, let me explain again. I dont want you to crack a code or decompile. I want to create a scalper EA with the option I do ask. I had somebody built a EA called Drawdown manager for me that I do use to manage risk of any EA that I test and I have the built code. My problem is that I cannot back test this EA Fast
CHAPTER 1: BASICS 1.THE BASICS 1.1. EXPANSION AND RETRACEMENT Expansion =>occurs when there is an impulse movement towards a direction. Retracement => is the correction movement after an impulse movement. 1.2. FIBBONACCI RETRACEMENT USED TO DETERMINE THE END OF THE RETRACTION MOVEMENT, USUALLY THE PRICE RETRACTS TO 50% OR UNTIL OTE (0.62, 0.705, 0.79) BEFORE ANOTHER IMPULSE MOVEMENT OCCURS. 1.3. BMS - BREAK IN MARKET
Am looking for a developer who can convert an MT5 indicator into MT5 EA. I have the source code of the indicator and i want it modified a little to fit my parameters. Only developer with Smart Money Concept should get in touch. The developer will also add another MT5 indicator( this will be used to confirm entries and exit of orders. More details to follow
I want a program that automatically disables manual trade execution once a specified number of trades have already been placed. ie. After a total of 3 trades have been placed on that day, manual trade execution should be disabled. I want the program to also limit the amount of lots that can be traded in any given day. ie. Maximum of 15 standard lots in any given day. The program should disable manual trade execution
Currency Strength EA 30 - 80 USD
hi These ACS&Csdash indicators work in the same way but provide signals of different currency pairs. And Either of these two ACS indicators should be selected any one and set to trade. It provides signals of multiple currency pairs in the interface So the EA should work like that to trade multiple currency pairs on one chart. CsDash should analyze whether it is a strong signal to show on the dash board and make a
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

Project information

Budget
30+ USD
For the developer
27 USD