An expert advisor based on Market Volatility

MQL5 Experten Forex Stocks

Spezifikation

Safe Haven EA

1)     PLACING ORDERS

EA opens Buy stop and Sell Stop  at a set distance  ‘d’ from below options depending on what is chosen.

Create EA to have below as options

1A) Open of a candle

1B) Current market position

1C) Set price

Example I

 If d = 100, option 1A) is chosen, Daily candle is chosen and openprice of US 30 daily candle is 46600.0 for a chosen lot “ L” = 0.01,

i)                     A buy stop order 0.01 will be placed at 46610.0

ii)                   A sell stop order order will be p

laced  at 46590.0

 Example II

 If d = 200, option 1B) is chosen, and current of US 30 is 46500.0 for a chosen lot “ L” = 0.01,

i)                     A buy stop order 0.01  will be placed at 46520.0

ii)                   A sell stop order 0.01 will be placed at 46480.0

Example III

If d = 300, option 1C) is chosen, and price of US 30 is  set at 46100.0 for a chosen lot “ L” = 0.01,

i)            A buy stop order 0.01 will be placed at 46130.0 when current price get to the set price of 46100

ii)           A sell stop order 0.01 will be placed at 46070.0 when current price get to the set price of 46100

 

2)     SETTING TAKE PROFIT AND STOP LOSS

2A) For all three options 1A, 1B, 1C, there should be an option to set Take profit and Stop Loss.

2B) There should an option to set trailing Stop

  

3)     ORDER TRIGGER

A)     When a  stop order is triggered, the opposite stop order is cancelled and a stop with lot XL is placed at the reference price that led to the order trigger. NB X 4 ie  4, 5, 6  etc. Create and option so the value of X can be decided. 

Lets assume  x= 5 is chosen,

Consider Example I in 1 above.

For  Take profit  = 46820, Trailing Stop trigger = 400 and trailing stop distance set to 10

If buystop (order1)  0.01 at 46610.0 is triggered, sell stop 46590.0 (order 2) will be cancelled and another sell stop order (order 3) 0.01* 5(because x=5 was chosen for this example) will be placed at price 46600.0

Let us assume

 Scenario 1

Price moves to  46820.0

In this scenario take profit will be taken and all orders close

Scenario 2

Price does not get to take profit 46820.0 but gets to 46720 and begins to drop.

In this scenario because price went past 46650.0, Trailing stop would have been triggered at 46650.0 using a following distance of 10 and take profit closed at a price either at 46650.0 or higher.

All orders that was not triggered will be automatically closed because trailing stop was closed at a profit

 

Scenario 3

 Price does not get to chosen take profit or above trailing stop price trigger, but reverses.

Option 1 - In this scenario if price gets to reference price (let this apply  apply to 1B and 1C if they were the options chosen ) automatic pending order with X Lot will be triggered.

Considering our reference example I

When price gets to 46600.0, sell stop 0.05(order 3) will be triggered, the take profit for this order 'SK' will be set at SK= triggered price(TK1) - d/2, triggered price(TK1) - 3/5d , triggered price (TK1) - 2/3d, triggered price – 3/4d depending. Create EA in a way any of these options can be chosen. Triggered price here stands for automatic multiple lot order price placed by ea which got opened because take profit was not reached. We can denote the first as TK1, second TK2 third TK3 etc.

Assuming we chose SK=triggered price(TK1) - d/2

The take profit will be set to 46600.0 – 50points = 46595.0

The stop loss of the buy order (order 1) will also be set to 46595.0  automatically i.e.(46610.0 - (d+d/2 ))=46610.0 -150 points = 46595.0 which is also = SK

A buy stop order of 0.24 i.e  ( 5*(5*L)-L) will be placed at 466610.0 with take profit  =BK= triggered price(TK2) + d/2, = 46610.0 + 50 points = 46615.0

The stop loss of the 0.05 sell order(order 3) will automatically set to BK(46615.0).

The Buy stop order of 0.01 will also have its take profit changed to BK= 46615.0

 If order 3 reaches take profit, all pending orders will be closed. If it does not  the cycle continues.

 

3B) Same Patterns should be in place for Example II  and III

 Option 2 -  Follows same pattern as Option 1 but with below difference. In Option 1 if d/2 or 2/3d  is the chosen  distance for take profit such that SK= TK1 - d/2 or SK= TK1 -2/3d it remains constant be it order 3,  order 5, order 7 or every order then onwards,  however in option 2 the  subsequent d/2s, 2/3ds chosen will be further shortened by a factor 's" and this same factor will multiply lot chosen....

