Trailing Stop

MQL4 Esperti

Lavoro terminato

Tempo di esecuzione 19 ore
Feedback del dipendente
Thank you for your order.

Specifiche

I need a Trailing Stop that is based on the highest high or the lowest low after the order is opened. 

For the long trade, I need the trailing stop to move the stop loss price to the highest high price after the order is opened minus the 2 Average True Range. For the long trade, if the bar that the trade is entered is the highest bar (the system usually enters a trade at the opening of the bar) after the trade is entered, the trailing stop should include the bar that the trade is entered.  As for short trade, I need the trailing stop to move the stop loss price to the lowest low price after the order is opened plus the 2 Average True Range. For the short trade. if the bar that the trade is entered is the lowest bar (the system usually enters a trade at the opening of the bar) after the trade is entered, the trailing stop should include the bar that the trade is entered. 

To make this trailing stop more flexible, I need you to make number of ATRs as an input as well. 

The function should include the code attached. 

void AdjustTrail()
{

//buy order section
   for(int b=OrdersTotal()-1;b>=0;b--)
                {
      if(OrderSelect(b,SELECT_BY_POS,MODE_TRADES))
         if(OrderMagicNumber()==MagicNumber)
            if(OrderSymbol()==Symbol())
               if(OrderType()==OP_BUY)
                   if(OrderStopLoss()< B_ATRStop)
                        {                                                                                               OrderModifyResult=OrderModify(OrderTicket(),OrderOpenPrice(),BATRStop,OrderTakeProfit(),0,Orange);
                        }
                }

for(int s=OrdersTotal()-1;s>=0;s--)
                {
      if(OrderSelect(s,SELECT_BY_POS,MODE_TRADES))
         if(OrderMagicNumber()==MagicNumber)
            if(OrderSymbol()==Symbol())
               if(OrderType()==OP_SELL)
                  if(OrderStopLoss()> S_ATRStop)
                        {                                                                       OrderModifyResult=OrderModify(OrderTicket(),OrderOpenPrice(),SATRStop,OrderTakeProfit(),0,Orange);
                        };
                }

If there is an error code in sending the order, the function should be able to resend the order 3 times with a 1sec pause in between. 






Con risposta

1
Sviluppatore 1
Valutazioni
(584)
Progetti
915
46%
Arbitraggio
31
39% / 29%
In ritardo
93
10%
In elaborazione
2
Sviluppatore 2
Valutazioni
(33)
Progetti
35
40%
Arbitraggio
11
9% / 91%
In ritardo
4
11%
Gratuito
3
Sviluppatore 3
Valutazioni
(488)
Progetti
1014
58%
Arbitraggio
29
28% / 24%
In ritardo
131
13%
In elaborazione
4
Sviluppatore 4
Valutazioni
(277)
Progetti
334
55%
Arbitraggio
14
36% / 29%
In ritardo
1
0%
Gratuito
Ordini simili
1. I want function that will use the totalBuyLots and totalSellLots to place trades when there is reverse trade direction. For example, if there is an open trade of buy, 0.1, 0.1, 0.1, then if the trade direction change to sell, meaning a sell trad is opened, then the totalBuyLots which now 0.3 will be used to open the sell of 0.3 lots. Same if a sell trade is opened first, then total lots will be use d when
Please make a new pending order software and add it to the each of the Ea's that I would send the source codes. If any of the settings of the usual pattern of the Ea's have there in the EA's are not clear to you, then I will explain that part
I wan to oder a product for copytrade online like that : - master on mt4 - slaver (copier) by python that mean MT4 open an oder, python will open the same on client account => python will click the mouse then results will show manual (not expert) value : autolot (ratio with receiver balance) - fixed lot - Smart ratio (ratio with master account) trade on many pairs get source for manage license hide everything that
Hello everyone, I need a simple Hedging EA that won't open opposing trades right away. The key is to avoid Hedging with the aim to lock in a price/spread arbitrage. If you already have a profitable EA that is similar and that has result I would be more than welcome to take a look at it or if you can build one for me I am more than welcome to pay for it. It must be an MT5 EA
Spike EA 41+ USD
Hi coder in the house i need an experience coder who can make two indicators into EA The ea will open on joint signal and also on single indicator signal details of open order strategy and closing will be discussed inside THE ea will have able to work on all asset on mt5 platform, Money Mgt/Manual Lot size, Auto Stop lot etc Trailing , Breakeven and profit locked and partial close etc Trading Days, and others feature
Must have no pending jobs Must work in the Eastern Standard Time Zone Must clearly and fluently SPEAK english Must can provided coding and consultative experience Must code in MQL4 Must adjust my EA without any bugs. This is a time sensitive matter, Subject: Seeking Experienced MQL4 Developer for Expert Advisor Hello, I am currently in the process of developing an Expert Advisor (EA) for MT4 and am seeking a skilled
Temple EA 30 - 50 USD
The goal of this project is to catch positions which are moving in the right direction, while locking / hedging the ones that do not. Positions are only opened when price has been moving according to the predominant trend, and wins are used to buy down existing locked positions as required. Please see the attached files for full explanation
Hi there, I need a profitable MT5 trading robot with confirmed profitable results. It can be for any major pair, I just need a profitable bot, on autopilot. If you have a profitable bot, please contact me. And if possible, will need to test it for sometime before I purchase it. Thanks
Make a horizontal line for the following. Opening candle ( Keep a solid line across the entire chart for the day. Sessions Opening candle ( Keep a solid line across just the time frame specified only. Then when it restarts, start a new line) 15 mins 30 mins 1 hr 4 hr Daily Weekly Monthly Example —————————————————————————————————————— Entries Order Type Buy Sell Both Set a pip count for entry. Example Long
Need an expert to create an EA based on my strategy for any broker,fast execution of opening and closing trade,also with a condition for take profit,lot size isn't fixed,it should be easy to change without editing the code for a no programmer

Informazioni sul progetto

Budget
30+ USD
Per lo sviluppatore
27 USD
Scadenze
a 1 giorno(i)