工作已完成
指定
Specification
I require an EA in mpl5 that can be used on multi currencies and multi timeframes. It will need a grid system which will include the RSI, MA and Stochastic.
When the EA is attached to a single chart, say for instance a EURUSD it will monitor multiple currencies and timeframes in real time.
Main Features
EA monitors multiple currency pairs at the same time. When we apply the EA on a single chart it will monitor all the symbols/currencies we have in our settings. It needs to work in backtesting.
Symbols: The currency pair/pairs the indicator monitors. either a single pair , (example = EURUSD) or multiple pairs (example = EURUSD,USDJPY,GBPUSD,CADJPY,AUDCAD,NZDUSD ( up to 25-30 pairs)). The EA needs to account for currencies or broker with different suffix (example EURUSD.a or EURUSD-5)
Input Parameters for the EA
Initial Lot
Volume Calculation Method: Fixed Lots, Balance Risk Percent, Free Margin Risk Percent
Fixed Lots: 0.01
Risk Percentage of Balance/Free Margin: 5
General Options
Currencies: Setting for currencies the EA will trade. (Example: EURUSD, GBPUSD, AUDNZD)
TP: Setting for Take Profit in pips (Example = 10)
SL: Setting for Sell Loss in pips (Example = 30, If 0 then Disabled)
SL% Account Balance: Setting for Sell Loss in Balance %. If order reaches the number in the SL% of the Account Balance the EA will close the order. If the Account Balance is $1000 and the SL% Account Balance = 10, when the order reaches $900 the EA will close the order (Example = 10, If 0 the Disabled)
SL% Free Margin: Setting for Sell Loss in Free Margin %. If order reaches the number in the SL% of the Free Margin the EA will close the order. If the Account Balance is $1000 and the SL% Account Balance = 20, when the order reaches $800 of the Free Margin the EA will close the order (Example = 20, If 0 the Disabled)
Signal Settings
MA Period: Setting for MA Period (Example = 50)
MA Buy: Setting for MA when to Buy (Example = Price above MA/Price below MA)
MA Sell: Setting for MA when to Sell (Example = Price above MA/Price below MA)
RSI Period: Setting for RSI Period (Example = 14)
RSI Lower Level: Buy Oversold level for RSI filter (Example = 20)
RSI Upper Level: Sell Overbought level for RSI filter (Example = 80)
Stoch K: Setting for K period (Example = 14)
Stoch D: Setting for D period (Example = 3)
Stoch Slowing: Setting for Slowing period (Example = 3)
Stoch Lower Level: Buy Oversold level for Stoch filter (Example = 20)
Stoch Upper Level: Sell Overbought level for Stoch filter (Example = 80)
Grid Settings
Use Grid: Option if the user wants to use grid or not (Example = True or False)
Grid Trade Distance: Minimum Grid distance between orders if the trade goes the other way in pips. If Use RSI = True grid will only one a trade if RSI and grid distance are True (Example = 100)
Use RSI: Option if the user wants to use RSI to open the grid or not. The Grid will not open unless the RSI levels below are met (Example = True or False)
RSI Grid Lower Level: Buy Oversold level for Grid RSI. This Level is NOT the same level as the RSI in the Signal Settings (example = 30)
RSI Grid Upper Level: Sell Overbought level for Grid RSI. This Level is NOT the same level as the RSI in the Signal Settings (example = 70)
Grid Order Multiplier: Multiplier of the initial lot when the order reaches the grid distance. Initial lot = .01 lots, new order .01 * 2 (Example = 2)
Smart Grid: This setting will close the initial order at a loss before opening a new order at the grid distance setting. The new order will use the multiplier of the initial order and the same TP. If TRUE and initial order was .01 lots and the multiplier is 2 when the order hits the grid distance or grid distance and RSI, the EA will close the initial .01 lots order at a loss and open a new order at .01 lots * 2 multiplier = .02 lots, in the same direction. The new TP will be the same number but added to the new order. If the currency continues to go the opposite way and the EA will close order #2 of .02 lots and open a 3rd order of .02lots * 2 multiplier = .04 lots. In essence the “Smart Grid” does not keep numerous orders as a traditional grid, but rather close each of the old grid orders and opens new ones. This way the Account Margin is not used by all of the grid orders. (Example = True/False)