Using our earlier example if s=2, order 4 will be lot =2*(0.24) SK = 46600+ 50points/2.So take profit for order 4 = 46635   

Option3- This is almost same as Option 1 except that automatic  take profits in triggered orders is replaced by trail stop start and following distance.

Still referencing  our example 1

Instead of SK=triggered price(TK1) - d/2,  SK= set take profit say - 2000 = 46400.0 However trail stop start is set at 46595.0 and following 10 or option chosen. In this scenario  50 points and following distance 10 as example


Option 4 - same concept as Option 2 except that takeprofit is replaced by trail stop start triggered price(TK1) - d/2.   Distance keep decreasing while lot increases by a factor


4)     Reccuring orders.

4a) There  should be an option to repeat a cycle once price gets back to the very price that started the cycle if initial cycle is already closed in profit.

Consider Scenario 3 in 3 above.

Assuming price reaches 46595.0 and all orders got closed. EA should place a buystop of 0.01 and

sell stop of 0.01 at 46610.0 and 46590.0  if price gets back to open market price which was 46600.

 

4b) Put an option to determine how many times cycle should be repeated when conditions are met

4c)Ensure  “4b)’ applies to all three ways to start cycle which is 1A), 1B), 1C)

4d) If current market price(option 1B)  is what was chosen, cycle should restart at  time T after which all orders were closed. If T is set = 0, once orders are closed, cycle should resume immediately at the next available current price.

4e) For 1 C) Order cycle should only resume when price returns to set price

4f) If a new candle opens while a cycle on a particular candle is not closed for 1A) option. EA should not start a new cycle. A new cycle only starts once a particular cycle is closed. Set this as true or false.

If false option is chosen EA can start a new cycle while another cycle is in place

 

5)     EA to work on all Candles, at Current market price or Set price depending on what is chosen

Ensure EA works with all candles 1 miniute 5 minute, 15 minutes, 30 minutes, 1 hr, 4 hrs, daily, weekly and Monthly candles

 

6)     Option for EA to work according to a particular set time should be in place.

For example EA can be set to work from 4:00am to 9:00pm GMT,  00:00hh – 23:00 etc

 

7)     EA should have a variable lot option where initial lot placed will be function of equity so as equity increases, initial lot can increase

 

8)     EA should have a magic number and should not get confused if it is used on different time frames at the same time or used on different symbols at one time

 

 

9)     EA should be set in a way it knows public holidays and does not trade on holidays

 

10) EA should have a gap protection option.

EA will trigger an opposite order to hedge market if all orders are not closed at Time To close of market.

This should be a true or false option. Time should be set in seconds.

The EA should close the hedge order at a certain time set once market reopens. Let that time be in seconds.

Create EA to have this option as true or false

 

11) EA should have and option were instead of placing higher lot sizes in the entire cycle it rather places multiple small lot sizes 

Taking Scenario 3 in 3 above, order three whose lot is (0.05) can instead be five of 0.01 lots. This means five 0.01 sell stop orders will have been placed and triggered instead of a single 0.05 sell stop order placed and triggered


12) Ensure EA can be tested on strategy Tester in mt5


13) Ensure EA can trade on mt5 platform              14) EA should work on all currency pairs, stock indices, Crypto, commodities and all other trading instruments.

 



Bewerbungen

