help me create an expert advisor with the iRSIonarray indicator. Here is the indicator's mql4 code:
//+------------------------------------------------------------------+
//|
iRSIONARRAY.mq4 |
//| Copyright 2019,
MetaQuotes Software Corp. |
//|
https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2019, MetaQuotes Software Corp."
#property link "https://www.mql5.com"
#property version "1.00"
#property strict
#property indicator_separate_window
#property indicator_minimum 0
#property indicator_maximum 100
#property indicator_buffers 2
#property indicator_plots 1
#property indicator_level1 30.0
#property indicator_level2 70.0
#property indicator_levelcolor clrRed
#property indicator_levelstyle STYLE_DOT
//--- plot RSIOnArray
#property indicator_label1 "RSIOnArray"
#property indicator_type1 DRAW_LINE
#property indicator_color1 clrBlack
#property indicator_style1 STYLE_SOLID
#property indicator_width1 1
//--- indicator buffers
double RSIOnArrayBuffer[];
double OSMABuffer[];
input int BarsToCompute = 1000000;
input int OSMAFastPer = 12, OSMASlowPer = 26, OSMASignalPer = 9;
input int RSIPer = 14;
//+------------------------------------------------------------------+
//| Custom indicator initialization function
|
//+------------------------------------------------------------------+
int OnInit()
{
//--- indicator buffers mapping
SetIndexBuffer(0,RSIOnArrayBuffer);
SetIndexBuffer(1,OSMABuffer);
//---
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function
|
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,
const int prev_calculated,
const datetime &time[],
const double &open[],
const double &high[],
const double &low[],
const double &close[],
const long &tick_volume[],
const long &volume[],
const int &spread[])
{
int limit =
MathMin(BarsToCompute,MathMin(rates_total-1,rates_total-prev_calculated));
for (int i=limit; i>=0; i--)
{
OSMABuffer[i] =
iOsMA(_Symbol,_Period,OSMAFastPer,OSMASlowPer,OSMASignalPer,PRICE_CLOSE,i);
RSIOnArrayBuffer[i] = iRSIOnArray(OSMABuffer,0,RSIPer,i);
}
return(rates_total);
}
//+------------------------------------------------------------------+
Take profit = 30
Stop loss = 20
The lot = 0.01
We will use for the positions taken the RSI curve of the indicator above.
Checklist for buying:
- H4, RSI> 70
- M30, RSI make a first peak on the line of 70 then a first trough on the line of 30
- H4, RSI is always> 70
- Position statement in M30.
Note:
- Do not take a long position if in step 4 the RSI < 70
- The checklist is valid if RSI > 70 in step 1 and 2 at the same time.
Checklist for selling:
- H4, RSI <30
- M30, RSI make a first dip on the line of 30 then a first vertex on the line of 70
- H4, RSI is always <30
- Position statement in M30.
Note:
- Do not take a short position if in step 4 the RSI > 30
- The checklist is valid if RSI < 30 in step 1 and 2 at the same time.
Do not forget to put the function that allows you to perform the backtest.
Thank you
類似した注文
Hi, I am starting a futures prop firm. Are you able to help me get data feed for this with no delays and can handle many traders on the platform. Additionally, are you able to handle charts for us
Mam kody EA Bot. Chciałbym je dokończyć, dopracować i ukończyć projekty. Chciałbym otrzymać pliki SET po ukończeniu EA. Jeśli jesteś zainteresowany, skontaktuj się ze mną. Szukam doświadczonego programisty do stworzenia dedykowanego doradcy eksperckiego (EA) do tradingu. Programista powinien posiadać solidną wiedzę z zakresu MT5, logiki strategii, wskaźników, zarządzania ryzykiem i backtestingu. Doświadczenie w
I am looking for an experienced developer to create a custom Expert Advisor (EA) for trading. The developer should have strong knowledge of MT4/MT5, strategy logic, indicators, risk management, and backtesting. Experience in building reliable and professional trading robots is preferred. Please contact me if you have done similar projects before. 9817724000
⸻ 🧠 Professional AI Prompt (Clear English Version) Act as a professional algorithmic trading engineer with deep expertise in developing automated trading systems for TradingView and MetaTrader. You have strong knowledge of market behavior, trend analysis, and risk management. Your task is to design a fully automated trading strategy based on the following requirements: ⸻ 🎯 Entry Conditions: • Open a BUY trade
I need a skilled MQL5 developer to build a fully functional Expert Advisor (EA) for MetaTrader 5 based on a simple but strict trading strategy. The EA will use EMA 50/200 trend detection combined with breakout and retest logic for entries. It must operate only during London and New York sessions and include solid risk management (fixed % risk, SL/TP, trade limits, and basic protection rules). APPLY ONLY IF YOU HAVE
VWAP BB Sniper EA Quantum VWAP Scalper SmartFlow FX Bot Institutional Edge EA 🧠 PRODUCT OVERVIEW VWAP + Bollinger Bands Auto Trading System A high-precision forex scalping bot designed to capture institutional price movements using: VWAP (fair value tracking) Bollinger Bands (volatility & entry timing) 👉 Built for fast, consistent intraday profits
Hello traders, I have Quantum queen v3.52, which is the latest version, available for $500 only. The price on the platform is around $1800, but I am offering it for a much lower price for serious buyers. Details: Product: Quantum queen Version: v3.52 Price: $500 Condition: Serious buyers only
Hi, I am looking to purchase a MT5 EA that can show consistent profitability 5% each month with drawdown less than 9%. I am not ready to build a new one from scratch as i do not have the strategy in mind yet so i do not want to take the risk of building one but not sure if it works. Only apply if you have an existing proven and tested EA that can sell to me together with the source code. The Ea is for prop firm even
It must have automated stop loss. Something that can end poverty and kill the market early.It must take the trades for me whenever I start it it must work on tradeport ea
I WANT TO CONVERT MY INDICATOR TO ROBOT, BUT I DONT HAVE THE SOURCE CODE , THE PROGRAMMER WILL DEVELOP THE SOURCE CODE FOR THE JOB. THE STRAGY IS SIMPLE , THE ROBOT WILL EXECUTE A TRADE WHEN THE SIGNAL FROM THE INDICATOR APPEARS. BUY SIGNAL IS WHEN THE ARROW APPEAS ON THE LOWER ZONE ( SUPPORT ZONE) SELL SIGNAL WHEN THE ARROW APPEARS ON THE UPPER ZONE ( RESISTANCE ZONE).THE ROBOT WILL HAVE THE FOLLWING FEATURES (1)