Breakeven stoploss

MQL4 Indikatoren Experten

Spezifikation

As you can see from the EA I have attached. The stop moves to breakeven + 5pips when the price moves in the direction of profit by 7 pips + 5 pips. The issue with this stop is it moves from entry price(openorderprice) due to slippage sometimes entry price is not always candlestick open(which is when the trade is supposed to open.


I want the code changed so that breakeven stoploss to be set from candlestick open.


he stoploss code I am using at the moment is shown below.


void TrailingStopBE(int type, double profit, double add) //set Stop Loss to open price if in profit

  {

   int total = OrdersTotal();

   profit = NormalizeDouble(profit, Digits());

   for(int i = total-1; i >= 0; i--)

     {

      while(IsTradeContextBusy()) Sleep(100);

      if(!OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) continue;

      if(OrderMagicNumber() != MagicNumber || OrderSymbol() != Symbol() || OrderType() != type) continue;

      RefreshRates();

      if((type == OP_BUY && Bid > OrderOpenPrice() + profit && (NormalizeDouble(OrderStopLoss(), Digits()) <= 0 || OrderOpenPrice() > OrderStopLoss()))

      || (type == OP_SELL && Ask < OrderOpenPrice() - profit && (NormalizeDouble(OrderStopLoss(), Digits()) <= 0 || OrderOpenPrice() < OrderStopLoss())))

         myOrderModify(OrderTicket(), OrderOpenPrice() + add, 0);


 TrailingStopBE(OP_BUY, 70 * myPoint, 0 + 50 * myPoint); //Trailing Stop = go break even + fixed value

   TrailingStopBE(OP_SELL, 70 * myPoint, 0 - 50 * myPoint); //Trailing Stop = go break even - fixed value

Dateien:

Bewerbungen

1
Entwickler 1
Bewertung
(586)
Projekte
918
46%
Schlichtung
31
39% / 29%
Frist nicht eingehalten
93
10%
Frei
2
Entwickler 2
Bewertung
(169)
Projekte
204
30%
Schlichtung
25
40% / 44%
Frist nicht eingehalten
12
6%
Frei
3
Entwickler 3
Bewertung
(92)
Projekte
132
35%
Schlichtung
13
38% / 31%
Frist nicht eingehalten
32
24%
Frei
4
Entwickler 4
Bewertung
(24)
Projekte
28
32%
Schlichtung
1
0% / 0%
Frist nicht eingehalten
0
Frei
5
Entwickler 5
Bewertung
(19)
Projekte
35
26%
Schlichtung
10
30% / 70%
Frist nicht eingehalten
5
14%
Frei
6
Entwickler 6
Bewertung
(105)
Projekte
135
42%
Schlichtung
19
16% / 53%
Frist nicht eingehalten
20
15%
Beschäftigt
7
Entwickler 7
Bewertung
(21)
Projekte
24
17%
Schlichtung
15
20% / 40%
Frist nicht eingehalten
6
25%
Frei
8
Entwickler 8
Bewertung
(26)
Projekte
29
45%
Schlichtung
0
Frist nicht eingehalten
1
3%
Frei
9
Entwickler 9
Bewertung
(63)
Projekte
84
26%
Schlichtung
23
22% / 48%
Frist nicht eingehalten
23
27%
Frei
10
Entwickler 10
Bewertung
(87)
Projekte
114
26%
Schlichtung
7
29% / 57%
Frist nicht eingehalten
5
4%
Frei
Ähnliche Aufträge
Hello, i am searching for an experienced, professional software engineer, who can convert three Indicators from MQL4 to MQL5. This may sound like an easy job, but one indicator is like a trading system and therefore a bit complex. So you need to have a very good understanding of both languages. You should also be able to code MQL5 classes ( https://www.mql5.com/en/docs/basis/oop ). The intention is to code MQL5
I came across an indicator that's perfectly good in catching spikes in boom amd crash but i would want it to be modified and to improve accuracy As a professional you will have to go through the indicator and explain to me the strategy with which the indicator was buid and tell me the possibility of improving it better
Delete the minutes field the days dirctaly =1440 ( hide for the customer ) . The indicator setting appears with the indicator on the screen in the same color chosen The possibility of more than one indicator appearing on the screen. Good arrangement
An EA that executes when the 21 and 55 SMA Cross on certain time frame also the EA will understand supply and demand levels and executes when price reacts on this levels specified and target/stoploss levels will be predetermined...also the robot will also comprise stochastic oscillator
Indicator MT5 from Pine Script 5 (TradingView) indicators Request: Develop 1 Indicator mql5 from 2 TV (Pine script 5) indicators Get only basic features, I just need to get values in Copybuffer() for mql5 expert. Total MT5 indicator: 4 levels in the chart + 1 oscillator (line/histogram) =================================== TV Indicator 1: Smart Money Concepts Just get High/low levels from internal/externals (smaller /
I have a full code ,, There are some errors in this.It does not add to the chart, does not show arrow marks, does not alert ,, fix this problem and work properly,, Contact on telegram @Gw_rakib1
Starting from scratch, I need a solution to develop my own crypto trading and exchange platform. This platform should compare prices across various exchanges like Coinbase, Binance, KuCoin, and Unocoin, as well as different cryptocurrencies. The solution must identify opportunities to buy on one platform and sell on another for a profit, transferring funds to my personal wallet instantly for security. The bot should
I am looking for a programmer to do EA trader. If you can understand what I want from the video i do and you can do it, contact me because you will be able to do what I want. https://drive.google.com/file/d/1wbHxbUQQqCkdpr0-pHfIh2b288LzYTV2/view?usp=sharing
I have an indicator i will like to view in form of dashboard across various timeframes, i also will like a push notifications alert feature that will appear on my mt4 mobile to keep track of my trading pairs
Need a dashboard, which can monitor up to 30 selected pairs in selected time frames. It monitors AO, MACD and stochastic. In the cells of dashboard, if AO is positive in the relevant symbol/tf, it writes "UP". When one of AO is above 0 level AND Stochastic is in OS zone it writes "UPUP". When AO is above 0 and when stochastics is oversold minimum of two times,it will alert UPU2 if AO is negative below 0 in the

Projektdetails

Budget
30+ USD
MwSt (23%): 6.9 USD
Insgesamt: 36.9 USD
Für die Entwickler
27 USD
Ausführungsfristen
von 1 bis 3 Tag(e)