Job finished
Specification
Buy or Sell 'N' number of Contracts/Lots at Market, Limit, Stop (Allow entry of 0.01 Lots (i.e. 2.01)
Breakeven trails 'n' ticks/pips distance away after 'x' ticks/pips of profit has been reached.
Allow up to 4 Entry Times (i.e. user can choose 1 entry time or 2 entry time, or 3 entry time or all 4 entry times)
EA is based on Terminal time and NOT any specific Day or Date
Allow 1 distinct Profit Target (PT) and Stop Loss (SL) per Entry Time (Hence up to 4 distinct/indepandant Profit Target (PT) and Stop Loss (SL)). Hence each Entry Time will have it's own unique PT and SL.
Info Button - when enabled by clicking shows "Open Profit/Loss" for any open position and "Closed Profit/Loss" for the day and Closed Profit/Loss for the Month (if possible)
Allow Alerts On/Off
Allow AlertsMessage On/Off
Allow AlertsSound On/Off
Allow AlertsEmail On/Off
Buy Rule
Buy at HH:MM:SS (Terminal Time) if the Current Price (Ask) is greater than Open Price of the Bar [you can assume Buy is alway going to occure few seconds after a new Bar Opens]
DO NOT Buy more than once on the same bar
Buy is based on Time of Day and NOT Date
Sell Rule
Sell at HH:MM:SS (Terminal Time) if the Current Price (Ask) is less than Open Price of the Bar [You can assume Sell is alway going to occure few seconds after a new Bar Opens]
DO NOT Sell more than once on the same bar
Sell is based on Time of Day and NOT Date
Close Rule
Close once the Target Profit (TP) or Stop Loss (SL) is reached, which ever comes first
EA should be able to BackTest.
if the Current price (Ask) is greater than the Open price of the bar which occured at 09:00:00 than trigger a Buy Rule
Closing of Position (waiting until TP or SL is reached) can occure after current Bar
If the Current price (Ask) is less than the Open price of the bar wich occured at 09:00:00 than trigger a Sell Rule
When EA is triggered to go Short than Close the position until Target Price (TP) or Stop Loss (SL) is hit, which ever comes first and stop trading until the next Buy/Sell Rule
Closing of Position (waiting until TP or SL is reached) can occure after current Bar
DO NOT open new position at the Close of the Bar until next Buy/Sell Rule
StopLoss (SL) and TakeProfit (TP) - are fixed, adjustable by the parameters StopLossand TakeProfit
Completely ignore all of the "other" positions and to work only with its own positions (perhaps use autogenerated a specific Magic Number).
Miscellaneous:
The information on the opening/closing of positions and of modifications of the SL should be stored in the Journal;
If there are any errors, it must print a message describing the error.
the drawing of arrows of position opening/closing price levels, the detailed information in the journal