Script to open order modification

MQL4 Komut dosyaları

İş tamamlandı

Tamamlanma süresi: 1 gün
Geliştirici tarafından geri bildirim
great and nice customer
Müşteri tarafından geri bildirim
He complete the job in just couple of hours. Satisfied with this project and will hire him again in the future.

İş Gereklilikleri

This is how my current script works:  I have a script (simple short script that has only 50 lines of coding) that place Sell Limit, Sell Market, Sell Stop orders with predetermined SL and TP with some other options like UseMoneyMgmt.  (leave 0 to disable SL/TP) When SetEntryPrice is left 0, it opens market order, but when I put x.xxxx  on SetEntryPrice , script will place 1 pending order (Sell Limit or Sell Stop order depend on what price I entered against current price at the time of running script).  Example:  At the time of executing this script, if current price = 1.25000, if I put OrderPrice = 1.25600, script will place pending Sell Limit order.  If I put OrderPrice = 1.24300, script will place pending Sell Stop order. If I put OrderPrice = 0 (left this setting to 0), script will place Sell Market order immediately.  

The script currently have these options:

extern double InitialLots = 0.1;

extern bool   UseMoneyMgmt = false;

extern double RiskPercent = 2;

extern bool   UseStop = true;

extern bool   UseTakeProfit = true;

extern double StopLoss = 15;

extern double TakeProfit = 50;

extern string Note="0 in SetEntryPrice field means Market Order Sell";

extern double SetEntryPrice = 0.0000;

 

//the following options to be add for this job

Extern bool EnableExtraOrders = true (or false); // if set to false, script should run ‘AS IS’.

extern int     PendingOrderPriceDist = 10 ;  // (value in pips)

extern double LotSizeIncrementForSellLimitOrder= 0.1(or -0.3) ; // this setting can be plus or minus   

extern double LotSizeIncrementForSellStopOrder= 0.2(or -0.4);  // this setting can be plus or minus   

 

This Job Request:

1)   I would like to add script to add following options.

·         PendingOrderPriceDist = 10; // 10 is user input and this number should be in pips. 

·         LotSizeIncrementForSellLimitOrder= 0.1 (or -0.1) ;   // user input   

·         LotSizeIncrementForSellStopOrder= 0.2 (or -0.2);  // user input  

Note:

** This option is only applied when I run script to place MarketOrder (In otherwords, this option should only execute when I run script with SetEntryPrice = 0.0000 and EnableExtraOrders = true)  These extra pending order's lotsize maybe larger or smaller than InitialLotSize. 

** SL,TP for these pending orders should be same as Initial Market Order.  So, TP & SL is set for Market order, these pending orders should be same as the Initial Market order’s SL and TP 

** LotSizeIncrement should be always calculated from the Initial Market Order’s LotSize.  So, if MarketOrder was used with InitialLotsize = 1,  LotSizeIncrement should be calculated from 1.  If UseMoneyMgmt= true, RiskPercent = 2, LotSizeIncrement should be calculated from the RiskPercent LotSize.

Example A:  Current Price = 1.25000, Initial LotSize = 1  when I run script with extern double SetEntryPricePrice = 0.0000;  extern int pendingOrderPriceDist = 10 ;  extern double LotSizeIncrementForSellLimitOrder= 0.1 ;    extern double LotSizeIncrementForSellStopOrder= 0.2 ;  Script should place   1 lot Sell order immediately @ 1.25000 and also place 1.1 lot, Pending SellLimit order at 1.25100 and place1.2 lot, 1 pending SellStop order at 1.24900.     

Example B:  Current Price = 1.25000, Initial LotSize = 1  when I run script with extern double SetEntryPricePrice = 0.0000;  extern int pendingOrderPriceDist = 10 ;  extern double LotSizeIncrementForSellLimitOrder=  -0.1;    extern double LotSizeIncrementForSellStopOrder=  -0.2;  Script should place   1 lot Sell order immediately @ 1.25000 and also place 0.9 lot, Pending SellLimit order at 1.25100 and place 0.8 lot, 1 pending SellStop order at 1.24900.    

2)   When compile the script, I would like warning free. Currently, it has 1 warning à  " return value of OrderSend should be checked"  - When it is all done and I would like warning free.

 I will provide source code for the script after job has assigned to the coder. 

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(320)
Projeler
525
66%
Arabuluculuk
52
21% / 38%
Süresi dolmuş
169
32%
Serbest
2
Geliştirici 2
Derecelendirme
(513)
Projeler
776
63%
Arabuluculuk
33
27% / 45%
Süresi dolmuş
23
3%
Serbest
3
Geliştirici 3
Derecelendirme
(195)
Projeler
395
28%
Arabuluculuk
155
20% / 52%
Süresi dolmuş
112
28%
Serbest
Benzer siparişler
I'm looking for a skilled developer to help build a custom trading strategy for NinjaTrader 8 (N8). The project involves developing and fine-tuning a strategy tailored to specific market conditions. Experience with NinjaScript, strategy optimization, and backtesting is highly preferred. If you're available and have expertise in N8 strategy development, please get in touch to discuss further details
I have a python script that connects MT5 to Deriv for binary trading which is having some bug. It stops executing trades after a while. I need someone to check the code and fix it. Negotiable price
I currently have a Forex trading script in .txt format that I want to be converted to a functional/working robot (in .mq4), without altering the strategy of the script. The strategy of the script is already in and shouldn't be changed unless with mutual understanding

Proje bilgisi

Bütçe
10 - 15 USD
Geliştirici için
9 - 13.5 USD
Son teslim tarihi
from 1 to 3 gün