Relatively simple MA crossover system needed

MQL5 エキスパート

指定

This EA is supposed to work like this (inputs are in blue):

 

The selected MA crosses the selected price level up or down. The EA opens a position in that direction with a market order at next candle open (based on the MA Timeframe) with the size as selected in Size on first cross. When the MA crosses the price level up, it will buy and when the MA crosses the price level down, it will sell.

For every cross after the first cross, it will keep doing the same as described above, except that now it uses the selected Size on sequential crosses.


If for example I fill in the following in the input fields:

Price level:                                      115

Size on first cross:                             1

Size on sequential crosses:                 2

Say that the current price is at 114.5, then with the above inputs, it will buy 1 lot/share/future/cfd with a market order when the MA closed beyond the 115 price level, and if it crosses down the 115 level afterwards it will sell 2. In this example there will always be a position open at any time, because 1 long position – 2 sells = 1 short position.

It is important that the EA only takes a trade when it actually crosses the price level and doesn’t buy right away when for example the EA was activated when the current price level at that moment was 116 because the EA sees that “116 is greater than the selected price level, so buy now”. It needs to actually cross the level.

 

These are all the inputs for this EA: 

                                                                                                                     Selections:

ATR Timeframe

1 min – 1 month

                                  ATR Length

  1 - infinite

 

==== < Moving Average > ====

Selections:

 

MA Method

AMA/SMA/EMA/VWMA/WMA/DEMA/TEMA/HMA

 

MA Timeframe

1 min – 1 month

 

MA Period

1 – infinite

 

 

 

 

==== < Key Level > ====

I n steps of :

 

Price level

0.00001

 

Size on first cross

0.01

 

Size on sequential crosses

0.01

 

 

==== < TP/SL> ====

I n steps of :

 

Profit Target

0.1

 

Stop Loss

0.1

 

Trailing Stop Loss

0.1

 

 

 

 

==== < Confirmation > ====

Selections:

Use

False/True

MA Method

AMA/SMA/EMA/VWMA/WMA/DEMA/TEMA/HMA

MA Timeframe

1 min – 1 month

MA Period

1 – infinite

 

 

Explanation per input that are not explained yet:


MA Method

Selectable MA types (all based on closing price):

  - Adaptive Moving Average

  - Simple moving average

  - Exponential moving average

  - Volume weighted moving average (external indicator that I will provide. Tick data need to be used as source)

  - Linear weighted moving average

  - Double exponential moving average

  - Triple exponential moving average

  - Hull moving average (external indicator that I will provide)

The MAs need to be put into the EA in this exact order.


Price level

This price level I should be able to fill in manually. This could be for example 1.18456 or 115.11 or 12394.75.


TP/SL (section)

These work based on the selected ATR Timeframe and ATR length. The EA will close the trade with a market order when the Profit Target/Stop Loss/Trailing Stop Loss is hit. The size for these should follow the inputs size on first cross and size on sequential crosses, so that it always only closes out the current open positions and never more or less.


Confirmation (section)

These inputs work the exact same as in the Moving Average section. This confirmation can be turned on by selecting “true”, or off when selecting “false” as input.

What it does is that the EA will only take a new position when the criteria that are selected in the confirmation section are met (for the first cross as well as all sequential crosses).


If for example the following confirmation inputs are selected:

MA Method: SMA

MA Timeframe: 15 min

MA Period: 1

The EA will only buy when the selected MA in the Moving Average section crossed the selected price level, and the current price level is also above the 15 min 1 SMA. The same is true for the reverse when selling instead of buying; then the current price level needs to be below the 15 min 1 SMA.


Note:

Both price level and MA should be visible on the chart, so that crossovers can easily be spotted and analysed.  


ファイル:

応答済み

