Create an Expert Advisor for strategy in BTCUSDm using MT4

Tarea técnica

Input parameter:

  • Timeframe = 5 mins
  • ATR length = 5
  • Multiplier = 1
  • RSI length = 14
  • RSI Value =50
  • Lot size = 0.01 lots.


Strategy Rules

Bullish Trade Entry:

If the price crosses above the supertrend value and the RSI >50, and the volume of the current candle is higher than the average volume of the last 3 candles.

  • Close(1) > SuperTrend(1)
  • Close(2) < SuperTrend(2)
  • RSI(1) > 50
  • Volume(1) > (Volume(2)+Volume(3)+Volume(1))/3


Bullish Trade Exit :

If the price crosses below the SuperTrend Value

  • Close(1) < SuperTrend(1)
  • Clsoe (2) > SuperTrend(2)


Bearish Trade Entry

If the price crosses below the supertrend value and the RSI <50, and the volume of the current candle is higher than the average volume of the last 3 candles.

  • Close(1) < SuperTrend(1)
  • Clsoe (2) > SuperTrend(2)
  • RSI(1) > 50
  • Volume(1) > (Volume(2)+Volume(3)+Volume(1))/3


Bearish Trade Exit :

If the price crosses above the SuperTrend Value

  • Close(1) > SuperTrend(1)
  • Close(2) < SuperTrend(2)


Crosses above the condition

  • Close(1) > SuperTrend(1)
  • Close(2) < SuperTrend(2)


Crosses below the condition

  • Close(1) > SuperTrend(1)
  • Clsoe (2) > SuperTrend(2)


Terms should be used in such a way

  • Close(1) = previous candle (just closed)
  • Close(2) = candle before that
  • SuperTrend(1) = SuperTrend Value of previous candle (just closed)
  • SuperTrend(2) = SuperTrend Value candle before that
  • Volume(1) = Tick volume of the previous (just closed) candle
  • Volume(2) = Tick volume of the candle before the previous one


RSI(1) RSI value of the previous (just closed) candle


Note


1. Make sure all the entries and exits will take place at the close price of the candle just closed

Only One Trade at a time, means once the bullish Trade is exited, then only we will look for a bearish trade and vice versa.


2. For Indicator

For SuperTren,d build a custom Indicator that can be plotted in any chart and use it with the help of iCustom() inside the EA

For RSI, use the default function iRSI() inside the EA

For Volum,e also use the default function iVolume() inside the EA


3. Maintain a tradelog of every trade and export it to a CSV file after every trade.

Format for the Trade log.

Symbol | Timestamp | Entry Time | Entry Price | Exit Time | Exit Price | PnL | Cumulative PnL

After every trade exit, the data should be appended into the tradelog CSV file.


4. For Debugging purposes. I need the following data for every iteration.

Timestamp | close Price| Super Trend Value | RSI Value| Volume | Entry Condition (True/False) |Exit Condition (True/False)


5. There should be a separate function for calculating SuperTrend, RSI, Volume, and Entry and Exit. During the entry and exit condition check, the program should call the values ofthe above function and use them for condition checking


Archivos adjuntos:

Han respondido

