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
1046
49%
Arbitrage
39
28% / 41%
En retard
49
5%
Gratuit
11
Développeur 11
Évaluation
(546)
Projets
823
73%
Arbitrage
15
53% / 13%
En retard
193
23%
Travail
12
Développeur 12
Évaluation
(66)
Projets
143
34%
Arbitrage
11
9% / 55%
En retard
26
18%
Travail
Commandes similaires
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
API MT5 Copier 30 - 50 USD
Hello i would have a mt5 copier multi master and multislave with API for all accounts and then copy through the api tell me your experience and your deadline about it
CGG EA 60+ USD
This robot has 4 simple rules. This EA requires an overlay that has 2 indicators with different scales in the same frame. The indicators are the CCI with channels and the CCG (1) both are custom indicators. I need this EA in 3 days and 3 days of testing
We are seeking a highly experienced Forex EA Developer for our MT4 platform. The ideal candidate must meet our following criteria: Language Proficiency: Must speak English fluently - no exceptions Must write in English proficiently - no exceptions Must understand English clearly - no exceptions Availability: Must work in the Eastern Standard Time (EST) zone Developer must be available full-time for this project with

Informations sur le projet

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