MA/Price path projection custom indicator

MQL4 Indicators

Specification

Description:

Custom indicator to project future path of MA and path of price either side of MA using average change in MA and average height of price above or below MA from previous crosses of price over MA.


Settings:

  • Candles to sample

  • Ma settings

  • Projected ma line colour

  • Projected price line colour

  • Turning point colour

  • Turning point range e.g 10th percentile to 90th percentile.


Data collections:

  • Upside range:

    • According to how many candles to sample, record the largest number of consecutive candle closes above MA. Take this number + 1. This is the upside range top

  • Downside range:

    • According to how many candles to sample, record the largest number of consecutive candle closes below MA. Take this number + 1. This is the downside range top


  • Average price:

    • Upside and downside sets are separate sets of data recording the difference in price above or below the MA.

    • All data recorded for each candle in each set is ordered from smallest to largest.

  • Upside Set - Price

  1. Candle opens below MA and closes above MA. This is candle 1 and its height above MA is recorded.

  2. Next candle closes above MA. This is candle 2 and it's height above MA is recorded. This repeats candle 3,4,5 etc.

  3. Candle opens above MA and closes below MA. This is the last candle in the upside set and is recorded as 0 above MA in the upside set. It is also the start of the downside set.

  4. If this upside set does not reach the same number of entries as the upside range top, all remaining candles from the last candle of this set to the upside range top are recorded as zero.

  • Downside Set - Price

  1. Candle opens above MA and closes below MA. This is candle 1 and its height below MA is recorded.

  2. Next candle closes below MA. This is candle 2 and it's height below MA is recorded. This repeats candle 3,4,5 etc.

  3. Candle opens below MA and closes above MA. This is the last candle in the downside set and is recorded as 0 below MA in the downside set. It is also the start of the upside set.

  4. If this downside set does not reach the same number of entries as the downside range top, all remaining candles from the last candle of this set to the downside range top are recorded as zero.


  • Average MA:

    • MA Upside and MA downside sets are separate sets of data recording the change in price of the MA from the point where price crosses it.

    • All data recorded for each candle in each set is ordered from smallest to largest.

  • Upside Set - MA

  1. Candle opens below MA and closes above MA. This is the starting point in the MA upside set.

  2. Next candle closes above MA. This is point 2 and the change in price from the starting point of the MA to its current price is recorded. This repeats candle 3,4,5 etc.

  3. Candle opens above MA and closes below MA. This is the last candle in the MA upside set and the change in price from the starting point to current price of the MA is recorded. It is also the start of the MA downside set.

  • Upside Set - MA

  1. Candle opens below MA and closes above MA. This is the starting point in the MA upside set.

  2. Next candle closes above MA. This is point 2 and the change in price from the starting point of the MA to its current price is recorded. This repeats candle 3,4,5 etc.

  3. Candle opens above MA and closes below MA. This is the last candle in the MA upside set and the change in price from the starting point to current price of the MA is recorded. It is also the start of the MA downside set.

  4. If this downside set does not reach the same number of entries as the downside range top, all remaining candles from the last candle of this set to the downside range top are recorded as zero.


Indicator:

  • Upside MA:

  1. Candle closes above MA

  2. Compare the change in price of the the MA from this point to the previous point. If current point is starting point, then wait until next.

  3. Compare change in price of MA for current candle number to corresponding previous candle's change in MA data. Find what percentile the current candle falls into in comparison to previous data for this number candle.

  4. Average this new percentile score with previous percentile scores for this upside MA. If this is the first score then no need to average.

  5. Take final averaged score and select the result with the same score for each future candle until the last candle recorded has a 0.

  6. Finally plot each of these selected points ahead of the current candle. Draw a line between each point to create curve.

  • Upside price:

  1. Candle closes above MA.

  2. Take price from MA to current candle close and compare with corresponding candle's data. Find what percentile it falls into in comparison to previous data for this number candle.

  3. Average this new percentile score with previous percentile scores for this upside price. If this is the first score then no need to average.

  4. Take final averaged score and select the result with the same score for each future candle until the last candle recorded has a 0.

  5. Finally, plot each of these selected points ahead of the current candle. The number describes the height above the MA and is where it should be plotted. It should be calculated from the projected MA.


  • Carry out same steps for both downside


