工作已完成
指定
The following specification is intended to clarify the work scope and form a reference for the programmer to work to.
The general Principle is to have orders placed 5 pips(var) above and 5 pips(var) below the opening price of the time period.
The orders will remain open till they one or other of them are filled.
All the orders will be opened with a TP and a SL specified in the input variables table
Once an order opens a trade – the remaining order is closed and two new orders are placed at the appropriate distance above and below the opening price and all remaining orders on this chart should be closed at this time.
Trading will continue in this manner till end of trading hours – at the occurrence of end of trading hours= true all active orders will be closed and the EA will be inhibited from opening new orders but will remain in control of the last open trade till it is closed for either SL or TP.
Dollars TP target is calculated as Equity - Balance = TP achieved
Dollars SL target is calculated as Balance – Equity = SL achieved
Variables
The final list of variables will be determined by the programmer however for guidance we have included a list which might be a good starting point. Please use names that are meaningful without being excessively long.
Item |
Variable |
Default value |
Description |
Order |
1 |
Units |
Pips |
Pips – dollars |
3 |
2 |
TP |
5pips |
The variable is the Take profit in units as line one |
1 |
3 |
SL |
5pips |
The variable is the Stop Loss in units as line one |
2 |
4 |
O_Above |
5pips |
Order to be placed pips above the opening price |
4 |
5 |
O_Below |
5Pips |
Order to be placed pips below the opening price |
5 |
6 |
Trades start_m |
00 |
Starting trading at Hour |
6 |
7 |
Trades start_h |
08 |
Starting trading at Minute |
7 |
8 |
Trades End_m |
00 |
Ending Trading at Hour |
8 |
9 |
Trades End_h |
14 |
Ending Trading at Minute |
9 |
10 |
All pips set |
True |
True or false setting of all the pip values at the same time |
|
11 |
All pips value |
5 |
The value of Items 2 3 4 5 are set at the same time from this input if above item (All pips set)= true |
|
12 |
SL/TP Hit |
system |
The price of the last TP or SL hit |
|
End of variables table
Chart display modes
All variables to be shown on the chart in a compact display at the top left of the chart
See attached files also