Pivot Point based EA - MT4

MQL4 Experts

Specification

Pivot Point based EA

1. Background

This is an EA to be based on the hourly (H1), 4 hourly (H4), daily (D1), weekly (W1) or monthly (MN) pivot point (to be selected from a drop down box) called "PP" below with a OHLC price time frame to be selected using all available MT4 time frames (for example (but not limited to), 15 minutes, 1 hour, 1 day etc) with strategy rules below to decide a buy or sell trade. The pivot point is to be based on the code below which is taken from a PP indicator (see section 5) plus there is another indicator code (see Section 6) which has the ability to shift the D1 pivot point using a day that is advanced (or retarded) from the server time (called Pivot Day). So there will be a need to provide a pivot point in the EA which allows the daily (if selected) to be shifted from the server time.

2. Strategy

The strategy will disclosed on a confidential basis to the selected Developer. 

It is based on price action and it's interaction with the Pivot Point.

The strategy will require either instant buy or sell order be placed or limit orders placed based on a set if rules.

Close the trade using a TP/SL/Trailing and some other rules will apply (to be described to the Developer later) . 

3. EA parameters

The pivot points formula can be found in the code in section 5 below which is an indicator. However this code has features not required for the EA such as plotting R1,R2,R3,S1,S2,S3,M0,M1,M2,M3,M4,M5; CountPeriods; Plot_middle; Plot_camarilla.

At the end of the day all that is needed is to calculate Pivot for H1, H4, D1, W1 or MN = (high+low+close)/3.0 (with the high/low/close being based on the previous H1, H4, D1, W1 or MN)

The code in section 6 below shows the code for shifting from the server time which is from an indicator.

Both codes are provided for information purposes only as it may save you time re-coding. 

The H1, H4, D1, W1 or MN Pivot point and OHLC price timeframe (from M1 to W1) will be chosen from a drop down lists in the EA so I can chose which Pivot point and OHLC price time frame I want to use.

The code to be used from in section 5 and section 6 below is to be a part of the EA rather than using the code in a separate indicator file. Each pivot point must be programmed to the be non-repainting.

The EA Input Tab will have the following parameters

PP chosen = drop down box to choose the PP - H1, H4, D1, W1 or MN
Shift = the number of hours to shift from the server time if D1 is chosen
timeframe = the time bar (OHLC) timeframe
[5 additional confidential parameters to go here which will be disclosed to the selected Developer]
StealthMode: Hides SL, TP and Trailing from broker.
Lotsize: When using fixed lot, set size here.
UseMM: Set true to activate money management.
LotsPercent: Percentage of balance to be used by MM to place orders
MaxLot: Maximum lot size allowed.
MinLot: Minimum lot size allowed.
Stoploss: Stop loss 
TakeProfit: Take profit
Breakeven: Amount of profit to take when a profit trade is turning to loss.
Starttrailing: Profit to start trailing stop
TrailStop: Value to trail a profit trade.
TrailStep: Steps for movement of the trail.
Magic_Number: EA magic number.
maxtrades = Maximum allowed total number of trades 
tradesperbar = Maximum allowed orders per bar 
slippage = Maximum slippage allowable at the point of entry. 
maxspread = Maximum spread allowable at the point of entry.
expiration = In minutes. Time for pending orders to expire. (0 = false). 
Close all = true = allows to close all trades and pending orders [M] minutes before the end of the current hourly (H1), 4 hourly (H4), daily (D1), weekly (W1) or monthly (MN) pivot point.
Close time = [M] minutes = if "Close all" is true ...the number of minutes to "Close all" trades and pending orders before the end of the current hourly (H1), 4 hourly (H4), daily (D1), weekly (W1) or monthly (MN) pivot point
usetimefilter = To enable time filter.
trade market open= To trade since market open.
Time of trading : Trading_24h = TRUE/false;
StartHour: Time for EA to start (server time). (0 = false)
EndHour: Time for EA to stop (server time). (0 = false)
Trading days: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday (each can be chosen)
fridayfilter = Set last new orders on Friday before market close. No more trading after this time until the next week market open, except existing trades can be closed if the trading rules are triggered (ie SL/TP/Trailing etc).
fridayhour = In hours (server time).
fridayminute = In minutes (server time).
Etc etc as required

4. Other requirements

- I will own all copyright and other intellectual property in the code.

- The EA will also work for Gold (XAU) and silver (XAG)

