Categories
News Room


This is the manual for the Zone Trade EA available here: https://www.mql5.com/en/market/product/127753

The EA is a manual trading tool for trades to automatically take trades at support and resistance or supply and demand zones using price action entries within those areas. It is designed to be used as a position trading tool meaning there are no fixed stop losses used. Trades that work out are simply banked and the profit taken, trade that do not work out are turned into position trades using DCA scaling in techniques to adjust the average price level, the target zone is then adjusted to the next logical area price will target above the average price.

Recommended timeframes to be traded are the hourly timeframe and above as this is meant as a swing trading tool/strategy, but you could use the EA on any timeframe. Just be aware the lower you go the more “chop” you will experience in daily market movement and the less reliable trading zones will become.

The EA has multiple features which will be covered here and is also designed to be used as a training tool in the strategy tester in MT4 so you can practice trading zone bounces and position trading techniques to hone your skills at identifying obvious levels to trade from and towards.

WHAT THE BUTTONS DO

Each button has a specific function designed to allow you to either draw zones or close existing trades you have open.
The buy and sell limit buttons when pressed will place the zone above or below current price and offset the closest edge of the zone whatever you have input as the multiple of ATR away from current price. Hitting this again if a zone is in place will automatically reset the zone to the same distance it was initially drawn. If a zone has been disabled as it’s already been traded and you want a new live zone drawn you simply hit the button again.

BUY LIMIT – This will place the buy zone below the current price 

SELL LIMIT – This will place the sell zone above the current price

CLOSE – This will close ALL trades that are open on the instrument you are trading

CL OLD – This will close the OLDEST trade on the instrument you are trading. Used for drawdown control when a position may be pushing against you and you want to scale out of the older parts of the position and take a loss on those trades

USE IN THE STRATEGY TESTER

Content wll appear here shortly

USE IN LIVE TRADING

Content wll appear here shortly

INPUTS EXPLAINED

<<<< MAIN SETTINGS >>>>

EA works when bars close (false = on every tick) – This speeds up back testing and ensures calculations and check for price targets are done only when candles close, not on every tick. For live trading, you may want this to work on tick, but not necessary.

Always In Mode (Exit when opposite zone trades) – When set to true, the EA will close long trades when a sell zone is reached and price triggers and entry and then automatically get into a short trade so you are “always in” a trade in one direction or the other. Opposite functionality for short trades. If you set this to false, the EA will just exit the current trade(s) when the zone is reached and price action triggers but not enter a new trade in the opposite direction.

Extend zones if price exceeds them (deletes if false) – If set to true when price reaches a zone and a candle closes the opposite side of a block (goes through it) the EA will automatically expand the size of the zone to include the candle that closed outside the zone. Then wait for price action to reverse to take a trade. If you set this to false and price goes through a zone without a signal, the EA will delete the zone and wait for you to draw a new one.

Zone width in candles – This is the width of the zone the EA draws on the chart, counted in number of candles back from current price.

Zone height as ATR percentage – This is the height of the zone drawn with the buttons as a percentage of the ATR setting you use (inputs below) and it’s advisable to use the daily timeframe (ADR – average daily range) for this which the EA is set to as default.

Zone distance from current price as ATR percentage – This is how far away from current price as a percentage of the ATR figure you use to draw the closest edge of the zone. Set this to something that you know price will not reach quickly depending on the timeframe you are trading on. Around 1/4 of ADR is a good level initially to give you plenty of time to adjust the zone before price moves into it.

**** PRICE ACTION SIGNALS ****

Enter if piercing into zone – For a sell zone the last closed candle must have a high above the low of the zone and the close of the candle below the low of the zone. Opposite for a buy zone.

Enter if open inside and close outside zone –  For a sell zone the last closed candle must have the open above the low of the zone and the close of the candle below the low of the zone. Opposite for a buy zone.

Enter on price action inside zone –  For a sell zone the last closed candle must have the open above the low of the zone and the close of the candle also above the low of the zone. Opposite for a buy zone.

**** RISK SETTINGS ****

Amount to risk over 1 ATR (0 = use lots) – If NOT set to 0 this will be the amount of money the EA risks over 1 measurement of the ATR you have selected in the inputs below. It is recommended to use ADR (daily range) as this ensures your trades have room to breathe. When set to 0 the EA will default to using a fixed lot size.

Fixed lot size for first trade – This is the initial lot size the EA will use to trade with.

Martingale lot multiplier for additional trades (lots only) – This is the multiplier to increase additional trades taken in a position by. e.g. if your initial trade is 1.00 lot and you set this to 1.5 then your second trade will be taken at 1.50 lots. The next at 2.25 and so on until all trades in a single direction are closed out either manually with the buttons or by hitting the opposite zone. This only works when fixed lots are selected instead of monetary risk.

Min distance between entries as multiple of ATR – This is the minimum spacing between each trade and the EA will not trade if the candle closes within this distance. Ideally you would use a percentage of ADR (average daily range) to space your trades out so there is not too much drawdown but your average price is also not kept too far away. The EA will draw this level on the chart to aid you in placing your next zone for additional entries outsize this area. A visual warning is displayed on the chart if the zone you have drawn is too close. Somethere between 0.5 and 1 ADR are good guides for trading daily levels using H1 timeframe and above.

**** ATR CALCULATIONS ****

