工作已完成
指定
I need a Breakout EA that allows for the following:
Risk:
- Input of the lot size OR
- Input a percentage of the account as a risk
- Have an option to use Martingale or not
Allows for up to 5 TPs to be selected (each TP executes as a separate trade)
Objects:
- Can select to have them drawn or not
Time Frames:
- Start Time
- End time
- Session End Time
The start time is the time from which the chart high and lows are taken from.
The end time is the time to which the chart high and lows
are stopped. Start and end times are represented by the orange and red blocks
in the attached screenshot.
The session end time is the time at which the EA stops running on the chart. This
is represented by the grey block on the screenshot.
At the highest point of the orange/red blocks, this is the buy entry point.
At the lowest point of the orange/red blocks, this is the sell entry point.
If a buy executes, the stop loss will start at the sell entry point.
If a sell executes, the stop loss will start at the buy
entry point.
The buy or sell will only execute when the price reaches the respective buy or sell entry point. If existing buys or sells have already executed, they must not execute again should the price drop below or above the entry point, and then hit the entry point again. The entry points must also be hidden from the broker.
The TP points are the amount of pips from the buy to the sell entry points. Each TP level is a sum of this amount. For example, if the distance from the buy entry point to the sell entry point is 30 pips, then TP1 will be at buy entry point + 30 pips, TP2 will be buy entry point + 60 pips, TP3 will be buy entry point + 90 pips, TP4 will be buy entry point + 120 pips, TP5 will be buy entry point + 150 pips.
If the distance from the sell entry point to the buy entry point is 30 pips, then TP1 will be at sell entry point - 30 pips, TP2 will be sell entry point - 60 pips, TP3 will be sell entry point - 90 pips, TP4 will be sell entry point - 120 pips, TP5 will be sell entry point - 150 pips.
I also want an option whereby if no TP has been hit, and the SL hits, then new orders must execute at the point where the SL hits.
Trailing Stop Loss
- Allow for this to be made active or not
- A stop loss will trail where there are 2 or more TPs selected
- Once TP1 has been hit, the Stop loss for all remaining TPs will move to the entry point for the trades that were opened
- When TP2 has been hit, the SLs for the remaining trades will move to the point where TP1 was hit.
- When TP3 has been hit, the SLs for the remaining trades must move to the point where TP2 was hit.
- When TP4 has been hit, the SLs for the remaining trade must move to the point where TP3 was hit.
TPs and SLs must be hidden to the broker, but I want to visually see them when using the MT4 termonal (refer to the attached screenshot that has the Buy/Sell Entry Zones and SLs with the prices for the.
Allow Trade Comments to be added
Allow Magic Number to be added/edited
Option for alerts to trigger when orders execute.
Option for alerts to trigger when orders close.
The ultimate aim of the EA is to have it running via a VPS, so I do not want to have to set it up each day, unless I have to change any settings. The main sessions I will run it in are the Tokyo and London open, and possibly the New York session as well.