Requirements
We use the below code (at the end) for generating Android notifications. We want to convert this Notification EA to a Trading EA ie instead of sending Android notifications we want the EA to do automated trading. We have the below requirements
1. The EA should be coded using MQL4
2. The EA should be timeframe independent and should run on any timeframe (1 min, 5min 15min etc)
3. EA should run once per candle at the candle start
4. EA should be able to run on Metatrader4 terminal ie compatible with Metatrader 4
5. EA/Script Should be able to be migrated to virtual server and run there
6. The EA should use default MQL4 stochastic indicator to initiate trades (iStochastic)
7. The below parameters should be defined by the user and they can change the value of any of these parameters at any time
• K period, D period and slowing period for the default MT4 stochastic indicator (iStochastic)
• The starttime: when the EA should start trading everyday.
• The endtime: when the EA should liquidate any open position
• The lot size: the size of the order to be placed by the EA everytime. This should range from 0.01 to any possible higher number.
• The take profit pips: number of pips the EA should keep as a target for any trade opened by it. For buy orders it should be Orderprice+ take profit pips and for sell orders it will be Orderprice- take profit. If EUROUSD is at 1.08551 the on buy the take profit of 10 points will be 1.08651 and for sell order it will 1.8451
Conditions for trade
1. When the K line crosses over the D line the EA should place a buy order at market price for the specified lot size.
2. When the K line crosses under the D line the EA should place a sell order at market price for the specified lot size.
3. At any time, by the above condition there will be only one order possible
Exiting the trade:
The long or short trades should be closed for below conditions
1. For buy order: The K line crosses under the D line ( at market price )or the take profit point whichever comes earlier
2. For sell order: The K line crosses over the D line ( at market price )or the take profit point whichever comes earlier
3. At the endtime the EA should close all trades and wait for the starttime to start trading again.
Payment Terms; to consider the product to be delivered successfully for payment I will test the script on the below cases
1. Customise the EA settings and Run the script on MT4 windows terminal on 1, 5, 15,30, min, 1 hour charts
2. Check if the migration to my virtual server of the charts along with the EA/Indicator works fine.
3. Check if the scrip is running fine on the Virtual server and perform the same trades
I will test the script on EUROUSD,
Code used for reference (the developer need not use the same code if they have better way to implement the above functions.
#property version "1.00"
#property strict
input int MagicNumber = 000; //Magic Number
input int k_period = 14; //Stochastic K Period
input int d_period = 3; //Stochastic D Period
input int slowing = 3; //Stochastic Slowing
input ENUM_MA_METHOD ma_method = MODE_EMA; //Stochastic Moving Average Type
input int price_field = PRICE_CLOSE; //Price field parameter. 0=Low/High or 1=Close/Close
input bool SendNotification = TRUE;
double sto_main_curr,sto_sign_curr,sto_main_prev1,sto_sign_prev1,sto_main_prev2,sto_sign_prev2;
datetime TimeCurrent;
datetime LastActiontime;
//+------------------------------------------------------------------+
//| Expert initialization function |
//+------------------------------------------------------------------+
void OnTick()
{
if(LastActiontime!=Time[0]){
sto_main_curr = iStochastic (Symbol() ,PERIOD_CURRENT ,k_period ,d_period ,slowing ,ma_method ,price_field ,MODE_MAIN ,0);
sto_sign_curr = iStochastic (Symbol() ,PERIOD_CURRENT ,k_period ,d_period ,slowing ,ma_method ,price_field ,MODE_SIGNAL ,0);
sto_main_prev1 = iStochastic (Symbol() ,PERIOD_CURRENT ,k_period ,d_period ,slowing ,ma_method ,price_field ,MODE_MAIN ,1);
sto_sign_prev1 = iStochastic (Symbol() ,PERIOD_CURRENT ,k_period ,d_period ,slowing ,ma_method ,price_field ,MODE_SIGNAL ,1);
sto_main_prev2 = iStochastic (Symbol() ,PERIOD_CURRENT ,k_period ,d_period ,slowing ,ma_method ,price_field ,MODE_MAIN ,2);
sto_sign_prev2 = iStochastic (Symbol() ,PERIOD_CURRENT ,k_period ,d_period ,slowing ,ma_method ,price_field ,MODE_SIGNAL ,2);
{if ((sto_sign_prev2<sto_main_prev2) && (sto_sign_curr>sto_main_curr) && ((TimeHour(TimeCurrent())>1) && ((TimeHour(TimeCurrent())<21))))
SendNotification("EURUSD 5MIN BEARISH");
}
{if ((sto_sign_prev2>sto_main_prev2) && (sto_sign_curr<sto_main_curr) && ((TimeHour(TimeCurrent())>1) && ((TimeHour(TimeCurrent())<21))))
SendNotification("EURUSD 5MIN BULLISH");
}
LastActiontime=Time[0];
}
}
類似した注文
I want to have a own strategy tester like the one in MQL5 But I want a new one my own tester Because I need to test many EA related each to other on the same time .and I want to have a replay to see the past history minute by minute on a panel
Hello guys, I want to create a gold (xauusd)trading bot. The account balance would be €30 or €50—essentially a bot designed for a "cent account" using fixed lots, starting at a minimum lot size of 0.01. It should be a scalping bot capable of generating a daily profit of €2,000 to €3,000. As the capital grows, the lot size can be increased manually, which would, in turn, increase the profits. Is there anyone who can
Description: Hello, I need a professional, high-quality optimization of the"Ultimate SMC" Expert Advisor for MetaTrader 5. The primary objective is to create robust and safe configuration files(.set files) tailored specifically to pass the Funding Pips prop firm challenge using a cosnservative risk model. Assets and Timeframes:1.Currency Pairs: EURUSD and GBPUSD (Upon completion, I require 2 separate,independent .set
Title: Create a Combined Indicator from 3 EX4 Indicators + Fully Automatic Trading EA (MT4) Description: Hello, I need an experienced MQL4 developer to build a custom trading system based on 3 existing .ex4 indicators. Project Requirements: Combined Custom Indicator: Read and merge signals from 3 specified .ex4 indicators via buffer reading (iCustom). Generate a consolidated BUY or SELL arrow/signal
I need a robot that trade on command and stop-loss and take profit when need to , able to trade on all plate form follow profitable strategies or signal , want a winning streak with fast profits making
Hi I'm looking for this EA or Similar EA with optimizated set file. This bot is an automated trading robot, operating 24/7, and capable of trading all currency pairs. Compatible with all brokers. Features: Analysis of price action charts, trends, and support and resistance levels on any timeframe. The bot integrates stop-loss (SL), stop-loss (TP), and trailing stop-loss (SL) orders. Works on MT5 getshared . c o m
I wish to create 2 different Tradingview strategies to MT5 ea-s! Anyone? One is based on Heiken Ashi...the other based on different combination of my strategy. It is for 1 minute charts
Specify your Requirements Specification here point by point. Try to describe your requirements briefly and clearly, so that your potential developer is able to correctly assess its complexity and cost, as well as the required execution time. A bad or too generic description will result in your order being ignored, or you will spend a lot of time negotiating the details with each applicant. Remember: It is better to
**IMPORTANT: PLEASE DISREGARD THE PREVIOUS SPECIFICATION TITLED "FULL TRADING PLATFORM – APPLICATION FLOW REQUIREMENTS."** I no longer need the complete trading platform outlined in my previous **"FULL TRADING PLATFORM – APPLICATION FLOW REQUIREMENTS"** specification. Originally, I considered building a complete trading platform with educational materials, training systems, user accounts, subscription features
I have indicators on my Trading view which will create zones automatically on H4 Candle confirmation. I am getting an alert also that specific zone is created. I want them to shift in automated trading like once zone is created, limits should be place automatically on basis of that zone with given lot size, number of layers and with TP and SL. I have checked on AI to convert this in auto but they need zone in numbers