Job finished
Specification
Outline for Expert Advisor. You can name it Trinity Vybz for now as the name will be finalized in the future.
Here are the parameters and mechanics:
(Bread and Butter - Main mechanic)
1. The EA will utilize 3 Simple moving averages. The 50, 15 and 10. (
a. (This will take place on the 5 minute but please allow the time to be a variable that can change. Also price must cross either above or below all three moving averages before the trade signal can be generated.)
b. Once the signal is generated, the signal can only be triggered once it crosses all three moving averages again. *Price must close and cross all three to be a new signal.
c.(If price moves more than 150 points in one sweep and crosses two or three of the MAs then the signal is also invalid and must be triggered again.) ***(Allow this to be turned on or off as well and allow the amount a candle moves to be modifiable.)
2. Additionally, the Next candle must move 6-8 points before entering the trade. Please also allow this “GAP” to be a modifiable value named: Gap
3. Additional parameter that can be switched on or off: (If the 10 MA is crossing the 15 MA, and is above the 15 and the 50 MAs, we will only look for buys.) (If the 15 MA is crossing the 10 MA and is below the 10 and the 50 MA, we will only look for sells.
4. I would like for the Stop Loss to be dynamic and based off the 15 or the 50 MA line but also have the option to set a fixed amount. Please allow this to be a variable that can be changed between the 15 or the 50 or a fixed point amount.
5. When a trade signal is generated, lets have the bot open 2 trades. One trade will be for 80% of the position and the other will be for 20%. For the 80% trade, the take profit will be 20 points in the favorable direction. For the 20% trade, the take profit will be 120 points in the favorable direction. For example if the Lot Size is set to 1.0, upon entry there will be two trades. One for 0.80 with the TP at 20 points and another for 0.20 where the TP will be set at 120 points. Please allow both the percentages and the points to be a modifiable value.
6. If the 10 MA and the 15 MA are less than 15 points from the 50 MA, (example: If price is 1.26814 on the 15 MA and 1.26820 on the 10 MA and the 50 MA price is 1.26823), refrain from taking any trades until the MAs are more than 15 points apart in total, meaning if the 10 MA is 1.26814 and the 15 is 1.26820 and the 50 MA is 1.26831 we can look for trades. If there is currently an opened trade, no action is necessary. (Allow this to be enabled or disabled)
7. Starting Lot size can be set to 0.10
8. Lets allow the breakeven function. Allow this once the trade passes X amount of points to bring the trade to breakeven + Y amount of points. For example If the trades passes 40 points, allow the breakeven function to kick in and it will set the stop loss to entry + 5 points. (Allow this to be enabled or disabled at any time and allow the extra cushion to be a variable that can change.
9. Time filter - Allow trading to take place on certain days of the week and certain times of day.
10. Allow the function for the trade to be opened while price is actively crossing the 50 Moving average line. For example, this can work in opposition to rule 6 if that rule is disabled only. For example, if price is above or below the 15 and 10 MAs and heading up or down towards the 50 MA, allow that once price reaches the 50 MA for a trade signal to be generated. (Allow this to be enabled or disabled)
11. High Probability using slope calculations: When there is a positive slope greater than 0 on all of the moving average lines, we will only look for buys. When there is a negative slope, less than 0 on all of the moving average lines, we will only look for sells. Also make this a variable that can turn on or off
12. Graphics: Please set the 50 MA line to yellow, the 15 to red and the 10 to green if possible.