1
Desarrollador 1
Evaluación
(68)
Proyectos
124
40%
Arbitraje
17
47% / 53%
Caducado
31
25%
Trabajando
2
Desarrollador 2
Evaluación
(621)
Proyectos
972
47%
Arbitraje
32
38% / 34%
Caducado
96
10%
Trabajando
Ha publicado: 6 ejemplos
3
Desarrollador 3
Evaluación
(268)
Proyectos
396
27%
Arbitraje
38
39% / 50%
Caducado
1
0%
Libre
4
Desarrollador 4
Evaluación
(55)
Proyectos
80
23%
Arbitraje
24
13% / 58%
Caducado
7
9%
Trabaja
5
Desarrollador 5
Evaluación
(47)
Proyectos
66
38%
Arbitraje
5
20% / 40%
Caducado
1
2%
Trabaja
6
Desarrollador 6
Evaluación
(12)
Proyectos
13
23%
Arbitraje
7
0% / 71%
Caducado
3
23%
Trabaja
7
Desarrollador 7
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
8
Desarrollador 8
Evaluación
(264)
Proyectos
593
35%
Arbitraje
64
20% / 58%
Caducado
147
25%
Libre
Ha publicado: 1 artículo, 22 ejemplos
9
Desarrollador 9
Evaluación
(23)
Proyectos
45
20%
Arbitraje
25
28% / 48%
Caducado
12
27%
Libre
10
Desarrollador 10
Evaluación
(2)
Proyectos
2
0%
Arbitraje
3
0% / 100%
Caducado
1
50%
Libre
11
Desarrollador 11
Evaluación
(373)
Proyectos
479
23%
Arbitraje
57
56% / 25%
Caducado
55
11%
Trabajando
12
Desarrollador 12
Evaluación
(102)
Proyectos
154
20%
Arbitraje
22
9% / 77%
Caducado
14
9%
Trabajando
13
Desarrollador 13
Evaluación
(7)
Proyectos
12
17%
Arbitraje
12
17% / 50%
Caducado
3
25%
Libre
Ha publicado: 8 artículos
14
Desarrollador 14
Evaluación
(304)
Proyectos
544
35%
Arbitraje
77
31% / 42%
Caducado
196
36%
Trabajando
15
Desarrollador 15
Evaluación
(77)
Proyectos
240
73%
Arbitraje
7
100% / 0%
Caducado
1
0%
Libre
16
Desarrollador 16
Evaluación
Proyectos
1
0%
Arbitraje
1
100% / 0%
Caducado
0
Libre
17
Desarrollador 17
Evaluación
(246)
Proyectos
253
30%
Arbitraje
0
Caducado
3
1%
Libre
Ha publicado: 2 ejemplos
18
Desarrollador 18
Evaluación
(43)
Proyectos
66
12%
Arbitraje
12
58% / 42%
Caducado
1
2%
Libre
19
Desarrollador 19
Evaluación
(59)
Proyectos
90
39%
Arbitraje
26
4% / 77%
Caducado
40
44%
Libre
20
Desarrollador 20
Evaluación
(11)
Proyectos
18
28%
Arbitraje
4
50% / 50%
Caducado
1
6%
Libre
21
Desarrollador 21
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Trabaja
22
Desarrollador 22
Evaluación
(64)
Proyectos
144
46%
Arbitraje
19
42% / 16%
Caducado
32
22%
Libre
23
Desarrollador 23
Evaluación
(5)
Proyectos
5
60%
Arbitraje
1
0% / 0%
Caducado
2
40%
Libre
Ha publicado: 1 ejemplo
24
Desarrollador 24
Evaluación
(2622)
Proyectos
3327
67%
Arbitraje
77
48% / 14%
Caducado
342
10%
Libre
Ha publicado: 1 ejemplo
25
Desarrollador 25
Evaluación
(4)
Proyectos
5
0%
Arbitraje
3
0% / 33%
Caducado
1
20%
Libre
26
Desarrollador 26
Evaluación
(44)
Proyectos
53
38%
Arbitraje
8
13% / 38%
Caducado
8
15%
Trabaja
27
Desarrollador 27
Evaluación
(20)
Proyectos
26
4%
Arbitraje
4
0% / 0%
Caducado
3
12%
Trabaja
28
Desarrollador 28
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
29
Desarrollador 29
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
30
Desarrollador 30
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Solicitudes similares
I have an issue with my ninja script and i would like you to help me straighten things I wanted to create an indicator and i have the source code already but i am getting compiling errors on my NinjaTrader And i tried fixing the error it still same I sent 3 images here for you to understand the errors and i would like to ask if you can help me fix it so i can go ahead and compile my source code. Thanks
Good day, I would like to build an automated trading system for Ninjatrader using 2 MACD, a Supertrend, and a moving average indicator. I want the option to adjust the indicator settings, the ability to trade at three different times, and the option to receive alerts. I want to get an idea of what that will cost me. It will enter trades on all blue take one contract out at a fixed point, move the stop to break even
Good day, I would like to build an automated trading system for Ninjatrader using 2 MACD, a Supertrend, and a moving average indicator. I want the option to adjust the indicator settings, the ability to trade at three different times, and the option to receive alerts. I want to get an idea of what that will cost me. It will enter trades on all blue take one contract out at a fixed point, move the stop to break even
I have an indicator i need automated i use it manually and it plots arrows. Can you automate it for my Ninjatrader8? Do you need to see file? Expert Ninjatrader Developer can Bid for this project
Looking for NinjaTrader 8 Developer I’m looking for an experienced NinjaTrader 8 (C#) developer to build a custom indicator based on the Jackson–Dalton Trading System . Requirements: Jackson zones (Z1 / Z2 / Z3) VWAP with volume-weighted standard deviation Session volume profile (POC, VAH, VAL) Day-type classification Configurable alerts Support for BTC/USDT and ETH/USDT Clean, modular code with full source Optional
Hey bro, can you help with NT8. On a vps, multiple algos and prop account but the strategies keep getting out of sync, going from true to false for no reason….. mid trade it pops errors.The algo codes are locked… other than that it’s open VPs, NT8 and strategy is open You will notice in the strategies xml that there are standard, then 100k and 50k versions…… Also I did version that are in strategy labeled "Apex"
I would like to create an indicator for my strategy on trading view , my strategy involves a liquidity sweep , wick or candle body closure , this needs to happen inside a higher time frame pd array such as a fair value gap that’s atleast 5m + and there needs to be an inversion fair value gap for my entry , I want the fair value gaps on all time frames so I can see them all on the 1 minute chart but i want the fair
can you help me with making a simple tradingview/script that draws boxes labeling consolidation areas according to my specifications? IF anyone can help with this kindly do well to bid to this so we can discuss more about the project thanka
MetaTrader 5 (MQL5) için Expert Advisor geliştirecek TÜRK MQL5 yazılımcı arıyorum. 📌 Gereksinimler: - MQL5 diline hâkim (MT5 native) - Daha önce çalışır EA / indikatör teslim etmiş - Temiz, modüler ve yorumlu kod yazabilen - Debug ve backtest sürecine destek verebilen - Kaynak kodu (.mq5) teslim edebilen 📌 EA Özeti: - Kendi stratejime uygun işlem alacak - Xauusd ve SPX500 işlem alacak. - Günlük bias kontrolü
I'm seeking a NinjaTrader indicator and scanner to identify stock patterns for swing trading. I need this tool to help pinpoint swing highs and lows and key levels, covering various timeframes. Scope of work - Develop NinjaTrader indicator for last swing high and low - Implement key level marking for supply and demand zones - Create a market analyser scanner for reversal, structure shifts, and breakout patterns -

Información sobre el proyecto

Presupuesto
30 - 100 USD
Plazo límite de ejecución
a 5 día(s)