Script to open order modification

MQL4 Scripts

Tâche terminée

Temps d'exécution 1 jour
Commentaires de l'employé
great and nice customer
Commentaires du client
He complete the job in just couple of hours. Satisfied with this project and will hire him again in the future.

Spécifications

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. 

Répondu

1
Développeur 1
Évaluation
(320)
Projets
523
66%
Arbitrage
52
21% / 38%
En retard
167
32%
Gratuit
2
Développeur 2
Évaluation
(512)
Projets
773
63%
Arbitrage
33
27% / 45%
En retard
23
3%
Gratuit
3
Développeur 3
Évaluation
(195)
Projets
395
28%
Arbitrage
155
20% / 52%
En retard
112
28%
Gratuit
Commandes similaires
I am looking for a skilled Thinkorswim script developer for a one-time project. Your task will be to combine 8 distinct Thinkorswim studies (I will provide the code for each) into one Lower Study. The final script should display histogram rows for the individual studies with a bubble color scheme of bright green, dark green, gray, dark red, and bright red
I need some who can develop my strategy and hand me over the source code... I will give you the specific area in the market i want to mark out and then set pending orders to execute once price move into the zone
C onversion from Ninjatrader to Tradingview. This includes thorough testing and debugging to guarantee that the script functions as intended on Tradingview...If you are in for this job kindly bid
I believe in Robotics as a major artificial intellect to function of growth of business.Therefore if you script there is a likelihood of bringing economies of scale.The retrospective of the dynamics of indulgence of work can be economics of scale
there I hope you're doing well I want to convert the tradingview indicator to make an indicator for mt5. And in that, I want to make an automatic robot on the base of the indicator. I have the pine script of that indicator
Looking for someone who is able to code MQL for MT5 manager plug-in? Please contact me for more info. it is mainly on when to trigger a stop out of the account
see trade open on every tick seconde ok forex pair us us30 if is current running at 40170.00 so open 2 trade buy stop and sell stop both in every tick pending order of buy stop will 40171.00 and sell stop pending order will be 40169.00 buy stop will open at 40171.00 and tp will be 40173.00 and SL will be 40169.50 ok if buy stop hit sell stop order automatically will be close now if sell stop order open at 40169.00 so

Informations sur le projet

Budget
10 - 15 USD
Pour le développeur
9 - 13.5 USD
Délais
de 1 à 3 jour(s)