- The source code is to be provided and is to have commenting & narrative for each component to understand it and be consistent with generally accepted MQL4 coding best practices.

- to work for a 5 digit broker.

- for pips Eg. 1.1 is 1.1 pips, where 20.1 is 20.1 pips (example 1.00201 minus 1 = 20.1 pips)

- English will be the governing language of this contract.

- any bugs are to be fixed as part of a 1 month testing period (the final milestone will be paid at the conclusion of the testing period).

- this project is to be kept strictly confidential.


5. MT4 indicator code for pivot points - see attached file "Pivots ALL.mq4" 

6. MT4 indicator code for Daily Pivot Points which can be shifted from the server time - see attached file "Pivot_Points_-_Daily_sShiftedd.mq4"


Thank you

Please let me know if you need any clarification.



Responded

1
Developer 1
Rating
(4)
Projects
5
40%
Arbitration
0
Overdue
3
60%
Free
2
Developer 2
Rating
(121)
Projects
134
66%
Arbitration
36
25% / 56%
Overdue
22
16%
Free
3
Developer 3
Rating
(2)
Projects
2
0%
Arbitration
0
Overdue
1
50%
Free
Similar orders
Hi, I would like to create an expert advisor to fully automatic trade in MT4 as below, it should be possible with gold or any currency pairs and need to possible with 2, 3, 4 or 5 after decimal quotes PAROL MA CROSSOVER 1. Magic Number : Customize 2. Take profit in points : Customize 3. Stop loss in points : Customize 4. Strat time in GMT : Customize 5. End time in GMT : Customize (It means no need to open a new
Hi. I will require a MT4 EA with 3 indcators for a specific time frame, certain parameters can be adjusted and should be able to automated trading. 1. RSI 2. EMA EA 3.Trading Volume . 4 & 5 digits can use 1.) 1 RSI . and 2 EMA ( cross over ) 1.1.) All different timeframe can use ( adjustable ). 1.2.) Entry pricing will need to meet at least 2 out of 3 indicators levels. 1.3.) Each indicators can be adjusted. 2.)
Need MT4 EA which will trade based on Round Number and Supertrend. Trading conditions: If buy supertrend is >= lower round number and <= the higher round number, EA will place a buy pending order at the higher round number. If sell supertrend is <= higher round number and >=lower round number, EA will place sell pending order at the lower round number. If the trade is exited because of SL/BE, EA will place another
Hi Everyone, I need a cloud based licensing system to protect my MT4 / MT5 Indicators and Expert advisors Secure an unlimited number of EAs, indicators, and scripts. Create and manage unlimited license keys for secured EAs, indicators, and scripts. Instantly suspend license keys in case of refund. Lock EA/indicator to specific accounts and time frame similar to this
I need a ea 50+ USD
I need an ea for my prop firm challenge 5000usd account. that can execute trade itself with 0.5R risk and at least 1:2 target.Not maximum drawdown 2-3% and can generate monthly return 10 to 20%
Hello Devs! I like to create a new EA based on the below conditions: (Please do not bid if you have no confidence of fulfilling the codes requirements. Thanks!) You can code MT4 or MT5 or both depending on your preference. 1. Different Magic numbers for BUY and SELL 2. Add on time filter for each day individually. Eg: Mon = 00:01-23:59, Tue = 01:00-23:30 etc. (Monday to Sunday) True/false to close all trades at end
Hi, i have a tos script i need converted to Ninja script, but someone who knows both coding. Cant be someone who is just going to paste into chat gpt, it requires more understanding for compatibility
I need an EA which takes confluence of 4 ema on 3 different time frame before taking a trade. Ea should have risk to reward option, option to add xyz pips above stoploss criteria in order to avoid hitting sl due to spreads. Customizable RR to cl9se trade partially when desired RR is reached. Also require source code to get future changes done
I need MT4 and MT5 hedging locker expert advisors that hedge existing trades either with pending or market order hedging trades. With pending hedge trades the entry price may optionally be made to trail the existing open orders. There should be option for a breakeven and trailing of the hedge trade’s stop
Hey Mql Community, Our Company need help creating and design a well automated forex ea for mt4 platform, This EA should based on the logic of an existing EA and the ideas we have in mind as a new features in the EA. Understand that We already have an EA that is working properly, we want to add a few details to it. We don’t have the source code just the ex.4 file, and as an expert specialist in the field we are

Project information

Budget
20 - 50 USD
For the developer
18 - 45 USD
Deadline
from 5 to 10 day(s)