Expert Adviser based on a Tradingview indicator

MQL5 Asesores Expertos

Trabajo finalizado

Plazo de ejecución 1 día
Comentario del Cliente
Very fast and professional work. Made exactly what I wanted. Made a small mistake but fixed it right away. Definitely worth 5 stars.
Comentario del Ejecutor
Thank you!

Tarea técnica

Hi I would like to have a trading robot build based on a trading view indicator (Moving Average) and then supplemented with extra settings.

 

In the attachment I have added the script with a screenshot of the indicator

The robot must perform the following: When the color/direction changes, the open position must be closed and a new one opened based on the new color/direction. The new position will then remain open until the color/direction changes again. This should keep repeating until you turn off the robot

 

I would like to have the following options on it:

·         Stoploss with the function to turn it on or off and then the number of points distance

·         The ability to automatically bring the stop loss to the breakeven level and then a few points just above it so that any commissions are covered. This option must be able to be turned on or off and then the distance at which it is activated in points.

·         The lot size specified on which the Expert Advisor will trade.

·         The ability to activate a trailing stop which can then be turned on or off with the distance in points at which it follows the stock market

·         Defaults to Current Timeframe on Chart.

·         Ability to set Moving Averages to Custom Chart TimeFrame. Example Daily Mon on 60 Minute chart. Many Different Options from Weekly to 1 Minute. (just like in the indicator on tradingview)

·         Use different timeframe what you can select.

·         Change color based on direction in the graph. just like in the indicator

·         The moving averange length - lookback period adjustable in days. Just like in the indicator on tradingview.

·         The ability to set how the moving range goes. 1=SMA 2=EMA 3=WMA 4=HullMA. Just like in the indicator on tradingview.

·         Everything must be operated/changed with a simple menu, nothing complicated.

 

 

Below is a copy of the script of the indicator on tradingview on which the Expert Advisor should be based

 

Moving Averages Supported in Inputs Tab

SMA - Simple Moving Average

EMA - Exponential Moving Average

WMA - Weighted Moving Average

HullMA - Hull Moving Average

VWMA - Volume Weighted Moving Average

 

Script:

//Created by user ChrisMoody 4-24-2014...Updated 7/28/2014 added Tilson T3

//Modified on 5-5-14 for 4apprentice08 with Optional BarColor based on Price  Crossing MA #1, or #2

//Modified on 7-25-2014 to Add in Tilson T3

//Plots The Majority of Moving Averages

//Defaults to Current Chart Time Frame --- But Can Be Changed to Higher Or Lower Time Frames

//2nd MA Capability with Show Crosses Feature

study(title="CM_Ultimate_MA_MTF_V2", shorttitle="CM_Ultimate_MA_MTF_V2", overlay=true)

//inputs

src = close

useCurrentRes = input(true, title="Use Current Chart Resolution?")

resCustom = input(title="Use Different Timeframe? Uncheck Box Above", type=resolution, defval="D")

len = input(20, title="Moving Average Length - LookBack Period")

//periodT3 = input(defval=7, title="Tilson T3 Period", minval=1)

factorT3 = input(defval=7, title="Tilson T3 Factor - *.10 - so 7 = .7 etc.", minval=0)

atype = input(1,minval=1,maxval=8,title="1=SMA, 2=EMA, 3=WMA, 4=HullMA, 5=VWMA, 6=RMA, 7=TEMA, 8=Tilson T3")

spc=input(false, title="Show Price Crossing 1st Mov Avg - Highlight Bar?")

cc = input(true,title="Change Color Based On Direction?")

smoothe = input(2, minval=1, maxval=10, title="Color Smoothing - Setting 1 = No Smoothing")

doma2 = input(false, title="Optional 2nd Moving Average")

spc2=input(false, title="Show Price Crossing 2nd Mov Avg?")

len2 = input(50, title="Moving Average Length - Optional 2nd MA")

sfactorT3 = input(defval=7, title="Tilson T3 Factor - *.10 - so 7 = .7 etc.", minval=0)

atype2 = input(1,minval=1,maxval=8,title="1=SMA, 2=EMA, 3=WMA, 4=HullMA, 5=VWMA, 6=RMA, 7=TEMA, 8=Tilson T3")

