Watch how to order a trading robot
Automated EA based on RSI-MA-MTF-Cross-Alerts-Indicator
Formal Requirements Specification:
The EA will be able to open positions immediately when MA Cross RSI. The EA will be able to close the position automatically when the MA Cross Back RSI on the same or different TimeFrame/Period.
Example: If the EA open a BUY order (10-Period MA Cross Under green RSI). The EA must be able to close the position when the MA cross back the RSI (5-Period MA Cross Above Red RSI) on the same or different TimeFrame of my choice.
The Indicator is pretty Self-explanatory because the EA is already generating Signals when MA cross RSI.
*Msg No Trend when MA cross RSI
*Msg Trend when MA has definitely crossed RSI.
Entry Settings: See attached Picture
BUY when MA cross under green RSI and Sell when MA cross above red RSI
TimeFrame Current Bool M1;M5,M15,M30,H1,H4,D1,Week,Month
MaType 3 0=SMA; 1=EMA; 2=SMMA; 3=LWMA; 4=LSMA;
Exit Settings: See attached Picture
Close BUY position when MA cross above red RSI and Close Sell position when MA cross under green RSI
AutoScaler Pending Order
In Order to maximize the profit, I would also need the option to place automatically multiple Pending Order(s) every Xpips from the original entry once a position has been opened.
PS: The EA will be able to close open positions and eventual untrigerred Pendings Order(s) when trend changes. (MA Cross RSI in opposite direction)
Filters Parameters (Optional) True or False
Sell only in OverBought (above 70); Buy Only in OverSold (under 30)
_Fixed lot, (minimum 0.01)
_Break even that account for the Spread, (Minimum profit will be $1)
3 different Stop Loss:
_Stop loss in pips;
_Stop Loss on X Previous Candle Hilo MTF + XPips Padding
_Stop Loss on X Previous Resistance/Support + XPips Padding;
4 different type Trailing Stops
_A Trailing Stop Trigger
*A Basic Trailing Stop in pips
*A Fractal MTF + Xpips padding Trailing Stop.
*A Trailing stop by Shadow + Xpips padding (SL below the low of the lowest of N last bars (for a long position) or over the high of the highest of N last bars (for a short position) with an adjusted indent of pips)
*MA Trailing Stops + Xpips padding (0=SMA; 1=EMA; 2=SMMA; 3=LWMA; 4=LSMA)
I provide all source code of the different type of Trailing Expert. All you need to do is Integration. (TrailingByFractals; TrailingByShadow; TrailingByMA)
The Xpips Padding, knows, as Indent in Trailing Expert is really important because the Market seems to often hunt the Stops that are placed exactly at the previous Candle HiLo or exactly at the previous Support\Resistance before making his move. Its preferably to place Stops or pendings 5 to 10 pips away from previous Candle HiLo or previous Support/Resistance.
_EA Name: Sea Weed
_EA Password: ypognon
*Trade: Allows trading;
*Alert: Does not allow trading. Instead, it shows/sends Alerts (Emails, Message, Sound, Notify).
_Entry Only on Crosses:
*True: Trade will be place only after a Cross between MA and RSI.
*False: The EA will enter the Market immediately in the direction of the current trend
_Confirmation Before Executing Order: Option to confirm either YES or NO to enter the Market (Useful in case of Semi Automated Trading).
PS: Zero confirmation will be needed to exit automatically the Market (Close Trade)
_Stealth Mode : Hidden Stop Loss and Take Profit
_IsMicroAccount : Micro Account
*Completed Bars: Execution every time a full bar is completed.
*Every Tick: Execution every time a tick is received.
_FiveDigits: True or False
_Maximum Number of Positions per chart.
_Number of Retry Attemps for Order execution. 100
_ECN Broker Enable: If the broker uses ECN execution, The EA has to set SL/TP after opening a position. ECN brokers require that your Buy/Sell orders do not include TP (Take Profit)/SL (Stop Loss) These are added later.
Trading Time/Day Filters
_Trading Hours Start (24h):9
_Trading Hours End (24h):16
_Sunday Start hour (24h): 22 (Start Trading Day)
_Friday Close hour (24h) : 22 (Close All open Trade)