작업 종료됨
명시
Hello. Please see the description of the EA I require as follows.
The trailing stop is based on a MQL Product and I have the code snippets for the selected developer.
This product must be up to MQL standards as I plan on releasing it as a free tool on my profile.
I also have another EA very similar to this and there is code there that may be of use if you like to view. Please see it as I have attached it as well.
ENTRY. EXIT. TRAILING
Hello. This is an EA for money management, trade entry and exit. It has hotkeys to allow for fast transactions.
Please make this so that it’s up to MQL standards as I plan on allowing it to be used for others to benefit as well. It will be a free utility on my MQL profile.
I have had an EA with most of these INPUTS made up over the past few years with a number of developers. I will attached the code of this as well in case there is anything that’s of use for you to make it easier. My main idea of redoing this EA is to add to it and also make it a clean code and ready for MQL.
VARIABLE VALUES
ORDER QUANTATY 1
2
ORDER 1
CHOOSE RISK TYPE FIXED LOT
RISK MONEY
FIXED LOT
RISK % 0.5
RISK MONEY 100
FIXED LOT 0.05
RISK/REWARD 2.0
BREAK EVEN 1.2
BASKET TRUE
FALSE
OVERRIDE
BASKET TP % 5
BASKET SL % 5
STOP LOSS HOT KEY
FX TREND FX TREND PERIOD
FX TREND DEVIATION
TRAILING SL FX TREND FX TREND PERIOD
FX TREND DEVIATION
RATIO ENGAGE TO SL 1.5
MAGIC NUMBER 777777
ORDER 2
CHOOSE RISK TYPE FIXED LOT
RISK MONEY
FIXED LOT
RISK % 0.5
RISK MONEY 100
FIXED LOT 0.05
RISK/REWARD 2.0
BREAK EVEN 1.2
BASKET TRUE
FALSE
OVERRIDE
BASKET TP % 5
BASKET SL % 5
STOP LOSS HOT KEY
FX TREND FX TREND PERIOD
FX TREND DEVIATION
TRAILING SL FX TREND FX TREND PERIOD
FX TREND DEVIATION
RATIO ENGAGE TO SL 1.5
MAGIC NUMBER 777777
If BASKET TP/SL is TRUE then this is set as a safety to the account but all SL/TP and Trailing SL still apply.
If BASKET TP/SL is OVER RIDE then this means that the basket close will over ride all TP/SL and Trailing SL INPUTS.
ALL settings are based on balance NOT equity.
R/R is a ratio to the SL
B/E is a ratio to the SL
RATIO TO ENGAGE SL… Is the distance as a ratio to engage the trailing to the SL.
ORDER QUANTATY 1 OR 2…. Is the amount of orders that will be placed when this EA executes a deal. So if its ORDER QUANTATY 1 selected then only 1 deal is executed on the HOTKEYS and the INPUTS for the order quantity 1 are used.
ORDER QUANTATY 2 means that 2 deals are executed when the HOTKEYS are used and this is based on the BOTH ORDER QUANTATY 1 and 2 INPUTS.
If we are in HOTKEY VALUE on 1 and FX TREND SL on the other then the SL value (POINTS) will apply to the HOTKEY VALUE MODE and the FX TREND VALUE will still apply to the other order as well.
HOTKEYS (FX TREND)
S ENTER = Sell
B ENTER = Buy
This is based on INPUT of STOP LOSS set to FX TREND and then the settings of FX Trend stop along with their money management will apply according to the selected INPUTS.
HOTKEYS (MANUAL)
S 123 ENTER = Sell with a SL of 123 points… All points for hotkeys are variables.
B 123 ENTER = Buy with a SL of 123 points… All points for hotkeys are variables.
Another example.
S 987 ENTER = Sell with a SL of 987 points… All points for hotkeys are variables.
B 987 ENTER = Buy with a SL of 987 points… All points for hotkeys are variables.
Then all other money management INPUTS apply.
DASHBOARD
Will need a little simple onscreen dash that shows what’s selected. And also shows the hotkeys as they are being pressed to allow for no mistakes to be made in the order execution. This dash should be able to be located in either corner of the screen with colors changeable. Floating profits with account balances and equity as well as current account DD. Time left on the candle and spread. Please use common sense and if you have some saved library code there that can be of use and placed in here to make it better then please do so.