cc2 = input(true,title="Change Color Based On Direction 2nd MA?")

warn = input(false, title="***You Can Turn On The Show Dots Parameter Below Without Plotting 2nd MA to See Crosses***")

warn2 = input(false, title="***If Using Cross Feature W/O Plotting 2ndMA - Make Sure 2ndMA Parameters are Set Correctly***")

sd = input(false, title="Show Dots on Cross of Both MA's")

 

res = useCurrentRes ? period : resCustom

//hull ma definition

hullma = wma(2*wma(src, len/2)-wma(src, len), round(sqrt(len)))

//TEMA definition

ema1 = ema(src, len)

ema2 = ema(ema1, len)

ema3 = ema(ema2, len)

tema = 3 * (ema1 - ema2) + ema3

 

//Tilson T3

factor = factorT3 *.10

gd(src, len, factor) => ema(src, len) * (1 + factor) - ema(ema(src, len), len) * factor

t3(src, len, factor) => gd(gd(gd(src, len, factor), len, factor), len, factor)

tilT3 = t3(src, len, factor)

 

 

avg = atype == 1 ? sma(src,len) : atype == 2 ? ema(src,len) : atype == 3 ? wma(src,len) : atype == 4 ? hullma : atype == 5 ? vwma(src, len) : atype == 6 ? rma(src,len) : atype == 7 ? 3 * (ema1 - ema2) + ema3 : tilT3

//2nd Ma - hull ma definition

hullma2 = wma(2*wma(src, len2/2)-wma(src, len2), round(sqrt(len2)))

//2nd MA TEMA definition

sema1 = ema(src, len2)

sema2 = ema(sema1, len2)

sema3 = ema(sema2, len2)

stema = 3 * (sema1 - sema2) + sema3

 

//2nd MA Tilson T3

sfactor = sfactorT3 *.10

sgd(src, len2, sfactor) => ema(src, len2) * (1 + sfactor) - ema(ema(src, len2), len2) * sfactor

st3(src, len2, sfactor) => sgd(sgd(gd(src, len2, sfactor), len2, sfactor), len2, sfactor)

stilT3 = st3(src, len2, sfactor)

 

avg2 = atype2 == 1 ? sma(src,len2) : atype2 == 2 ? ema(src,len2) : atype2 == 3 ? wma(src,len2) : atype2 == 4 ? hullma2 : atype2 == 5 ? vwma(src, len2) : atype2 == 6 ? rma(src,len2) : atype2 == 7 ? 3 * (ema1 - ema2) + ema3 : stilT3

 

out = avg

out_two = avg2

 

out1 = security(tickerid, res, out)

out2 = security(tickerid, res, out_two)

 

//Formula for Price Crossing Moving Average #1

cr_up = open < out1 and close > out1

cr_Down = open > out1 and close < out1

//Formula for Price Crossing Moving Average #2

cr_up2 = open < out2 and close > out2

cr_Down2 = open > out2 and close < out2

//barcolor Criteria for Price Crossing Moving Average #1

iscrossUp() => cr_up

iscrossDown() => cr_Down

//barcolor Criteria for Price Crossing Moving Average #2

iscrossUp2() => cr_up2

iscrossDown2() => cr_Down2

 

ma_up = out1 >= out1[smoothe]

ma_down = out1 < out1[smoothe]

 

col = cc ? ma_up ? lime : ma_down ? red : aqua : aqua

col2 = cc2 ? ma_up ? lime : ma_down ? red : aqua : white

 

circleYPosition = out2

 

plot(out1, title="Multi-Timeframe Moving Avg", style=line, linewidth=4, color = col)

plot(doma2 and out2 ? out2 : na, title="2nd Multi-TimeFrame Moving Average", style=circles, linewidth=4, color=col2)

plot(sd and cross(out1, out2) ? circleYPosition : na,style=cross, linewidth=15, color=aqua)

//barcolor Plot for Price Crossing Moving Average #1

barcolor(spc and iscrossUp() ? (iscrossUp() ? yellow : na) : na)

barcolor(spc and iscrossDown() ? (iscrossDown() ? yellow : na) : na)

//barcolor Plot for Price Crossing Moving Average #2

barcolor(spc2 and iscrossUp2() ? (iscrossUp2() ? yellow : na) : na)

