Moving average crossover strategy

MQL4 전문가 Forex

작업 종료됨

실행 시간 14 일

명시

Moving average crossover strategy

 

We need an Expert Advisor for MetaTrader 4. 

 

It needs to be able to work on different time periods, currency pairs and Moving average indicators (EMA and SMA).

 

Bullet points

 

·      It will use exponential moving average and simple moving average indicators.

·      When moving average cross, it may trigger a sale or buy passion.

·      The actual bar needs to finish to be a certain trade signal. 

·      It needs to be able to work on different time periods. 

·      It needs to be able to work on different currency pairs.

·      Be able to choose different periods for the moving average.

 

Strategy

 

Opening positions

 

a.         When the two moving average cross.

b.        In order it to be a positive trade signal the bar needs to finish. The bar finish and the moving average has crossed. 

c.         It will open a trade on the direction the cross of the moving average point. 

a.         Big moving average below small moving average BUY (Long).

b.        Small moving average below big moving average SELL (short).

d.        Open order post crossing: Set an opening position to the direction the moving average point at a set price in points.

 

Closing positions

 

Tree ways to close a position. We should be able to choose witch one we want.

 

1.         When the moving average change direction, the cross and go to the appositive, Bar needs to finish, it doesn’t close with a single touch. It will close at the closing price.

 

2.         If take profit is meet.

 

3.         If a stop loss is set.

 

4.         Trailing Stop.

Input Parameters

 

§   Lot:  *****

§   Increment lot: if 0%, lot will be always what is defined. If above 0% it will be use in the following formula, “lot x (Actual balance/last trade balanxce) x (1+ increment lot)” = new lot to be use. Increment of balance is “Latest balance ÷ inicial balance”.

§   Take profit: In points, if 0, when moving average change directions.

§   Open Exception: if 0, Bar needs to finish with moving average crossed, if 1 open a trade at the moment they touch.

§   Stop loss: In points, if 0, when moving average change directions

§   Trailing Stop: from stop loss.

§   EMA 1: If 0 means we are using SMA.

§   EMA 2: If 0 means we are using SMA.

§   SMA 1: If 0 means we are using EMA.

§   SMA 2: If 0 means we are using EMA.

§   Open order post crossing: if 0, the closing price of the bar that confirms change direction. If other value, XX points opposite the direction of the trade from the closing price of the bar that confirms change direction.

§   Balance: wallet money


Example 1

 

See Parameters, description and photo.

 

Parameters

 

§   Lot: 0.1

§   Increment lot: 2%

§   Take profit: 15 pips

§   Open Exception: 0

§   Stop loss: 30 pips

§   Trailing Stop: 0

§   EMA 1: 10

§   EMA 2: 40

§   SMA 1: 0

§   SMA 2: 0

§   Open order post crossing: 0

§   Balance 10,500$

 

Time frame: 4h

Pair: EURUSD

Balance before last trade: 10,000$

 

Description

 

1.         EMA 10 and EMA 40 cross. EMA 10 is below EMA 40, it triggers a Sell positions.

2.         Bar closes at 1,0990. An order is place at that price, sell lots 0.1071. (10,500/10,000) x (1 + Increment lot: 2%)

3.         Stop loss and take profit is set.

4.         Price move to take profit and 15 pips 

5.         Expert advisor waits until EMA Cross Again



I would like to have and see the source code.


Thank you!!!!

파일:

JPG
IMG_1074.jpg
610.4 Kb

응답함

1
개발자 1
등급
(508)
프로젝트
764
63%
중재
33
27% / 45%
기한 초과
23
3%
무료
2
개발자 2
등급
(19)
프로젝트
35
26%
중재
10
30% / 70%
기한 초과
5
14%
무료
3
개발자 3
등급
(878)
프로젝트
1391
67%
중재
117
32% / 42%
기한 초과
215
15%
작업중
4
개발자 4
등급
(2077)
프로젝트
2636
61%
중재
113
45% / 26%
기한 초과
418
16%
작업중
5
개발자 5
등급
(221)
프로젝트
369
66%
중재
10
50% / 0%
기한 초과
46
12%
무료
6
개발자 6
등급
(16)
프로젝트
32
47%
중재
1
0% / 100%
기한 초과
8
25%
무료
7
개발자 7
등급
(19)
프로젝트
22
32%
중재
10
0% / 100%
기한 초과
3
14%
무료
8
개발자 8
등급
(19)
프로젝트
27
11%
중재
11
9% / 55%
기한 초과
12
44%
무료
9
개발자 9
등급
(82)
프로젝트
86
57%
중재
25
0% / 84%
기한 초과
19
22%
무료
10
개발자 10
등급
(277)
프로젝트
334
55%
중재
14
36% / 29%
기한 초과
1
0%
무료
11
개발자 11
등급
(58)
프로젝트
76
33%
중재
9
78% / 11%
기한 초과
7
9%
무료
비슷한 주문
Looking for an EA which can produce less than 5% drawdown. Also profit factor above 1.5 (preferably 2.0) Please give me proper explanation how your EA works too Has anyone programmed it before? is it limited to forex only
I want to make a new dashboard using 3 common indicators and the ADX indicator , which you must supply I have a MA dash which you can strip & reuse if it helps you I tried to cover all questions in the attached but i'm sure there'll be more
I want the script in mql5 language for my martingale strategy. The script should open trades in both directions buy and sell and if any trade closes in loss then open new trade in that direction by using the next volume and when trade closes in profit then reset the volume to first from volume list and also maximum consecutive losses limit will apply. If trades closes consecutively in losses and hits the limit then
I installed the E.A. into the Experts folder in MT4. When I double click on it nothing happens. When I right click and "attach to chart" nothing happens. The E.A. is not grayed out, it simply will not attach. Any help would be greatly Appreciated
hi hi there i have an strategy on tradingview and i want to automate it like metatrader EA so i want the strategy to open and close trade automaticlly on tradingview
We are looking for an experienced Expert Advisor Developer who can build a customized MT5 Expert Advisor for us. The Expert Advisor would use two built-in indicators as entry/exit signals and our own risk management strategy with customizable inputs. The goal is to create a reliable and efficient trading tool that can automate our trading process on the MT5 platform. Skills required: - Strong understanding of
The wiper 35 - 48 USD
a ll traders want to find market behavior patterns, which could help identify favorable moments for performing trading operations. They also want to eliminate randomness and influence of external factors, such as rumors, news releases, fatigue, and so on. Traders monitor charts and may formulate some formal rules, which enable objective analysis of price or tick charts. Technical indicators can facilitate such
I need EA that works on MT5 to be able to do the following: - Can recognize Support/Resistance area - Can recognize VWAP direction. - Can recognize RSI. - Can recognize Double Top/bottom, Bullish/Bearish hammer candle, Bullish/bearish engulfing candle. - Ability to set Stoploss below/above support/resistance, but risk must be fixed at a certain price. - Stoploss
I want a program that will help calculate and enter the market on full margin for me. I just need to put in the price for entry, Stop loss and TP then it will calculate the lot sizes for entering the trade on full margin on Mt5
I am seeking a highly skilled and experienced developer to assist with an important project. I need a development of an automated trading bot for NinjaTrader, utilizing a 4 SMA (Simple Moving Average) crossing strategy, with additional custom diversions for trade entries. The bot needs to be based on a strategy involving the crossing of four different SMAs. The exact periods for these SMAs and the conditions for

프로젝트 정보

예산
35+ USD
VAT (21%): 7.35 USD
총: 42.35 USD
개발자에게
31.5 USD
기한
에서 3  10 일