Hello,
I need a code to implement at my EA.
Make sure you got every detail of the code and do not hesitate to contact me.
When my EA will call this function ( "int Moment()" ), the result of the code should be: +1 for UP trend, -1 for DOWN trend and 0 for NEUTRAL.
The following should be the parameters inputs:
input group "MA"
input ENUM_TIMEFRAMES MA_TimeFrame = PERIOD_CURRENT;
input int MA_Period = 20;
input int MA_Shift = 0;
input ENUM_MA_METHOD MA_Method = MODE_SMA;
input ENUM_APPLIED_PRICE MA_Applied_Price = PRICE_CLOSE;
input group "VOLUME"
input ENUM_TIMEFRAMES VOL_TimeFrame = PERIOD_CURRENT;
input ENUM_APPLIED_VOLUME Vol_Type = VOLUME_REAL;
input group "GENERAL"
input int CalculateBars = 300;
input int Moments_Average = 20;
The function will calculate up to "x" last bars (CalculateBars = 300).
Every time 02 sequence bars (i and i+1) close (close price) above the MA trend line, it will initiate a new "moment" (UP trend), until 02 sequence bars close below MA trend line and initiate a new "moment" (DOWN trend this time).
So, when 02 sequence bars close above the MA trend line, the function will start to calculate the following data:
1) How many points is the diference between the value of the close price of the first bar of this "moment" and the close price value of the last bar. (Should be in points and always positive value) - "mov_distance"
2) The sum of the volume (real or tick) of all the bars that compose the "moment". - "vol_sum"
3) The result of the division from the sum of the volume and the distance of the bars movement. - "power = vol_sum / mov_distance"
This function will calculate it until the next 02 sequence bars close below the MA trend line.
When it happen, it will initiate a new "moment", but this time it will be a down trend. PS: Remember the "power" result must be always a positive value, because the "mov_distance" should be the result in points.
As we are calculating the last x bars (300 for example), it should happen a lot of mixed "moments" of up trends and down trends.
For each "moment" of this, the function code will save the results ("power") separately.
After that, it will calculate the average of all moments results. "Moments_Average".
Now, the last part is:
If the value of the current "moment" is greater then the "Moments_Average", it will return +1 for up trend and -1 for down trend.
If the value of the current "moment" is minor of the "Movements_Average", it will return 0.
비슷한 주문
Dear Developers, I am seeking a professional developer to build an institutional-grade automated trading system that operates exclusively using pending orders, with advanced and fully customizable trade management logic. This is not a basic Expert Advisor. The goal is to create a structured, intelligent, and long-term trading system with clean architecture and professional execution standards. Project Requirements
Dear Developer, I am currently experiencing several structural and logical limitations in the existing bot system, and I am seeking a complete professional upgrade to a fully automated, intelligent trading solution. The objective is to preserve the core SMC strategy while significantly improving precision, automation, multi-timeframe alignment, and trade quality. Below are the required specifications: 1. Dynamic
Hello there Hpe you are doing good I am in search of a pine script expert developer who can build strategy in apudFlow in pinescript. Kinldy bid on this project if you can do this
Attach up to 32 files maximum 16 Mb per upload (.zip .txt .log .mqh .ex5 .mq5 .mq4 .mqproj .ex4 .mt5 .set .tpl .cl .py .sqlite .csv .ini .ipynb .onnx .gif .png .jpg .jpeg .mp4 .webm)
I need a scalping-specific logic MT5 trading bot with a Donchian-channel–based dynamic stop-loss and take-profit system, applies RSI volatility filtering to avoid low-quality setups, and allows asset-specific adjustable parameters for fine-tuning performance Trading details: - Symbol: Any Forex EUR/USD - Platform: MT5 - Strategy type: Scalping (fast trades) - Timeframes: 5sec/ M1 / M5 - Fixed Stop Loss and Take
//+------------------------------------------------------------------+ //| XAUUSD Safe Scalp - TP $2 / SL 60 points | //+------------------------------------------------------------------+ #include <Trade\Trade.mqh> CTrade trade; // ===== Inputs ===== input double LotSize = 0.01; input int StopLoss = 60; // points input double DollarTP = 2.0; // ربح بالدولار input int MAPeriod = 50; input
Looking for an experienced MQL5 developer to analyze and reverse-engineer the trading logic of an existing scalping Zone Recovery EA using Moving Averages and Bollinger Bands, and then rebuild it
I have my own indicator and needs to create EA expert working smoothly with it to hit the targets as defined in indicator: Technical approach: - The EA will read the indicator signals using Copy Buffer on the selected timeframe - The EA should hit indicator variable targets factor -Auto-Entry: Instant execution when the signal appears. -Alerts: Mobile Push Notifications + Pop-up alerts. -Money Management Auto-lot
hello great developer I’m hiring a developer to build a local-only trade copier that sends trades from MT4 and MT5 to NinjaTrader 8 (NT8) in real-time. This copier must be reliable, fast, and fully executable without cloud dependence. I require a short test/demo period before full delivery to ensure quality and performance. here is the full project specs in the file check it please
I need a reliable, clean-coded Expert Advisor built for both MetaTrader 4 and MetaTrader 5 platforms. Main trading behavior: The EA follows buy and sell arrows produced by my custom indicator. Whenever a buy arrow shows up on the chart: if a sell position is currently open → close that sell immediately and enter a buy trade in its place. Whenever a sell arrow appears: if a buy position exists → close the buy and