Create Limit and Stop orders at Multiple of the Order Distance

MQL4 Experts

Specification

EA funciton

Create Limit and Stop orders at Multiple of the Order Distance to form a Grid. & Maintain the Grid All the time


Example

Order distance pips = 2,500 = $25, Use Buy Limit=True,  TP_[Buy_Limit] =5000, Current Price=995,  Max_Orders_[Buy_Limit]=5, Order_Gap_Pips=500=$5

Then,


1) At the beginning of the EA, Create buy Limit orders -> 975,950,900,925,900 --> Each one should have the Take Profit of 5000 since  TP_[Buy_Limit] =5000

2) When to place new limit order? When the price moves up and touches the grid+order gap [Example, if price moves upto 1005 (ie. 1000+ Order_Gap of $5 = 1005 , then place buy limit order of 1000]

3) Don't create duplicate pending order, if there is a Market order Exists (Eg. Suppose price comes down and converts the 975 pending order into buy order, and then moves up   Order_Gap_Pips of 500=$5, then, the EA will not create a pending order at 975, because a Buy order exists at 975)

4) Maintain the Grid all the time by Filling the Grid Gap - Suppose, a Buy order gets closed by Take Profit, the EA should place a pending order in it's place (eg. suppose order 975 hit by take profit at 1020, then the EA shd place a pending order to fill the gap of the grid at 975)



INPUTS Sample Values
Stopout_Margin_Level 300% Must close all the open limit orders if margin level reaches X% & Should not create any new Limit order (Stop the EA and not create any Limit Orders)
Restart_Margin_Level 500% Restart the process of creating Limit orders once the margin level is greater than Y%
Use Buy_Limit True/False
Use Sell_Limit True/False
Use Buy_Stop True/False
Use Sell_Stop True/False
Order_Gap_Pips 500 Once this pips is hit, the pending order will be placed.
Eg. Order_Gap_pips=500, then if price touches 1005, pending order of 1000 will be placed
Lot_Size_[Buy_Limit] 0.01
Lot_Size_[Sell_Limit] 0.01
Lot_Size_[Buy_Stop] 0.01
Lot_Size_[Sell_Stop] 0.01
Order_Distance_[Buy_Limit] 2500
Order_Distance_[Sell_Limit] 2500
Order_Distance_[Buy_Stop] 2500
Order_Distance_[Sell_Stop] 2500
Max_Orders_[Buy_Limit] 25
Max_Orders_[Sell_Limit] 25
Max_Orders_[Buy_Stop] 25
Max_Orders_[Sell_Stop] 25
Lot_Size_Multiplier_[Buy_Limit] 1.06
Lot_Size_Multiplier_[Sell_Limit] 1.06
Lot_Size_Multiplier_[Buy_Stop] 1.06
Lot_Size_Multiplier_[Sell_Stop] 1.06
TP_[Buy_Limit] 5000
SL_[Buy_Limit] 5000
TP_[Sell_Limit] 5000
SL_[Sell_Limit] 5000
TP_[Buy_Stop] 5000
SL_[Buy_Stop] 5000
TP_[Sell_Stop] 5000
SL_[Sell_stop] 5000
TP_Order_Distance_Multiple_[Buy_Limit] 2 If TP Buy Limit is set, it will be taken, else this multiple will be taken as TP Buy Limit
SL_Order_Distance_Multiple_[Buy_Limit] 3 If If SL Buy Limit is set, it will be taken, else this multiple will be taken as SL Buy Limit
TP_Order_Distance_Multiple_[Sell_Limit] 3 If If TP Sell Limit is set, it will be taken, else this multiple will be taken as TP Sell Limit
SL_Order_Distance_Multiple_[Sell_Limit] 5 If If SL Sell Limit is set, it will be taken, else this multiple will be taken as SL Sell Limit
TP_Order_Distance_Multiple_[Buy_Stop] 1 If If TP Buy Stop is set, it will be taken, else this multiple will be taken as TP Buy Stop
SL_Order_Distance_Multiple_[Buy_Stop] 2 If If SL Buy Stop is set, it will be taken, else this multiple will be taken as SL Buy Stop
TP_Order_Distance_Multiple_[Sell_Stop] 3 If If TP Sell Stop is set, it will be taken, else this multiple will be taken as TP Sell Stop
SL_Order_Distance_Multiple_[Sell_stop] 1 If If SL Sell stop is set, it will be taken, else this multiple will be taken as SL Sell stop



Responded

1
Developer 1
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
2
Developer 2
Rating
(24)
Projects
28
32%
Arbitration
1
0% / 0%
Overdue
0
Free
3
Developer 3
Rating
(52)
Projects
97
24%
Arbitration
10
20% / 20%
Overdue
12
12%
Working
4
Developer 4
Rating
(195)
Projects
395
28%
Arbitration
155
20% / 52%
Overdue
112
28%
Free
5
Developer 5
Rating
(237)
Projects
419
34%
Arbitration
53
36% / 40%
Overdue
154
37%
Loaded
6
Developer 6
Rating
Projects
2
0%
Arbitration
2
100% / 0%
Overdue
0
Free
7
Developer 7
Rating
(66)
Projects
143
34%
Arbitration
10
10% / 60%
Overdue
26
18%
Free
Similar orders
I need A Ea For Parabolic SAR With Default Settings And That Ea Including Take Profit And Stoploss Levels. Take profit : 50 points Stop loss : 50 points I have been seen that ea in Mql5 Market I tested it but that ea stop loss and take profits not activated that's why I came here I need a demo for testing process if you gave demo 1st and I will set you as a person to create a ea
Modifying an expert advisor written in mql5 and adding new indicators to it. The result must work both on strategy testing and on live, with no compilation errors and no warnings
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
Hi, I have an indicator from my friend, I want to copy it to MT5 can you do that for me. Here is the link
I'm seeking assistance in developing a sophisticated trading robot with the following features: Core strategy: Harmonic pattern recognition Supply and demand analysis Fibonacci zigzag for trade optimization Additional components: News filter Dashboard for easy monitoring Customizable settings: Lot size Trailing stop Trading session parameters Maximum number of orders Option to use market or limit orders Resources
1. Add Feature For (SPREAD) Normal trading Hours Spread or User set trading Hours Spread True or false Set to true or False When set to true EA will only create or develop a trade if spread is in this window allowing it to and EA will follow a window in which it can trade based on spread so if spread is to high and outside of this window it will not create a trade It
Hi, I have an indicator from my friend, I want to copy it to MT5 can you do that for me. Here is the link
Hi, I have a working MQ4 EA (With a few warnings but works fine), I need the warnings cleared and converted to MQ5. But I would also like a few improvements first. Firstly: Fix warnings in MT4 code (return value of 'OrderSelect'/'OrderModify' should be checked). Add following features: Magic number modifiable variable (It's currently hard coded) Is it possible to have a stop loss dollar amount instead of lots if
i create a robot which help with order blocks and detection of spikes ....simply it analyses the market for you and if you are using it you wont need much skill to start operating it well you just need to know and understand how it works
I need an experienced programmer to create an automated EA that will open trades based on different candle stick formation strategies and indicators. The EA will first scan the market, find a current market trend and define area of support and resistance. On ranging market the EA doesn’t place trades . (1) EA should use a straddle strategy from either the S/R level, (2) indecision Doji candle from the S/R area, (3)

Project information

Budget
30 - 50 USD
For the developer
27 - 45 USD
Deadline
to 2 day(s)