1
開発者 1
評価
(145)
プロジェクト
258
35%
仲裁
12
25% / 58%
期限切れ
42
16%
2
開発者 2
評価
(5)
プロジェクト
6
17%
仲裁
2
0% / 100%
期限切れ
0
3
開発者 3
評価
(198)
プロジェクト
257
62%
仲裁
9
22% / 33%
期限切れ
10
4%
仕事中
4
開発者 4
評価
(180)
プロジェクト
301
30%
仲裁
54
24% / 56%
期限切れ
98
33%
5
開発者 5
評価
(247)
プロジェクト
439
34%
仲裁
56
36% / 38%
期限切れ
161
37%
取り込み中
6
開発者 6
評価
(140)
プロジェクト
206
80%
仲裁
18
33% / 44%
期限切れ
10
5%
仕事中
7
開発者 7
評価
(2)
プロジェクト
1
0%
仲裁
1
0% / 100%
期限切れ
1
100%
8
開発者 8
評価
(66)
プロジェクト
143
34%
仲裁
10
10% / 60%
期限切れ
26
18%
類似した注文
i have a ready made SMC EA and looking for optimizing and debugging and also adding back the missing things in the requirement file. Basically work with the current code and refine it to fit the requirement file. Most indicator is already in the EA and the requirement file below are mostly finish. here are the things need to add back and debug based on the requirement file 1. TP from the filter and need to check
If you think you can replicate EA ("reverse engineering") from Metarader's Market, and create a new EA from scratch that works 100% the same - please send an offer. I have already managed to find out many features of that EA (entry times, risk management, averaging, trailing...) but I still miss a few
Candle wick bot The bot will have a set amount of wick length to enter trade at candle open price, there will be a set Amount in points that the candle wick has to be to then enter that opposite of the wick direction Settings will look like this : Timeframe: (meaning which candles you’re using to measure open price from for the wick length ) If set to 5 min it’ll be using 5 min candles , if set to 15 it’ll use 15
Looking for a developer to create an MT4 EA based on a custom currency strength indicator and simple moving average. Will provide currency strength indicator code to the selected developer. Buy rules If the EA added in the EURUSD chart and EUR has a currency strength above or equal to 6 and USD has strength less than 2. Wait for the prices comes back to SMA and open the buy trade if the price closes above SMA. Place
I have an equity reporter. This equity reporter displays the maximum and minimum equity reached over a specific interval. So, if the interval is set to 24 hours, the script will generate data in the format: "Profit ATT" (profit AtThatTime) shows max./min. during the specific interval This specific report shows data in pips. It can also be set to display in price or percentages. The interval is also easily adjustable
Sistema HTF EFECTIVO 30 - 60 USD
Hola, me gustaría que un programador experimentado creea un sistema de trading EA que abra y cierre operaciones muy rápido en segundos (HFT). Sería óptimo tener una opción/botón para activar solo para comprar o solo para vender (operaciones unidireccionales). Con una buena interfaz gráfica de usuario. Se agradece la implementación de su propia experiencia con sistemas de trading HFT. Es para mercados volátiles como
Hello, I would like an experienced programmer to create an EA trading system which opens and closes trades very fast within seconds (HFT). To have an option/button to activate either for only buy or only sell (one way trading) would be optimal. With a nice GUI. Implementing your own experience with HFT trading systems is welcomed. It's for volatile markets such as XAUUSD or US30. Taking advantage of order placements
The strategy is a martingale type . i.e if it hits the stop loss , it will double the lot size and place again in that direction, and when it hits the take profit at any level of the martingale, it will start over from the first lot size used initially
I want you to make me an indicator in Training View. Its idea is very simple, and I want it to have an alarm. Here's a clearer step-by-step guide to checking the last 50 candles on your chart and applying Fibonacci retracement levels based on their colors: Identify Candle Color: Start from the 100th candle from the left on the chart and check its color. If the 100th candle is green (i.e., the close is higher than the
I'm looking for a developer to assist in creating an Expert Advisor (EA) for use in a prop firm. The EA should be designed for the MT4 trading platform and include the following features: Scalping strategy Maximum drawdown of 3% Please let me know if you're interested and capable of handling this project

プロジェクト情報

予算
30 - 100 USD
VAT(付加価値税) (21%): 6.3 - 21 USD
合計: 36.3 - 121 USD
開発者用
27 - 90 USD
締め切り
最高 3 日