Convert simple pinescript study into an EA

MQL4 Experts

Tâche terminée

Temps d'exécution 5 heures
Commentaires du client
One of the easiest purchases I have made. He gave me a demo of the product which was pretty much perfect. On budget, on time, ideal.
Commentaires de l'employé
Fast decision , good communication, trusful person

Spécifications

I would like to convert this simple pinescript study into an expert advisor:

study("myStudy1",overlay=true, shorttitle="study1")

boxp=input(5, "BOX LENGTH")

LL = lowest(low,boxp)
k1=highest(high,boxp)
k2=highest(high,boxp-1)
k3=highest(high,boxp-2)

NH =  valuewhen(high>k1[1],high,0)
box1 =k3<k2
TopBox = valuewhen(barssince(high>k1[1])==boxp-2 and box1, NH, 0)
BottomBox = valuewhen(barssince(high>k1[1])==boxp-2 and box1, LL, 0)


plot(TopBox, linewidth=3, color=green, title="TBbox")
plot(BottomBox, linewidth=3, color=red, title="BBbox")


The study looks like this:

Study1


SELL SIGNAL:

When price crosses the red line, open sell at market price

Stop loss is the GREEN line

Take profit target is 4:1 reward ratio, so will depend on the size of the stop loss


BUY SIGNAL:

When the high crosses the green line, open a buy at market price

Stop loss is the RED line

Take profit target is 4:1 reward ratio, so will depend on the size of the stop loss


LOT SIZE:

calculation based on percentage of account, for example if the user chooses 1% risk, then calculation needed to work out the lot size.


EXIT CONDITIONS:

If short, exit the trade anytime that price touches the GREEN line (similar to a trailing stop)

If long, exit the trade anytime that price touches the RED line (similar to a trailing stop)


GENERAL RULES:

Expert should ignore all existing trades without the magic number

No hedging - so if an opposite signal happens during a trade, the expert needs to close the trade first, then open a new trade in the opposite direction

The maximum open trades (opened from the expert advisor) should be 1 per market. While a trade is already open, the expert will ignore new signals in the same direction.

Trades need to alternate - once a sell trade closes, only a buy signal can open next. Once a buy trade closes, only a sell signal can open next etc.


Répondu

1
Développeur 1
Évaluation
(9)
Projets
11
45%
Arbitrage
0
En retard
0
Gratuit
2
Développeur 2
Évaluation
(356)
Projets
632
26%
Arbitrage
89
73% / 13%
En retard
12
2%
Gratuit
3
Développeur 3
Évaluation
(14)
Projets
15
40%
Arbitrage
0
En retard
1
7%
Gratuit
4
Développeur 4
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
5
Développeur 5
Évaluation
(19)
Projets
27
19%
Arbitrage
6
33% / 33%
En retard
2
7%
Gratuit
6
Développeur 6
Évaluation
(68)
Projets
111
26%
Arbitrage
17
6% / 71%
En retard
15
14%
Gratuit
7
Développeur 7
Évaluation
(163)
Projets
193
48%
Arbitrage
2
50% / 50%
En retard
1
1%
Gratuit
8
Développeur 8
Évaluation
(4)
Projets
4
0%
Arbitrage
1
0% / 100%
En retard
1
25%
Gratuit
9
Développeur 9
Évaluation
(41)
Projets
46
28%
Arbitrage
9
0% / 100%
En retard
7
15%
Gratuit
10
Développeur 10
Évaluation
(586)
Projets
1049
49%
Arbitrage
39
28% / 41%
En retard
49
5%
Gratuit
11
Développeur 11
Évaluation
(550)
Projets
829
73%
Arbitrage
15
53% / 13%
En retard
193
23%
Travail
12
Développeur 12
Évaluation
(67)
Projets
144
34%
Arbitrage
10
10% / 60%
En retard
26
18%
Gratuit
Commandes similaires
I am developing a master EA that integrates several sub-EAs. The project is complex, and the documentation is thoroughly structured, spanning 50 pages with detailed step-by-step procedures. 1st sub-EA: This EA opens trades without using indicators. Instead, it opens a new trade based on the color or status of the last candle. For instance, if the last candle was green, a new buy trade is opened. 2nd sub-EA: This EA
Good Day I would like to order a trading robot. Pairs: XAUUSD (GOLD) EUR/USD USD/JPY The robot should be trading daily with TP/SL build in, would like to have trailing and stop loss, should execute up to 5 trades (preffarable setting choice) up to 10 trades Los sizes to be choise setting, must also trade major US vews events Like:US- PPI, CPI, NFP, Sales m/m and so on Must also show/display alert when opening
Hello Guys, I need a trading bot for the MT5 to place order based on my trading strategy which is based on - >> entry based on EMA with rejection from specific levels like support and resistance area - levels and time frame i will apply into the robot manually on daily basis. also need - trailing stoploss , shift to breakeven after gaining some points. need a highly expert developer
Trade Manger EA 30+ USD
Hello Programmer! I am looking to build an EA that will place my trade and manage it. Once i have manually found my setup, I will want an EA to open the trade, set the R:R and manage it according to my specifications. please take a look at the attached to get an Idea of what I would like. I will require the source code once completed
Hello there i need someone who will create a robot that will calculate the movement between buy/sell and show where to take profit the robot should work with all currency and indices including stock
EA to send account history to web request. It should send every 5 mins or when there is an update. It then sends the json to a web request where gain, drawdown, balance, equity will be displayed
I have a full strategy based on indicator and candle based on . i would like to make it into a robot which will trade for me on a specific time and specific rules. i need a person who can do this project for me. If you have done this type of job . you are most welcome for this. Apply only if you know binary trading option and binomo trading platform well and how it works
Preciso de um EA, que faça o fecho automático de operações abertas no final da sessão e nas notícias de alto impacto. Um EA simples com apenas 1 função. Fecho das operações abertas
Enter buy trade at close of candle when bar closes above the 3 emas. Emas are 34 ema, 64 ema and 128 ema. For a buy trade the 34 ema must be above the other two emas. The 64 ema should be in the middle. The 128 ema should be below the other two emas. For a buy trade the Awesome Oscillator should be above the middle line and colored green. Exit a buy trade when price touches 64 ema. Sell trade same conditions as buy
I want to make AI based on Attached Picture Swing High low. If you have experience can share demo first. Stop loss, take profit, trailing , break even ,DD etc. also amiable

Informations sur le projet

Budget
30 - 50 USD
Pour le développeur
27 - 45 USD
Délais
à 5 jour(s)