Hello,
I'd like to create a grid/basket EA based on moving averages.
All buy orders should act as one basket/group. All sell orders should act as a separate basket/group.
======
Here is the logic for opening new baskets/groups:
Open a buy order group - At the start of a new candle if the 6 period EMA is above the 21 period EMA the EA should place one market buy order.
Open a sell order group - At the start of a new candle if the 6 period EMA is below the 21 period EMA the EA should place one market sell order.
There should only ever be one buy order group and one sell order group. For example if our conditions are met to open a new buy order group, but there are previous buy orders still open the EA should not open a new order. The EA should only ever add orders to the buy/sell order groups when it is following the grid rules.
It is ok to have both one buy and one sell order group open at the same time. For example we have one buy order group open. The 6EMA crosses below the 21 period EMA, the EA should open a sell order at the start of the next candle.
======
There should be two options to close orders/groups.
Option 1: Take profit = when all orders combined = the take profit pips input all orders should close (typical grid/martingale system)
Option 2: Drawdown reduction mode = when drawdown reached a specific %, the EA will close only the oldest and the newest orders. For example we have 5 buy orders open. When order 1 and 5 reaches a specific profit (let's say $1) it will close just order 1 and 5 leaving 2, 3, 4 open. The EA will then work to close 2 & 4 once profit reaches $1 for those two combined orders. If there is an odd number of orders, the last order will also close when it reaches the minimum profit ($1 in this example).
======
Here are the EA input settings:
==General==
Order Type: both / buy only / sell only / none
Use Hedge: yes / no (if yes the EA will allow for both buy and sell order baskets. If no, the EA will only have one basket open - either buy or sell. It will not open an opposite basket, even when the conditions are met)
Start Lot Size: opening order lot size
Use Money Management: true/false
Money Management Risk %: (calculation for opening lot size if MM is set to true)
Lot Multiplier: the amount to multiply the lot size for orders in the grid
==Grid Settings==
Grid Step: distance between orders in the grid
Grid Step Multipler: multiplier for the grid order distance
TP: take profit for both the first order or the entire grid
SL: stop loss from the first order (example if 200pips is entered, all trades in the grid will be closed once the first order is -200 pips)
==Reduce Downdraw Settings==
Enable DD Reduction: yes / no (if no, TP settings from above will always be used)
DD Percentage Enable: The account drawdown percentage required in order to enable the reduction closing method (as described above)
Profit For Close: the profit needed between the oldest and newest order for the EA to close them
==Other Settings==
Magic Number
Start - End Hour For Trading
Maximum Lot
Maximum Spread
Solicitudes similares
Hi, I'm a developer, and I'm looking for a freelancer to help me create a custom criterion in the OnTester function. I want this function to return the result of (Profit Factor - Z Score) . In other words, I need the OnTester function to calculate and return (Profit Factor - Z Score)
Hey, are you familiar with the trading software called PREDATOR? If yes, are you also familiar with the automated reversal fitcher? I really need to get connected with someone who's well skilled in coding to help me out, thanks
I need 2 robots that copy mt5 signals to mt5. 1 master robot that will be installed on an MT5 platform and will send entry, exit and pending order signals 1 slave robot that will be installed on another platform that will receive the signals The slave robot must also have the option to reverse orders and change the batch
Hi all talented coders among you. Very simple ask. enum Strats { RSI_Overheat = 0, //RSI Overheated CCI_Overheat = 1, //CCI Overheated Stochs_Overheat = 2, //Stochs Overheated NONE //No strategy } input Strats S1 = 0; input Strats S2 = 2; input Strats S1 = 3; //use default inputs for these built in indicators input RSI_OH = 80; input CCI_OH = 100; input Stoch_OH = 80; Declare handles Populate buffers Function for RSI
Please, try and read till the end. Thanks. T he EA should have a customized Login Page - Account and Password protection, ownership plus Expiry Date. The EA should have 2 Buttons. (A) for "Automatic Execution” (AE) and (B) manual mode for "Send Signal Only” (SSO) Basically, it’s the same EA, but should have automated trade execution and a manual mode which will send signals, only. Both should not be activated at the
Fix my EA errors and compile it and run it so that every coding is working perfectly I need to check your work on Demo after you fix the errors and if every thing is ok send me the Demo to check and confirm your work
buy order should be placed when ema 9 crossed over sma 20 and price retrace below or equal to ema 9 and stochastic %k length 50 and smooth 1 is above 50 . after buy stoploss should be trailed by lower donchian channel of period 16. Exit position when price crossing down lower donchoan channel. sell order should be placed when ema 9 crossed below sma 20 and price retrace above or equal to ema 9 and stochastic %k
hi are you familiar with the trading software called "PREDATOR" by sabar trading .?(probably building a new bot that works with the" predator" software ) if you do i want to add a condition for the automatic function of the reversal pattern trigger a condition of different time frame/renko , to the trade . is that something you can do
I have an MT4 expert advisor with source code. When I put the EA on, it only buys. I have no idea what the problem could be. Could you check and fix the problem. It is unable to identify the trend as in the code
I have an indicator-based Expert Advisor (EA) for MetaTrader 5 that needs the following corrections: --Note This is an easy job this should take a few hours, I dont want to wait until you finish 4 jobs and have me waiting I need this job completed ASAP, Important Allow the EA to open all trades immediately AFTER the indicator lines COMPLETELY CROSS, t he trade should trigger as soon as a complete indicator crossover