1
Entwickler 1
Bewertung
(18)
Projekte
22
9%
Schlichtung
6
33% / 50%
Frist nicht eingehalten
1
5%
Beschäftigt
1
Entwickler 1
Bewertung
(2)
Projekte
3
0%
Schlichtung
1
100% / 0%
Frist nicht eingehalten
0
Frei
1
Entwickler 1
Bewertung
(12)
Projekte
16
13%
Schlichtung
4
50% / 25%
Frist nicht eingehalten
4
25%
Beschäftigt
1
Entwickler 1
Bewertung
(574)
Projekte
945
47%
Schlichtung
309
58% / 27%
Frist nicht eingehalten
125
13%
Frei
1
Entwickler 1
Bewertung
(77)
Projekte
243
74%
Schlichtung
7
100% / 0%
Frist nicht eingehalten
1
0%
Frei
Veröffentlicht: 1 Artikel
1
Entwickler 1
Bewertung
(17)
Projekte
33
45%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
8
24%
Frei
1
Entwickler 1
Bewertung
(271)
Projekte
553
50%
Schlichtung
57
40% / 37%
Frist nicht eingehalten
227
41%
Arbeitet
1
Entwickler 1
Bewertung
(64)
Projekte
144
46%
Schlichtung
19
42% / 16%
Frist nicht eingehalten
32
22%
Frei
2
Entwickler 2
Bewertung
(13)
Projekte
18
11%
Schlichtung
6
33% / 67%
Frist nicht eingehalten
1
6%
Frei
Veröffentlicht: 1 Beispiel
2
Entwickler 2
Bewertung
(1)
Projekte
2
0%
Schlichtung
1
100% / 0%
Frist nicht eingehalten
0
Frei
2
Entwickler 2
Bewertung
(16)
Projekte
35
23%
Schlichtung
4
0% / 50%
Frist nicht eingehalten
2
6%
Arbeitet
2
Entwickler 2
Bewertung
(3)
Projekte
3
33%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Veröffentlicht: 2 Artikel
2
Entwickler 2
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
3
Entwickler 3
Bewertung
(1)
Projekte
1
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
3
Entwickler 3
Bewertung
(311)
Projekte
557
35%
Schlichtung
79
32% / 43%
Frist nicht eingehalten
202
36%
Arbeitet
3
Entwickler 3
Bewertung
(2)
Projekte
3
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
4
Entwickler 4
Bewertung
(60)
Projekte
87
29%
Schlichtung
24
13% / 58%
Frist nicht eingehalten
7
8%
Arbeitet
4
Entwickler 4
Bewertung
(296)
Projekte
475
40%
Schlichtung
105
40% / 24%
Frist nicht eingehalten
80
17%
Überlastet
Veröffentlicht: 2 Beispiele
Ähnliche Aufträge
1. IF price forms: - Higher highs + higher lows → TREND = BUY - Lower highs + lower lows → TREND = SELL ELSE → NO TRADE 2. IF: - Trend = BUY - Price retraces to support zone - Bullish engulfing candle forms - TDI green crosses above red (optional) THEN: - Execute BUY 3. IF: - Trend = SELL - Price retraces to resistance - Bearish engulfing forms - TDI confirms THEN: - Execute SELL 4. Risk per trade = 1% of account Lot
Hi, Before ordering, I want to verify the quality of your ICT/SMC logic. Do you have an existing indicator or strategy (your own work) that I can test on TradingView? If yes, please provide: 1. A demo (invite-only script or video) 2. Proof it is NON-repainting (explained clearly) 3. Live or replay demonstration (not static screenshots) Specifically I want to see: * Clean swing structure (no consecutive highs/lows) *
I want to find a Developer to perform this work and settle payments in this Application. I undertake not to communicate with Applicants anywhere else except this Application, including third-party messengers, personal correspondence or emails. I understand that violators will be banned from publishing Orders in the Freelance service
have the Beatrix Inventor Expert Advisor (EA) that was profitable in the past but has been losing money recently. I need an experienced EA developer/optimizer to study the trade history (especially Stop Loss hits, drawdown periods, SL/TP behavior, win/loss ratio, etc.) and recommend + implement specific tweaks so it becomes consistently profitable again. Your job: 1. Deep analysis of why the EA is no longer
I want robot that can help me trade and make some money so that I can be able to learn from it while I'm still in depot account now.Is how it gonna help me with some money
I’ve been following your profile and I'm interested in your expertise with the ATAS API and C# development. I have a clear technical scope for a high-performance M1 indicator focused on Binary Options and Scalping. ​The core logic is based on institutional Order Flow convergence: ​Stacked Imbalances: 300% ratio with a minimum of 3 consecutive levels. ​Delta/Price Divergence: Filtering for market exhaustion (New Highs
can you help me with editing the existing ATR Trailing Stop Indicator to include a logic to include additional script, where my ninZaRenko bars when it closes above OR below the dynamic stop line, I will be out of trade. Please remember, in this Indicator, now when the price touches the stop line, I am stopped out .. . I want to edit the script, in lieu of the price touch, I like to update this logic to when the bar

Projektdetails

Budget
50+ USD
Ausführungsfristen
bis 30 Tag(e)