Modify existing trailing stop snipet

仕事が完了した

実行時間1 時間
依頼者からのフィードバック
Thanks for the fast and well done job! I will happily work again with you!
開発者からのフィードバック
old customer nice to meet again :)

指定

Hello, 

I am looking for a programmer who can modify an existing code for trailing SL (below you see the example for sell trades).

This code will add a trailing SL if a certain price has reached (see yellow part of code)

      if ( nsell(Magic1)>0 )
        {
         for(int j=0;j<OrdersTotal();j++)
           {
            if(OrderSelect(j,SELECT_BY_POS,MODE_TRADES))
              {
               if(OrderType()==1 && OrderSymbol()==Symbol() && OrderMagicNumber()==Magic1)
                 {
                  double _commission=(OrderCommission()*-1/OrderLots()/MarketInfo(Symbol(),MODE_TICKVALUE)*MarketInfo(Symbol(),MODE_TICKSIZE));
                  double _trailmove=(Trail_Start*point);
                  double _spreadmove=((Trail_Start+MarketInfo(Symbol(),MODE_SPREAD))*point);
                  double _minmove=MathMax(_trailmove,_spreadmove);
                  double _totalmove=NormalizeDouble((_commission+_minmove),5);
                  if ( (OrderStopLoss()>Close[0]+(Trail_Start+Trail_Steps)*point || OrderStopLoss()==0) 
                    && (OrderOpenPrice()-Close[0])>=(_minmove) )
                    {
                     bool sb=OrderModify(OrderTicket(),OrderOpenPrice(),Close[0]+(_totalmove),OrderTakeProfit(),0,clrMagenta);
                     if(sb)
                       {
                          hsb=Close[0]+(_minmove);
                          Print("Move TSL Sell "+StringSubstr((string) _totalmove,0,6)+" pips");
                        }
                    }
                 }
              }
           }
        }
     }

Right now the code will only add the SL to sell trades which have:

(OrderOpenPrice()-Close[0])>=(_minmove)


The code should be changed so the same SL will added to all open sell trades, so they will be closed at the same time when SL is hit (basket close). 

Please understand that this is just the snipet for the trailing stop function.


If you have questions then dont hesitate to ask me.


Kind regards,

silverchair


応答済み

1
開発者 1
評価
(2)
プロジェクト
4
25%
仲裁
2
50% / 50%
期限切れ
1
25%
仕事中
2
開発者 2
評価
(37)
プロジェクト
66
23%
仲裁
10
0% / 60%
期限切れ
18
27%
3
開発者 3
評価
(356)
プロジェクト
632
26%
仲裁
89
73% / 13%
期限切れ
12
2%
4
開発者 4
評価
(71)
プロジェクト
97
43%
仲裁
2
50% / 0%
期限切れ
2
2%
5
開発者 5
評価
(470)
プロジェクト
706
56%
仲裁
45
31% / 31%
期限切れ
115
16%
仕事中
類似した注文
Hey greetings am in need of a developer that can convert my simple tradingview indicator to MT4 I have the source code of the indicator and is also a public indicator on Tradingview site Kindly bid and let started
I want to buy the functional source code of the manager for mt5/mt4, make your proposal, send me a demonstration, the system asks for a text of 30 words plus the summary and that I want to buy a library
Hey MQL COMMUNITY, I have some ideas trading that needed to come to life based on my expected trading target, I have the details strategy ready so I wanted to be programmed as PineScript Indicators based on my trading specifications for TradingView platform, please reach out if you are well skilled in programming algo trading system for tradingview using PineScript coding solutions and can run without any problem
Hello i am seeking a skilled MetaTrader 5 (MQL5) developer to modify an existing Telegram signal copier. The goal is to enhance the copier's functionality, reliability, and user experience. kindly bid this job to get started immediately
Hello, I’m looking for assistance with creating or customizing a TradingView indicator to suit my trading needs. If you have experience in this area, please reach out. Your help would be greatly appreciated. Thanks
Where are my developers colleagues . i want you to support me on existing work i just need a little addon on it. Am still a student kindly support me. You will be get paid at the end of the work. If you want more details maybe the worth of the project or any other thing let me know. THNAKS FOR THE SUPPORT
** Entry Condition **: - ** For Long**: The trade is entered **after BB + ** is confirmed. - ** For Short *: The trade is entered **after BB -* is confirmed. ### 2nd **Stop Loss **: - ** For long Entries *: stop loss is triggered on a ** candle close above the high* of the breaker block shown by the indicator. - ** For Short Entries **: stop loss is triggered on a ** candle close below the low ** of the breaker block
Hello, am in need of a developer that can help in developing a trading bot that can effectively navigate the foreign exchange (Forex) market or other financial markets to generate passive income. My objective is to create a sophisticated algorithmic trading system that can consistently produce profitable trades with minimal manual intervention. I am seeking a reliable and efficient solution that can be tailored to my
am looking for who help me convert tradingview indicator to mt5 car trading strategy and make sure you are an expert before u apply to this and also my budget for this is 30$ so the name of the indicator is Breaker Blocks with Signals (LuxAlgo) ### 1. ** Entry Condition **: - ** For Long**: The trade is entered **after BB + ** is confirmed. - ** For Short *: The trade is entered **after BB -* is confirmed. ### 2nd
I have a custom MT4 indicator that I need converted to MT5. I'll share the source code with the applicants. Please only apply if you have vast experience in converting complex indicators successfully to MT5, and making sure that the MT5 version functions exactly the same as the MT4 version

プロジェクト情報

予算
30+ USD
VAT(付加価値税) (19%): 5.7 USD
合計: 35.7 USD
開発者用
27 USD
締め切り
最低 1 最高 2 日