Turning point:

  • Mark where the projected price curve changes from positive/negative incline to the opposite.

  • Draw line starting with 10th percentile turning point and through each percentile to 90th percentile turning point.


Display:

  • Show which MA percentile currently displayed

  • Show which price percentile currently displayed.


Responded

1
Developer 1
Rating
(233)
Projects
413
34%
Arbitration
52
37% / 40%
Overdue
152
37%
Loaded
2
Developer 2
Rating
(204)
Projects
280
34%
Arbitration
34
32% / 29%
Overdue
75
27%
Working
Similar orders
Hello developers I hope this message finds you well. I am currently seeking a highly skilled developer for an important project. I need an exact copy of a TradingView indicator to be coded for the MetaTrader 4/5 platform. The indicator must be replicated with absolute precision, maintaining all its functionalities and features. Would you be able to take on this project? If so, I would appreciate discussing the
Hello Developers, I am looking for a highly skilled and experienced developer to code an exact copy of a specific indicator for TradingView. The indicator must be replicated with precise accuracy, maintaining all functionalities and features of the original. Requirements: Proficiency in Pine Script and experience with TradingView indicators. Demonstrated ability to replicate complex indicators with exact
MODIFICATION OF AND EXISTING EXPERT BY ADDING INDICATORS TO FUNCTION AS FILTERS, TRADE CLOSURE BY THE REVERSAL OF THE adx INDICATOR, LOOKING FOR TRADE BASED ON THE COLOR OF THE PERCENTAGE CHANGE INDICATOR (DPC) SELLING THE COLR IS RED AND DECREASING IN PERCENTAGE AND BUYING WHEN THE COLOR IS GREEN AND INCREASING IN PERCENTAGE . There is an EA I have been using which I splitted into long trading and short trading. It
I'm looking for very simple scanner dashboard based on Zigzag and I'm going to share more details to the right candidate. I want show some kinds of Signal when pattern match and when click from Dashboard it's opened new tab with chart and show that pattern. It should be use custom timeframe, Scan custom pair as well scan from Market Watch. Dashboard must be Responsive or adjust with any screen. It's based on Very
Looking for someone who can convert 130 Lines of Pinescript code to MT4/5 And I want extra input for scanning from Marketwatch and Custom Pairs. More details for the right candidate. And if you are high demand freelancer, please don't apply to this project. We're looking for someone who are individual and keep working with us. Thank you
i am looking for experienced programmer to create indicator for me. i am willing to pay for the service. and if it works amazingly like i expected. i will tip more money
I recently bought an indicator, that sends out notifications for trades i need to place, on the notification these and SL and TP, so i want an EA that would automate that for me
SMART MONEY 30 - 49 USD
--- Job Title: EA Programmer for Smart Money Concept (Urgent) Job Description: We are seeking an experienced EA programmer to finalize a project focused on implementing the Smart Money Concept. The progress is at 80%, and we need someone to complete the remaining tasks within a week. Project Requirements: - Liquidity, CHoCh, and Return to OrderBlock: Implement these key components effectively into the Expert Advisor
Hello developer Am looking for scanner of mt5 when the orange dot come I want scanner to give buy signal on that script and just beside it should show the number of candle the signal have came vise versa for sell . Here is image for understanding https://prnt.sc/sSIHDwGUWw9L&amp ;nbsp ; And it should have option to disable this option of counting candle . And i can make a list of symbol which all symbol I want to
I am looking for a tool that will calculate the max adverse excursion before a trade closes in profit or loss. The toll needs to analyse historical trades and record this value for each trade. The purpose is to assist me calculate the best stop loss for using a martingale system

Project information

Budget
50+ USD
For the developer
45 USD
Deadline
to 3 day(s)