仕事が完了した
指定
Hi There,
I am in need of a programmer that will be able to create an EA for me based on multiple technical indicators and/or EMA requirements. This maybe a long term engagement as I want to build out this EA to to handle multiple situation and eventually AI down the road. Below are my first set of requirements to make the first EA base don Bollinger Band. Ideally this needs to work for MT4 right now and can easily be ported to MT5 in the future when needed.
Bollinger Band EA
SET UP - EA/BOT should be able to work on any time frame from M5 to W1, works with any currency, stock, futures, metal, oil etc...
EA must have its own magicNumber or as defined by the user.
1. EA will need to be able to take in the following input from the user for this martingale trade set up:
a. MAXORDER trade (how many orders in a series can the EA opens)
b. Starting lot (i.e. .01 or say .05 whatever is designated by the user)
c. pip Distance, the distance set between each buy/sell iterations in martingale (i.e. first buy price is 1.34000, while distance set to 500 pip, thus next buy will be 1.34500 and so forth).
d. lotMultiplier - how much should the next buy/sell lot in the series grow (if starter lot is .01 x 1.2 multiplier lot = .012 lot thus should be .01 lot as next order, but if it's .01 lot x 1.5 multiplier = .015, then next lot is .02 as the order lot rounding up if it's 5 or higher, round down otherwise), each new buy/sell will continue to use the previous buy/sell lot x the lot multiplier for next order
e. TP take profit pip - set by users to take profit after 10 or 100pip any pip designation by the user.
f. Stop Loss (S/L) pip - set by users to have a stop loss for certain pip if trade doesn't work out. a ZERO means no stop loss.
g. Bollinger Band offset (pip) how many pips higher than top/lower than the bottom should the trade be executed explained in step 4.a and 4.b below
h. Number of months to find highest price/lowest price if possible
i. Percent % within the last 3 months highest price/lowest price; explained in step 3 below.
NEW OPEN TRADE CONDITION
1. EA will needs to pull the last N months history and find highest price and the lowest price for the ticker and save the two prices (pHI, pLo).
2. If the current price is within 5-10% (designated by the user parameter above) of the highest price, then only execute SELL ONLY, opposite is true if price is 5-10% at the lowest, then BUY only.
3. If current price is not within with the % high/low from step #2 above, then EA can execute both buy/sell per condition below.
4.a. EA will execute a SELL when the current price goes above the TOP Bollinger Band by X offset pip designated by the user (i.e. top of BB + 10pip), thus price has to be above top BB by 10pip then sell.
4.b. The opposite to this is when EA hits below the BBand by X offset pip (i.e. bottom of BB - 10 pip which if BBand bottom is 1.34000 - 10pip more, thus BUY execute at 1.39090)
5. As trades are open from either step 4.a or 4.b, EA will continue to martingale in on the next buy/sell based on the DISTANCE set & the lot scale multiplier to buy/sell for the next lot size rounding up per decimal
6. Continue to do step 5 up to the MAXOPEN TRADE set by the user if the CLOSE trade condition have not been met.
7. Repeat the above process from 1-6 each time to open any new trades (buy/sell)
CLOSE TRADE CONDITION
7. EA will need to calculate the overall average price in the martingale buy/sell series above and then add in the TP condition set by the users
7.a. For the BUY series it will be the average price + the TP set by the users (i.e. average price for BUY is 1.34000, TP set at 100, then the close trade occurred at 1.34100)
7.b. For the SELL series it will be the average price - the TP set (i.e. average price for sell is 1.34000, TP set at 100, then the close trade occurred at 1.33900)
7.c Close due to Stop Lost set by user.
Throughout the CODE of the EA, comments need to be documented so that I can understand the logic/coding behind to ensure that the above conditions are met.
ALL SOURCE CODE will be my property and provided at the end of project.
EA will be backtested to ensure it function as designed and be optimized further if needed.
EA will be my property which I can choose to sell it later if I wish to.