ATR timframe – This is the ATR timeframe used for all ATR calculations for distancing, trailing stop and risk in the EA. The default is daily so the EA uses ADR (average daily range) as a guide for spacing and risk parameters.

ATR period – This is the number of periods (candles) back to calculate the ATR. If using daily anything from 2 weeks to a few months is a good measure to guide you as to what the instrument you are trading moves on a daily basis. The higher the number the more smoothed and less change you will see in the calculation and levels/risk being used.

**** TRAILING STOP LOSS ****

Exit using a trailing stop based on ATR – If set to true each individual trade will start to trail a stop loss either on tick or candle close (based on the input in main settings) using whatever inputs you use below. 

Multiple of ATR for trailing stop – This is a multiple of the ATR figure you use (ADR recommended) to add and trail a stop by as price moves in your direction.

Multiple of ATR to start trailing stop – The trailing stop will not start until price has moved this far into profit. Ideally set both of these to the same setting to allow your trade room to breathe.

Trail stop loss to breakeven only – If set to true the EA will stop trailing once the stop is above your entry price. NOTE: If using candle close this may lock in profit for you also depending on the size of the candle that closed above your entry.

**** EXIT AT END OF DAY OR CANDLE ****

Exit trades at set time every day – When set to true the EA will automatically close out your trades at a set time. This is useful for those trading intraday on lower timeframes that do not want to hold overnight.

Time on chart to close trades at every day – Enter the time you want the EA to close your positions if the above is set to true. Format is HH:MM, e.g. 22:30 would be 10:30pm.

Exit trades at close of candle on specific timeframe – If set to true the EA will check on the close of every candle on the timeframe you choose and close trades. 

Timeframe to exit trades at candle close – Select the timeframe you want to close trade on if the above is set to true.

Only exit if trades are in profit – If set to true the above options for closing trades will only happen if a specific profit amount has been reached. This input is particularly useful for scalping strategies and allows you to set and forget the EA and take whatever profit is available every hour or 4 hour period.

Minimum profit to close at – This is the amount of money you would like as a MINIMUM when the candle time or end of day time above is reached.

**** EXIT AT MONEY TARGET AMOUNTS ****

Exit at an amount of money in profit – If set to true the EA will monitor your open trades and automatically close them out individually if they are above the set amount. This is used for closing losses as well as profits.

Amount of money to exit trade in profit – Enter the amount of money in profit for an individual trade to be closed out at.

Amount of money to exit trade in loss (- neg number) – Enter the amount of money in loss for an individual trade to be closed out at. NOTE: This should be entered as a negative number. e.g. -200 will close out when you are 200 in drawdown on the trade.

**** EXIT AFTER AMOUNT OF TIME ****

Exit after a set amount of time passes – If set to true individual trades will be closed out after they have been open for a specific amount of time. This is useful for exiting trades that stagnate and the desired action or movement has not occurred within a set time.
NOTE: use only one and the most relevant to the timeframe you are trading on.

Number of days – Number of days to exit

Number of hours – Number of hours to exit

Number of minutes – Number of minutes to exit

**** TRADING TIMES ****

Use a time of day filter to limit opening trades – If set to true the EA will only open new trades within these times. This is designed to stop the EA taking entries during overnight swap periods when the spread can get extremely large and slippage can occur due to low liquidity. You can also use this to only trade during certain market sessions.

Time on chart to start monitoring for new entries – Time to start trading in the format HH:MM

Time on chart to stop monitoring for new entries –  Time to stop trading in the format HH:MM

**** DRAWING & COLOURS ****

Show profit & ATR data on chart – When true displays the ATR, spacing, account balance and open profit data in the top right of the chart

Display swap data on chart – When true will show the swap cost information for the instrument being traded. Holding swing positions for long periods can become costly so you may want to use this to decide on a bias to trade the instrument

Maximum negative swap you deem too expensive to trade – If the above is true this is the maximum negative swap which determines if the data displays as good or bad. This does not affect trading done with the EA. Enter as a negative number, e.g. -5.50

Week start line colour – The colour of the vertical line displayed at the start of the week. This is particularly useful in the strategy tester so you can easily see time passed in positions to condition yourself to how long trades may take in live trading. Set to none if you want to hide this

Width of weekly start line – Width of the above line

Zone buttons text colour – Colour for the text displayed on the buy and sell zone buttons

Sell colour – Colour of the sell elements on the chart including the average line, text, next entry line and the button itself

Buy colour – Colour of the buy elements on the chart including the average line, text, next entry line and the button itself

Close buttons colour – Colour of the close buttons

Traded zone colour – Colour a zone turns once it has been traded

Show previous weekly levels – Display the most recent weekly levels on your chart, this is the weekly high and low and often price reacts around these levels.

Number of previous levels to draw – The number of previous weekly levels to show on the chart

Delete drawn objects when EA removed – If set to true the Ea will automatically remove all elements it creates when it is removed from the chart. This is handy to turn to false when in the tester so you can see profit information and elements created while testing.

Text offset in hours to right of current candle – How many hours in the future from current price the labels are shifted to the right for the average price and next entry text.

Magic Number – Can be used to allow the Ea to take over trades you may have placed with other EAs ot if you use this same EA on more than one instance of the same instrument.



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *

Calendar

December 2024
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Categories

Recent Comments