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.
비슷한 주문
Develop an Expert Advisor for MetaTrader 5 that manages existing positions. Features Automatically detect all open positions. Apply Break-Even after price reaches a configurable profit. Partial Close: Close X% of volume at the first target. Move Stop Loss to Break-Even. ATR Trailing Stop (optional). Magic Number filter. Comment filter. Symbol filter. Trading session filter. Retry mechanism for trade operations
need an MT5 Expert Advisor designed for educational and demo-account testing. The robot should identify trading opportunities using clear technical rules, manage entries and exits automatically, include stop-loss and take-profit controls, limit risk per trade, avoid excessive trading, and provide adjustable settings for backtesting and optimization
Hello… need an MT5 expert advisor that scans up to five user-selected symbols for bullish and bearish engulfing patterns on a chosen timeframe, displays a signal dashboard with pattern strength scores, and automatically enters trades with risk-based lot sizing, fixed stop-loss and take-profit tied to the engulfing candle’s high or low
I have a fast execution ea that need a little touch, it trade on gold and my problem is about the risk ratio the tp is 3pip and stop loss 20 but i cannot get it right to make the average win larger and average loss lower. I would like to know if i can get help to get it right without touching the tragedy and the trade frequency. Those two pictures I attached is the example of what my bot actually do like i explained
Requirements Specification Here is an example of Requirements Specification for the development of the MACD Sample Expert Advisor, which is available in the MetaTrader 5 standard package. 1. The idea of the trading system is as follows : market entries are performed when MACD's main and signal lines intersect in the current trend direction . 2. Trend is determined based on the Exponential Moving Average with
I will pay you a REWARD, if you find / create an EA that fits ALL the below criteria! Platform : MT4 Timeframe : doesn’t matter Pair : doesn’t matter Strategy : doesn’t matter Drawdown : no more than 25% Return : minimum 5%, every month Lot sizing : dynamic lots I will backtest the EA with 99.9% tick data accuracy for a period of 20+ years . If the EA can produce minimum 5% returns EVERY MONTH over 20 YEARS with less
hello could you make me same indicator for ninja ? https://www.youtube.com/watch?v=pxs2MuqvH3w if yes for how much and timeline ? thks in advance and please reply me as soon as possible you get my notification
Hello, I am looking for someone to Run and Monitor the EA and Signals in the account. Should be able to monitor daily and fix any issue in the signal Copying and EA running. The Settings and configuration to be checked and updated periodically. Should be available to report and update on daily basis. Tell me the cost and your previous experience for the same. Thanks
""" Wick Reversal Strategy — core logic ===================================== Rules (as specified): - Timeframe: 15-minute candles - Entry: candle wick >= WICK_MULTIPLIER x body -> signal candle - long lower wick -> enter LONG at next candle's open - long upper wick -> enter SHORT at next candle's open - Exit: an opposite-direction wick candle forms while in a position - Stop-loss: just beyond the signal candle's
Looking for an Experienced MQL4/MQL5 Developer to Build a Professional Scalping Expert Advisor (EA) I am looking for an experienced MQL4/MQL5 developer to build a professional Expert Advisor (EA) for MetaTrader 4 or MetaTrader 5 from scratch. My goal is to develop a high-quality scalping system with strong risk management and long-term profitability potential. I am not looking for unrealistic promises or "100%