Trabajo finalizado
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Tarea técnica
This is a very simple EA and its primary function is to take trades in very fast price action markets. Like during economic news releases etc. Therefore this EA is simple so that it can be designed with the least amount of latency. The developer must be aware of this with every line of code he writes. he must design it so there is the least amount of cycle delay prior to order execution.
EA User inputs;
Short or long____ (0/1)Long=1/Short=0
EA CAN ONLY TRADE ONE DIRECTION. SHORTS OR LONGS. 1=LONG 0=SHORT
ENTRY CONDITIONS
Entry Start time : H:H: M:M:S:S (HOURS MINUTES SECONDS. SECONDS MUST BE FUNCTIONAL SEE ATTACHED EA YOU CAN COPY TO INSURE SECONDS FUNCTION.)
Entry End Time H:H: M:M:S:S
Use external dates : T/F (if true EA reads "Date file name" in MQ4/files to validate that event date is in the text file.) format sample attached. dates should be pre-loaded in memory.
Date file name: _______(name of text file)
Bar CONDITION: T/F(TRUE/FALSE) If true the value from the open price of the current bar is compared with current price. it must be=or > then min input and = or< then max input )
Bar trigger min in pips ___ the current bar from open to current price must be => the value
Bar trigger Max in pips ____ the current bar from open to current price must be =< the value
Max Bar Block: T/F If true the previous completed bar is tested to see if the size is less than max bar block.
Max Bar block in pips____ (previous bar (shift=1). From high to low must be =< then value)
These entry conditions must be coded with latency consideration.
EXIT CONDITIONS
Take profit : input in Pips
Stop Loss :input in pips
Trailing Stop: input in pips (after the input amount stop loss trails.)
Break Even Bars : (number of bars that must pass before stop loss is set to entry price)
close after Bars : (number of bars that must pass before trade is automatically closed)
Multi-bar exit. T/F
number of bars___ (1- 5)
FOR LONG, the current price must be lower than the last previous X bars.where X is the input from number of bars)
FOR shorts, the current price must be higher than the last X bars
These exit conditions must be coded with latency consideration.
we will be using latency test to compare order execution.