Convert simple pinescript study into an EA

MQL4 Experts

Job finished

Execution time 5 hours
Feedback from customer
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.
Feedback from employee
Fast decision , good communication, trusful person

Specification

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.


Responded

1
Developer 1
Rating
(9)
Projects
11
45%
Arbitration
0
Overdue
0
Free
2
Developer 2
Rating
(354)
Projects
631
26%
Arbitration
89
73% / 13%
Overdue
12
2%
Free
3
Developer 3
Rating
(14)
Projects
15
40%
Arbitration
0
Overdue
1
7%
Free
4
Developer 4
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
5
Developer 5
Rating
(19)
Projects
27
19%
Arbitration
6
33% / 33%
Overdue
2
7%
Free
6
Developer 6
Rating
(68)
Projects
111
26%
Arbitration
17
6% / 71%
Overdue
15
14%
Free
7
Developer 7
Rating
(163)
Projects
193
48%
Arbitration
2
50% / 50%
Overdue
1
1%
Free
8
Developer 8
Rating
(4)
Projects
4
0%
Arbitration
1
0% / 100%
Overdue
1
25%
Free
9
Developer 9
Rating
(41)
Projects
46
28%
Arbitration
9
0% / 100%
Overdue
7
15%
Free
10
Developer 10
Rating
(586)
Projects
1045
49%
Arbitration
39
28% / 41%
Overdue
49
5%
Free
11
Developer 11
Rating
(546)
Projects
823
73%
Arbitration
15
53% / 13%
Overdue
193
23%
Working
12
Developer 12
Rating
(66)
Projects
143
34%
Arbitration
11
9% / 55%
Overdue
26
18%
Working
Similar orders
Hi! I am willing to pay for a paid or rental EA with good track record. I have to see results first, try on a demo. Just let me know if you need any information
I need a professional or expert who is a trader and also know about coding that can quote a profitable strategy and code the strategy for me in MT4 with my specification, If you are capable of doing this I will be glad to share my requirement with you to get started
Integration of Supply and Demand Zones from CSV: Develop functionality to read supply and demand zone data from a .CSV file. Define the structure of the CSV file for storing zone data (e.g., price levels, zone type). Implement a mechanism to parse the CSV file and extract relevant zone information. Dynamic Zone Detection: Integrate algorithms to dynamically identify supply and demand zones based on historical price
Need a tradin g robot 30 - 50 USD
I would like to create a robot (another version of a robot I already have) I currently have the source code but would like to have another robot that belongs to me but with different settings, if I provide you with the source code with all the settings are you able to remake me another robot with modifications? and if so what would be your price
邏輯交易EA,主要包括如下內容,(細節後談) 1. 網格繫統:可選:YES/NO. 如果:YES,設置:網格間隔,網格層數,同一個網格線上,可以加倉一次或多次. 2. 開倉:條件開倉,可選:YES/NO.(目前默認爲NO) 分爲市價開倉或者 STOP ORDER/ LIMIT ORDER,多單和空單的開倉設置,可以設置不同手數. 3. 加倉:分爲:固定手數,如:0.03,或末單累加:0.01,或:末單倍數如:1.5倍.多單和空單的加倉方法可以不同設置. 4. 移動止盈.(單獨移動,多/空方整體點數移動/或金額移動) 5. 平倉包括: A.多方/空方止盈線,和多方/空方止損線 (可以設置三條價格:每條選擇:平倉 1/3,1/2,或全部) B.單獨止盈/止損 (多方和空方可以設置不同的,)盈利點數或金額 整體止盈/止損.(多方和空方可以設置不同的,)盈利點數或金額. C.同向對衝平倉(多方獲利單對衝虧損單,空方獲利單對衝虧損單)
How are you today? We’re looking for a ctrader bot that can receive signals from tradingview and place orders on different ctrader accounts, so no strategy coding is required. Here are the details: https://www.loom.com/share/d8166c67a74f46c28920be9e131f8ec7?sid=bd2c6ff2-52e4-4355-b35f-f4fc1bfb0f3b&nbsp ; We would like to know from you what’s the most cost effective method to create this bot. PDF is also attached to
Hello I Need A decompiler that can help me Am looking for a professional that can decompile ea and get me source code iF YOU CAN HELP ME WITH DECOMPILE TO GET SOURCE CODE ONLY DM
Objectif de la modification : 1. Supprimer les sécurités spécifiques pour permettre la compilation avec n'importe quels identifiants de compte réel ou démo. 2. Corriger les erreurs présentes sur chaque ligne du code source. 3. Intégrer les filtres et les flèches d'achat et de vente déjà présents dans le programme existant. 4. Ajouter une fonctionnalité de trailing stop pour améliorer la
Hi there, can you create an addon for Ninja Trader that replicates the Level 2 window? See image attached. I am looking to change the row colours based on the size
Due to the complicity of the strategy on the first two orders I madeI had to create another one with a simple strategy cos many can't create what I'm asking for...Example: : When The market is buying and rejects an has created an M formation the First leg is higher than the second leg(first leg Higher high,second leg lower high then a line must touch the peak of the Higher high then connect with the peak of the lower

Project information

Budget
30 - 50 USD
For the developer
27 - 45 USD
Deadline
to 5 day(s)