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.
비슷한 주문
I need a AI signal generating bot for forex trading that use the latest ai technology to track real time forex market, analyse and give signals. The bot should operate such that when i put it in a chart it will analyse the market, after several minutes it will display whether the trade is buying or selling. It should display the one minute, five minute,15minute, 30 minute, one hour, 4 hours and daily time frame
I want to modify my two bots. One is a signal bot i want it to be modified to use ai technology in getting trading signals. The other one is a trading bot which is not working. I want it to be modified
1. Objective A fully automated trading bot that: • Trades USD-quoted assets (forex pairs like EUR/USD, GBP/USD, crypto markets with USD trading pairs, and USD-denominated stocks/ETFs). • Uses real-time data to detect trends and place entries/exits based on multiple strategies. • Maximizes profit while maintaining robust risk controls and drawdown limits. 2. High-Level Architecture Components Component Purpose Data
Hello I want to convert my tradingview indicators into Ninja trader can anyone help me with it it is urgent and I will like to discuss more about it to you if you can help me Kindly do well to bid on it
I need a custom MT5 Expert Advisor with the following rules: Strategy: - Timeframe: M15 (adjustable input) - Indicators: - MACD (12,26,9) - SMA 200 as trend filter Entry rules (CLOSED candles only): - BUY: - MACD main crosses above signal on closed candle - Price close above SMA 200 - SELL: - MACD main crosses below signal on closed candle - Price close below SMA 200 General rules: - One trade at a time per
Hi everyone, I’m currently working on a private automated trading software designed specifically for XAUUSD (Gold) . This is not a signal service and not a high-frequency robot. The focus is on controlled risk, patience, and capital protection . Key points (shared briefly, not promotional): Trades one cycle at a time (no overtrading) Uses pure price behavior (no EMA, no indicators) Built-in break even and
📌 JOB DESCRIPTION – FULLY AUTOMATED TRADING SYSTEM I am looking for an experienced developer to build a fully automated end-to-end trading system for MetaTrader 5. This is not an indicator-based bot and not a discretionary or black-box AI system. The system must follow a strict, deterministic rule-based trading framework that is already defined. 🎯 PROJECT GOAL Build a system where: A backend continuously evaluates
Good day! I have an indicator .mq5 this indicator calculates and draw zones on the chart. My request is to add these specific zones drawn and calculated exactly as the indicator in the EA. A replicate behavior of the zones from the indicator to the EA. Thank you
Task Title Implement Martingale Lot Scaling Sync Between Master and Slave MT4 Trade Copier Background I am using a local master–slave trade copier setup with: 1 Master MT4 4 Slave MT4 terminals Trades are currently copied correctly (entry, direction, symbol, SL/TP). Lot size handling currently copies either: the exact master lot, or a fixed base lot defined on the slave (e.g., always 0.01 or 1.0). Problem When the
Then this EA will remain simple and clean , exactly following your core rules only: ✅ MA50 crosses Leading Span B → trade opens ✅ Opposite cross → trade closes ✅ No TP / SL ✅ Only one position at a time ✅ Entry only after candle close confirmation ✅ Final Simple MT5 Expert Advisor (English Specification) Entry Rules BUY Entry Open a Buy trade when: MA50 crosses above Leading Span B Trade is triggered only