Convert simple pinescript study into an EA

MQL4 Эксперты

Работа завершена

Время выполнения 5 часов
Отзыв от заказчика
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.
Отзыв от исполнителя
Fast decision , good communication, trusful person

Техническое задание

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.


Откликнулись

1
Разработчик 1
Оценка
(9)
Проекты
11
45%
Арбитраж
0
Просрочено
0
Свободен
2
Разработчик 2
Оценка
(356)
Проекты
632
26%
Арбитраж
89
73% / 13%
Просрочено
12
2%
Свободен
3
Разработчик 3
Оценка
(14)
Проекты
15
40%
Арбитраж
0
Просрочено
1
7%
Свободен
4
Разработчик 4
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
5
Разработчик 5
Оценка
(19)
Проекты
27
19%
Арбитраж
6
33% / 33%
Просрочено
2
7%
Свободен
6
Разработчик 6
Оценка
(68)
Проекты
111
26%
Арбитраж
17
6% / 71%
Просрочено
15
14%
Свободен
7
Разработчик 7
Оценка
(163)
Проекты
193
48%
Арбитраж
2
50% / 50%
Просрочено
1
1%
Свободен
8
Разработчик 8
Оценка
(4)
Проекты
4
0%
Арбитраж
1
0% / 100%
Просрочено
1
25%
Свободен
9
Разработчик 9
Оценка
(41)
Проекты
46
28%
Арбитраж
9
0% / 100%
Просрочено
7
15%
Свободен
10
Разработчик 10
Оценка
(586)
Проекты
1046
49%
Арбитраж
39
28% / 41%
Просрочено
49
5%
Свободен
11
Разработчик 11
Оценка
(546)
Проекты
823
73%
Арбитраж
15
53% / 13%
Просрочено
193
23%
Работает
12
Разработчик 12
Оценка
(66)
Проекты
143
34%
Арбитраж
11
9% / 55%
Просрочено
26
18%
Работает
Похожие заказы
Good morning! I‘m looking for an experienced mql5 dev to code several strategies in the future. I’m running a community which wants to code their strategies. I‘m also coding but the amount of orders is too high. I‘m collecting the orders, creating the specs incl. inputs and make a profit split. Your skills: at least 5 years of MQL5 experience Trading know-how: You know what FVG, liquidity runs, patterns, orderblocks
i need local ea copier with reverse option only copier trades reversed to another mt5 .. it's simple I think it dont have alot of options the ea must copier reversal trades to another mt5 close trades when i close master account trades
I'm a professional trader looking to see how much a bot would cost. This method is profitable and tested like my other 7 other systematic methods that are created already. the method consists of a range being broken high or low and enters on a reversal sign. The method uses fractals, set pip distance tp with set tp stop loss. There will be more work if this relationship goes well. Thank you
Forex robot Creator 30 - 50 USD
I would like my robot to open up to 2000 trades. It should be 90-97% accurate at all times. It should trade currency pairs, Indexes and Gold. It must analyze the chart automatically and it must be easy to be set up. It must not lose any money. Profitable all the way. I would like someone who is highly experienced to do the job. NB!! MOBILE ROBOT. It must have automated TP and SL. all trades should be trigger anytime
Looking to have made a HFT/EA for live cash account's for indices, metals and forex for MT5 3 separate EA’s. Must not have any losses. ( I have a few MT4 HFTs that just take profit no losses) so I need to have the same with this new MT5 HFT. (If you need a copy to see how it operates let me know) Please only reply if you can program this HFT I request or have one like I requested. All business and messages will be
Hey, I would like to run EA on muliple symbols and on each symbol can have different preset depending on strategy optimation. It should run on MT5. == I am a beginner in mql5, tried to write it on my own so some code exists, but open positions on the next opened bar, and trailing stop is fixed, not ATR based. It calculates SL as % of risk but doesn't work when position size is bigger than balance allows (so no max
I need a programmer that can teach me how to get historical tick data (from predownloaded csv) and make it display when back-testing in the MT4 terminal. What I need from you is to build a panel that reads in the ticks from a predefined start time up to and including the current time of the back-test. It needs to: 1. Count the total number of ticks from the predefined start time. 2. Display the current tick's ask
Hey, im looking for a person who can create an my very own version of pineconnector, which should have all the option of pineconnector and it should be user-friendly without any complications
HI, I'm looking for an experienced person who can add buy/sell indications and Alerts on existing Pinescript along with little modification of the script and the script should connect to MT5 platform using pineconnector MT5 platform should excute trade instantly as based on the alerts/indications on tradingview script
Semi Auto EA required 30 - 100 USD
hi as u see i need an ea or semi auto ea that draws orders with money managment based on my manual drawing box so no indicators are used only money managment and orders based on my drawing boxex

Информация о проекте

Бюджет
30 - 50 USD
Исполнителю
27 - 45 USD
Сроки выполнения
до 5 дн.