Part of a code to implement in my EA

작업 종료됨

실행 시간 5 시간
피고용인의 피드백
Great customer. and thanks for help.
고객의 피드백
Very good programmer and fast!

명시


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;   // MA: TimeFrame
input int                  MA_Period     = 20;          // MA: Averaging Period
input int                  MA_Shift      = 0;           // MA: Shift
input ENUM_MA_METHOD       MA_Method     = MODE_SMA;    // MA: Smoothing Type
input ENUM_APPLIED_PRICE   MA_Applied_Price = PRICE_CLOSE; // MA: Type Of Price
input group             "VOLUME"
input ENUM_TIMEFRAMES      VOL_TimeFrame        = PERIOD_CURRENT;   // Volume: TimeFrame (Must be equal to MA TF).
input ENUM_APPLIED_VOLUME  Vol_Type       =   VOLUME_REAL;    // Volume: Type
input group             "GENERAL"
input int                  CalculateBars           =     300;     // Bars To Calculate
input int                  Moments_Average     =     20;      // Average of the Volume Moment


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.

응답함

1
개발자 1
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
2
개발자 2
등급
(75)
프로젝트
123
43%
중재
12
33% / 50%
기한 초과
17
14%
무료
3
개발자 3
등급
(20)
프로젝트
28
7%
중재
0
기한 초과
3
11%
무료
4
개발자 4
등급
(2570)
프로젝트
3243
67%
중재
77
48% / 14%
기한 초과
341
11%
무료
게재됨: 1 코드
비슷한 주문
Break 30+ USD
i havee an ea that work in tandem with an indicator i created. 1.i want to add a trend filter, using a trend line on a higher timeframe to decide the direction of the market then trades would be taken on a smaller timeframe using the same mss and bos entry. in the event the on the higher timeframe a bullish trendline was drawn then on the smaller timeframe only buy trades would be taken and sell signals ignored. when
I need an experienced developer to convert my MT4 EA based on the Super Trend indicator to MT5. The new EA should also include additional features. Essential modifications: - Incorporate additional indicators: Moving Average and PSAR. - Add custom alerts: Push and sound notifications. - Implement money management rules
I have a custom EA that I need optimized. I need it optimized for many pairs and the set files sent to me. The EA was created a few months ago, it works, but I need it optimized for it to run better
i am looking for an indicator that gives buy sell signal by placing arrows on the chart, signals must not repaint or be placed with an offset, i want it to be accurate enough so i can trade from signal to signal and actually make profit, do any one have a strategy and skill to create such an indicator, and also it is to mql5, ( Important is, It must have No repainting and No offset ), if you know it is something you
hello freelancers i need some one with a profitable ea for gold and dj30 i need the ea to be a scalping ea which places orders with sl and tp of 200 points for each trade and have a winning rate of more than 70 percent. if you have it already please apply for this
Hello, I m looking for experienced developer to code me indicator Market structure all in one in my EA MONEYPAL, to open trade on FVG separated by fractal signals.Thank you Regards
EMA CROSS OVER I NEED EMA CROSS OVER ROBOT THAT EMA 5,10,21 CONDITIONS 1 5 EMA ABOVE 21 CANDLE CLOSE BUY 2 5 EMA JUST BELOW EMA 10 TAKE PROFIT 3 5 EMA BELOW 21 CANDLE CLOSE SELL 4 5 EMA JUST CLOSE EMA 10 FROM DOWN TAKE PROFIT
I’m looking to consult with an experienced developer about the creation of a reliable copy trading system specifically designed for scalping . Currently, we are managing more than 100 accounts copying trades from a single master account. Since we use scalping strategies, even a small delay can impact the performance and results. The systems we’ve tried so far have delays of up to 5 seconds, which is too much for this
I need an EA for magic number that shows three unique numbers in every single candle.Mainly this EA shows the strength of the candle and momentum . More details inbox me
Specification AR Code a grid expert advisor (EA) MQL5 that uses a sort of hedged laddering mechanism . Core Logic Outline: Initial Setup : Open a double trade (Buy & Sell) at the current market price. Set two pending double trades (Buy/Sell limits) at a fixed distance on either side (e.g., ±X pips). On Trigger Event : When price hits one of the pending double trade levels, execute the new double position

프로젝트 정보

예산
30 - 60 USD
개발자에게
27 - 54 USD
기한
 1 일