barcolor(spc2 and iscrossDown2() ? (iscrossDown2() ? yellow : na) : na)

 


Archivos adjuntos:

JPG
cm_ultimate.jpg
187.3 Kb

Han respondido

1
Desarrollador 1
Evaluación
(55)
Proyectos
96
40%
Arbitraje
13
38% / 62%
Caducado
25
26%
Libre
2
Desarrollador 2
Evaluación
(563)
Proyectos
932
47%
Arbitraje
302
59% / 25%
Caducado
124
13%
Ocupado
Solicitudes similares
- Automation of layering entry criteria with a mix of initial market orders and subsequent limit orders. Automation of stop loss applied to all these order's with SL moving to above entry when criteria has been met. Automation of TPs - This is a drag and drop ea to the chart when I manually see price action appear. I am not looking for the EA to spot price action
Hello, I post daily analyses on my WordPress site, and I am looking for a developer capable of creating a bot that automatically retrieves trading information (buy/sell, entry, take profit, stop loss) from my analyses and replicates them on MT5 automatically. The goal is to develop a solution that is as simple as possible. This bot will also need to include a few additional features, such as money management, among
Input will be Buy Levels and Sell Level. Qty-> Addition | Multiply Buffer -> in Points with Level Taret -> in points/Lot Price close above Level1 then Buy Price close below Level2 then Sell Will close the position if in Positive, otherwise will not close the position and Open the opposite Position with added Quantity of the last open position. if Price thouches the Buffer Level, the opposite position will be created
**Project Title: Forex Layering Tool Expert Advisor (EA)** **Project Overview:** I am seeking an Expert Advisor (EA) that will simplify the process of entering multiple trade layers based on specified price ranges. **Key Features:** **Layering Capability:** - The EA will support the opening of 5 to 50 layers of a defined price entry range - Each layer will have a fixed lot size that can be defined by the user
very simple rule buy rate 2 sl 1 if market reach 3 sl 2 market reach 4 sl 3 sl hit reverse trade open too with same 1:1 trail sl system if sl hit reverse trade open with same sl trail function 1 input open trade with buy or sell option 2 sl in pip .............xyz 3 lot size ............. xyz 4 distance from sl when sl trail one step [main point] Iam buying in rate of 2 my sl is 1 market reach 3 my sl is 2 market
Purpose: 1. The EA should catch the trend and follow it up or down. 2. The EA must use volitile and volume (strong money flow/ATR or ADX. Feel free to come up with suggestions for indicators we can use. 3. EA must have a minimal Draw down at 3-5% MT4 EA Inputs • Lot size = 0.1 • Use Dynamic Lots = true/false • Risk Percentage of your balance= 2% • Min Allowed Lot Decimals = 0.1 or 0.01 or 1 • SL pips = 100 • TP Pips
The pink panther 2.0 30 - 200 USD
.I would really like to request for a mobile robot. The robot that will work for me and that is accurate so that it will make me a profit everyday.Opens and closes orders for itself and is able to trade more than one trade every time it sees a trading opportunity and a robot that has the ability to open trades with bigger lot size
Build this Expert Advisor (EA) 1. Risk Management Risk per Trade : The EA will calculate the lot size based on the risk percentage (1-2% of the account balance). This will be a customizable input. Stop Loss & Trailing Stop : The EA will place a stop loss at a defined level (based on strategy parameters like ATR, recent support/resistance, etc.) and will implement a trailing stop to lock in profits as the trade moves
Modify MT4 EA 30+ USD
Hello good Day, I would like to make a modification to an mql4 robot that I have and I am sure that by doing a couple of additional things it would be perfect. looking for someone to help me with it, and make sure you understand Spanish because the Mql4 is in Spanish, I need to place a max order, a filter for operating hours, and add a counter order to the grid, that is, when opening the final order "N" of the grid
Hello good Day, I would like to make a modification to an mql4 robot that I have and I am sure that by doing a couple of additional things it would be perfect. looking for someone to help me with it, and make sure you understand Spanish because the Mql4 is in Spanish

Información sobre el proyecto

Presupuesto
30+ USD
IVA (21%): 6.3 USD
Total: 36.3 USD
Para el ejecutor
27 USD