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
Similar orders
I am looking for a professional MQL5 developer to build a MetaTrader 5 Expert Advisor from scratch. The EA will be called LadyKiller EA. It must trade only the following instruments: • XAUUSD (Gold) • US30 / Dow Jones Index Requirements: • Strong and reliable buy and sell entry logic • Stop Loss and Take Profit system • Risk management (lot size control) • Maximum trades protection • Drawdown protection • Trend
I need an mql5 EA which can be used with 100$ capital very low drawdown The EA should be high frequency trading special for XAUUSD and btcusd or binary options but also the EA should be testable via strategy tester and demo test for five days is needed NO SELECTION CAN BE DONE WITHOUT TESTING when applying make sure you send the backtester results with demo EA testable via strategy tester
I currently have a powerful and well-structured Expert Advisor available on the MT5 platform. This EA is designed with: ✅ Advanced entry and exit logic ✅ Smart risk management system ✅ Automatic lot sizing option ✅ Break-even and trailing stop protection ✅ Spread and session filters ✅ Drawdown control features ✅ Optimized for XAUUSD and scalping strategies ✅ Suitable for prop firm challenges like FTMO It is built for
Do you need a profitable and well-structured trading strategy converted into a fully automated Expert Advisor on the MT5 platform? I specialize in developing advanced, high-performance EAs with: ✅ Smart entry & exit logic ✅ Risk-based lot size calculation ✅ Break-even & trailing stop system ✅ Spread & session filters ✅ Daily drawdown protection ✅ Prop firm (FTMO-style) risk compliance ✅ Fully automated trade
Hello, I'm looking to find out the cost of creating a mobile trading robot. I've tried to describe it as thoroughly as possible in the following document. I look forward to your response. I'd like to know the costs, delivery time, and how you plan to implement it before making a decision
I am offering a ready-to-use trading system that connects MetaTrader 4 signals with automated trading on Polymarket. The system is already fully developed and working. What the system does: The bot copies signals from a custom MT4 indicator and executes trades automatically on Polymarket prediction markets. How it works: A custom MT4 indicator generates BUY or SELL signals using buffers. When a signal appears, it is
DO NOT RESPOND TO WORK WITH ANY AI. ( I CAN ALSO DO THAT ) NEED REAL DEVELOPING SKILL Hedge Add-On Rules for Existing EA Core Idea SL becomes hypothetical (virtual) for the initial basket and for the hedge basket . When price hits the virtual SL level , EA does not close the losing trades. Instead, EA opens one hedge basket in the opposite direction. Original basket direction Hedge basket direction (opposite) Inputs
Trading specifications: Indicators: Bollinger band ( Period 40, Deviation 1 apply to close) Moving Average (Exponential ) Period 17 applied to high Moving Average ( Exponential ) Period 17 applied to low But Signal enter a buy trade when prices crosses the lower band of the bollinger band up and also crosses the moving average channel of high and low the reverse is true for sell signal
Hello, I am a user of the "BUY STOP SELL STOP V6" trading bot, which is an advanced Grid System bot. The bot is primarily designed for Gold (XAUUSD), but I want it to work on all currency pairs. "The bot contains a privacy/protection code that prevents it from running on other accounts or being modified on any platform, as it has a client account number lock mechanism" --- Bot Description & Current Settings Bot Type
Looking to purchase a Good forex or gold/ BTC trading EA and it's source code. Must be compatible with low budget like less than $500 accounts, Must need no manual intervention and run fully automated. If you are interested in selling me the source code, please share the Read only account access where the EA has already been running on, so i can check past performance and get an idea on how it works or runs. Dont