Trabajo finalizado
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Tarea técnica
Inputs:
----------
Trading Days
Daily : on / off
Monday : on / off
Tuesday : on / off
Wednesday : on / off
Thursday : on / off
Friday : on / off
Moving Average Period :14
Moving Average Method : simple/exponential/smoothed/linear weighted
Start Time :
End Time : On/ Off
End Time :
Lot size :
Stop loss :
Take profit :
No trading Hours : On/ Off
No trading Hours : 00:00 to 00:00
Equity Protection : 80%
EA Name : (optional)
Concept :
If market trade above Moving Average line then buy at opening price of current candle, if market moved below Moving Average line , then close buy order and place sell order,only opening price of current candle if market is below Moving Average line, Close previous order then take opposite order immediately. every new order only place opening price of candle only not between candle .Once take profit reached then close trade and exit all.
Take profit means, if I give take profit in 200 pts in input area , then our first order take profit is 200 pts,with given stop loss in appropriate order either buy (if market above MA Line) or sell (if market below MA Line) at given entry start time.
If first order reach take profit of given 200 poits,then close all exit.if first order booked -50 points, due to market direction changed, then close order and take opposite order with take profit of 250 pts,because actual tp200pts,previous of -50 pts, if first order closed by + 50 pts profit , and our next order take profit is only150 pts. So take profit calculate in automatically through previous order’s closing points.
No trading hours means don’t take new orders between given from to time( see input), but previous existing order will continue..
Trading days means optionally , i.e. i given daily , then trade daily accordingly input conditions..
Optionally i choose Monday , then start trade Monday,, once take profit will achieved in between week days close trade and exit all , and next new order will take next Monday..
Exit condition:
#1 If Once reached Take profit.
#2 If Once reached Equity protection percent.
#3 If once reached End time.