Trabalho concluído
Termos de Referência
Please make an offer of how much this EA will cost to build. I will carefully consider all offers that come in before Sunday evening my time. The job will be awarded early next week. Thank you.
I need an MT5 Expert Adviser for prototyping purposes.
The goal is to build this EA and I WILL test it on 25 currency pairs, setting individual parameters for each currency pair as needed for profitable trading.
There will be several unique things about this EA. First, I'd like to use a wizard generated version of the EA so that we can keep costs low.
Final trading settings will go to our production project in based in Java on the TWS system.
Non-triggering indicators:
- SMA(20)
- SMA(50)
- SMA(200)
These three indicators will only be for informational purposes and in order to test uptrend or down trend when preparing to put on a new trade.
ADX, plusDI, and minusDI will be used with some unique settings.
This will be a directional trading EA. If an initial Long trade is put on n trades up to Max Trades. More on Max Trades further down.
Input Requirements
AutoTrade true/false toggle to enable on/off switching of new trades only Boolean
Max Trades - Integer
Percent of Equity per trade Double
Long SMA periods Integer
Respect Medium MA toggle True/False Boolean
Medium SMA periods Integer
Respect Short SMA toggle True/False Boolean
Short SMA periods Integer
ADX Periods Integer
Respect ADX true/false Boolean
First Trade at ADX Integer
Parabolic SAR normal settings (I think 3 with Double Typecast)
Respect SAR true/false Boolean
Money management - we will always trade by percent of margin. i.e. each trade will be 1% or 2% or 2.5% of available margin. Total funds on the barrel head should never exceed 60%, but that should not be a problem.
Max Trades parameter - This parameter will identify the total number of trades that can be entered going in any single direction either Short or Long, not both. Once price action changes direction, all trades will be closed and a new entry point will be sought for the first trade in the new direction. My own trading rule will be
There are a couple of quirks I want this EA to have!
First, if Max Trades is 1 then only one trade will be put on.
Subsequent trades should be evenly spaced between the first trade and ADX(100). Therefore, if Max Trades is 2 then the initial trade will be put on as per ADX rules below, and the second at ADX(100). Trades will only be triggered once we reach the designated ADX level.
With Max Trades of 3, then there will be three evenly spaced trades. If the first trade is set at ADX 20 and there are three trades, then the formula (100-20)/2 would give us trade entry points at ADX(20), ADX(60), and ADX(100). Trades will only be triggered once we reach the designated ADX level.
If Max Trades = 4, then the same formula will be used. Let's just say that First Trade set at ADX 25. Then the formula would still be (100-25)/3. This would give us entry points at ADX(25), ADX(50), ADX(75) and ADX(100). Trades will only be triggered once we reach the designated ADX level.
if Max Trades = 5 and Fist Trade set at ADX(20) then (100-20)/4 would give us trade thresholds at ADX(20), ADX(40), ADX(60), ADX(80) and ADX(100). Trades will only be triggered once we reach the designated ADX level.
Finding a first trade
If Respect ADX is true, then this trade will be put on either when plusDI and minus DI cross AND when ADX is above both plusDI and minusDI. If first Trade At ADX is 25 and plusDI and minusDI crossed when they were down at 20, then the robot will wait to trade into the direction that is greater between plusDI and minusDI AND only when ADX reaches 25. If Respect medMA and/or Respect shortMA is/are true, then this first trade must also look for Long Trades above either or both medMA and/or shortMA and short trades below either or both medMA and/or shortMA.
Once the first trade is put on, then subsequent ADX levels should be discovered as described above, and new trades should be put on as ADX rises.
If Respect ADX is false and Respect Parabolic SAR is true, then the intersection of the Parabolic SAR with the price action is where an initial trade is opened, as long as ADX is above both plusDI and minusDI.
Closing Trades
ALL TRADES WILL BE CLOSED AT THE SAME TIME.
Trades will be closed either:
- when plusDI and minusDI cross
- when ADX drops below both plusDI and minusDI
- as a last resort, when the parabolic SAR meets the price action.
Other options: I would welcome verbose settings so that I can see in Journal where in the program we may have challenges. We can discuss details here.
If AutoTrade is false, then I want to either email or alert using sound. I have WAV files for Buy Open and Sell Close events for all 25 currency pairs.
I expect source code for this EA so that I can have later changes made as needed.
CipherPips