İş tamamlandı
İş Gereklilikleri
Please create a robot that identifies divergences (both positive and negative) in the MACD compared to price swing highs or swing lows and provides an entry order when the MACD lines crossover subsequently. Desire an order sizing feature based upon % stated risk. Desire initial stop loss placement just outside of the swing that also accounts for the bid/ask spread. A 3 exit strategy including 1/3 off @ 1:1 reward/risk target, half remainder when 3:1 reward/risk is hit, final position managed with a dynamic trailing stop. This is the meat of the programming I desire. A screen shot of the signals that I would expect the program to uncover is attached, including up (lime) and down (red) arrows for the signals. Details of the program description can be emailed to you since it is a Word document. JAShalvey@gmail.com Here are the details of the project:
Trade Plan with Programming Details
Broad Concept: Utilizing MACD Crossover with 12, 26, 21 settings, trade set ups occur when the blue line (formed by 12, 26 parameters) diverges with price. Entry signal occurs when blue line crosses red line (formed by 21 parameter). Initial stop loss order placed just beyond the most recent swing point price extreme. After defining this risk, first profit is taken at the 1:1 (reward: risk) price by closing half the position of the trade. Stop loss order is moved to break even (the entry price). A “free trade” is now in play since the trade is now profitable with zero chance of becoming a loser. If the trade reaches the 3:1 profit price point, then half of the remaining (25% of the original position size) position is removed. The final portion of the position (last quarter of the original position) is managed with a trailing stop that is positioned just outside of the most recent swing extreme until ultimately getting stopped out. If a signal is given in the opposite direction while a trade is still open, then the signal should be ignored. The position size is determined by utilizing the initial stop loss risk amount and dividing it into the dollar amount of the maximum risk on the trade. No less than 5% and no more than 25% of the account should be placed at risk on any single trade.
Settings:
1. MACD parameters (12,26,9) as default, but trader can change all three of these. Trader is given the option to see the MACD Histogram or not, even though it does not influence the program (default setting is NOT visible).
2. Targets for each of the 3 exits (factory: 1:1, 3:1, Trailing)
3. Ability to include the spread of the security being traded in the calculation of the original risk & hence be included in the placement of the original stop. This should also be automatically accounted for when stop automatically moves to break even after the first profit target is reached.
4. If MACD blue line is same as MACD red line (lines are VERY close to crossing), then entry trigger occurs when prior bar’s extreme is exceeded by 1 unit(tic). Otherwise, the entry trigger occurs when the blue line has crossed the red line and entry is taken promptly upon the open of the next bar.
5. Program will show a red line off the peaks of prices when a bearish divergence is present (even if the MACD has not crossed and thus causing a trade signal). In other words, the bearish divergence is the “warning” before an actual trade signal is given by the MACD. Vice versa for bullish divergence, which would show Lime green off the troughs of price action prior to the MACD signal.
6. Ability to tweak the maximum % of account value that you are willing to lose on any single trade by calculating the difference between the entry price and initial stop loss, then calculating position size automatically. Position size should be rounded to nearest whole number.
7. New trade set ups and/or signals should be ignored if current position is still open.
8. Lime-green up arrow and red down arrow (exact point of trade entry) should appear on the MACD indicator chart on the bar/candle where entry position was taken.
9. An automatically placed TTO order when new position is taken. The parameters would be that the stop order would be [1 unit/tic + the current trade spread] outside of the recent swing low or high ALWAYS. The take profit would be such that half (this parameter of the initial profit percentage should be set up as a variable that the trader can choose prior to running the program) of the position is closed when a 1:1 reward to risk ratio has been hit. The stop would then automatically be moved to break even (entry price). 1/4th of the original position (again, this parameter of the profit percentage should be set up as a variable that the trader can choose prior to running the program) is closed when a 3:1 reward to risk ration target has been hit. The stop would then automatically be moved to [1 price unit + spread] outside the most recent swing high or low. Then it automatically gets adjusted if price takes out a high or low by moving it to the new recent swing high or low (+/- [1 unit+spread]). These parameters (profit %’s) must be able to be changed to configure optimization and/or accommodate different trading styles.
10. Ability to use a parabolic trailing stop after 1st half of position is closed and/or for final quarter of position, including the ability to tweak the parameter of this parabolic trailing stop (to either make it tighter or looser). So, after initial profit taken as X%, the second profit parameter of X% choices are 1)some multiple of the initial risk, with 3:1 being the default setting, or 2) a parabolic trailing stop with the ability to change the parabolic variable used to make it tighter or looser.
11. Program will show the stop order as a yellow horizontal line that begins where it was initiated, projects three time frames into the future (for ease of visibility when it initiates), and grows to the right with each passing time frame. When stop level changes, the old stop stays on the screen but the new stop begins at the new level and projects 3 time frames to the right. Parabolic stops will only show a yellow dot (instead of the horizontal line) with prior stops staying visible on the screen as the parabolic stop changes with each passing time frame.
12. Program will be scanning multiple currency pairs and/or securities looking for trades. Trader will have the flexibility to choose the currency/security and each security’s time frame. The trader can decide upon one or several time frames per currency/security. The choices will be 1 min, 5 min, 15 min, 1 hour, 4 hour, daily.
13. Program can have multiple positions open simultaneously with the ability to place a maximum allowable limit on how much of the account can be used at any one time. (this will prevent the software from getting into too many positions and causing potential margin calls when positions go against you only modestly and are not actually stopped out) If possible, never let a new position to be opened when all the maximum risk exposures are added up to equal X% of the account value. This will allow the trader to be able to decide how much of the account is willing to be risked. (i.e., trader doesn’t want to have more than 50% of account invested at any one time, so program ceases to open any new positions until there is free capital below this 50% ceiling.)
14. Use market orders always, but have the option to choose a limit order for both entry and exit orders.
15. For traders that want a more hands on approach, have the software provide an audible and visual alert (YELLOW up or down arrow on the MACD above or below the fast blue MACD line) when line is diverging with price.
16. Position size, initial stop loss, and profit targets upon entry trigger should be shown on the chart so that the trader can see what the software has chosen, or so the hands on trader can quickly place an order based upon these parameters (when the software is not being run in robot mode). The targets and stop loss should be displayed on the chart as lines (red for stop, green for targets) Ability to integrate with trade platform and preload order entry if possible when the trigger is tripped (so trader doesn’t have to fumble typing in the order parameters but simply has to click the entry icon.
17. Trader has a “settings” screen to easily change the parameters mentioned above (Currencies/securities to scan, time frames of each, % of account value at risk per trade, max % of account value invested at any given time, % profit taken at 1st exit, 2nd exit, MACD histogram visible or not, 2nd exit parabolic or fixed ratio of initial risk, etc.) without having to access the coding itself.
18.
Coding will
remain inaccessible to renter users, but will be to owners (me & purchasers). Visual effects (MACD, arrows, lines) will not be visible to MQLS5 renters, but only to purchasers of the software.
19. I will have the ability to download the program and burn a hard copy CD that I can install onto multiple computers and upload to my website so that a future purchaser can download to their computer.
20.
The program will
have the ability to be back tested utilizing the data provided by MQL5 broker
and create statistics, equity charts, etc. like those seen from these broker
platforms already.
21.
Payment will be
made once the above parameters have been tested and met will satisfaction.
PS- The attached screen grab is to help you visualize exactly what I am looking for. Please note: I want a blue LINE created on the MACD in-lieu-of the blue bars shown in this illustration.