MA/Price path projection custom indicator

MQL4 指标

指定

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.


反馈

1
开发者 1
等级
(236)
项目
418
34%
仲裁
52
37% / 40%
逾期
153
37%
已载入
2
开发者 2
等级
(204)
项目
281
34%
仲裁
34
32% / 29%
逾期
75
27%
工作中
相似订单
Indicator MT5 from Pine Script 5 (TradingView) indicators Request: Develop 1 Indicator mql5 from 2 TV (Pine script 5) indicators Get only basic features, I just need to get values in Copybuffer() for mql5 expert. Total MT5 indicator: 4 levels in the chart + 1 oscillator (line/histogram) =================================== TV Indicator 1: Smart Money Concepts Just get High/low levels from internal/externals (smaller /
I have a full code ,, There are some errors in this.It does not add to the chart, does not show arrow marks, does not alert ,, fix this problem and work properly,, Contact on telegram @Gw_rakib1
Starting from scratch, I need a solution to develop my own crypto trading and exchange platform. This platform should compare prices across various exchanges like Coinbase, Binance, KuCoin, and Unocoin, as well as different cryptocurrencies. The solution must identify opportunities to buy on one platform and sell on another for a profit, transferring funds to my personal wallet instantly for security. The bot should
I am looking for a programmer to do EA trader. If you can understand what I want from the video i do and you can do it, contact me because you will be able to do what I want. https://drive.google.com/file/d/1wbHxbUQQqCkdpr0-pHfIh2b288LzYTV2/view?usp=sharing
I have an indicator i will like to view in form of dashboard across various timeframes, i also will like a push notifications alert feature that will appear on my mt4 mobile to keep track of my trading pairs
Need a dashboard, which can monitor up to 30 selected pairs in selected time frames. It monitors AO, MACD and stochastic. In the cells of dashboard, if AO is positive in the relevant symbol/tf, it writes "UP". When one of AO is above 0 level AND Stochastic is in OS zone it writes "UPUP". When AO is above 0 and when stochastics is oversold minimum of two times,it will alert UPU2 if AO is negative below 0 in the
Looking for custom strength indicators I can add to my EA. An indicator that can measure the strength of buyer and sellers. Please show me what you have, thank you
Modify Indicator 30 - 40 USD
I need an expert who can assist me in modifying an open source PineScript indicator code to add additional features. Only applicants with prove of work should apply for more discussion
Hello i need an expert who can help me modify an open source PineScript indicator code to add additional features. ONLY EXPERT WITH PROVE OF WORK SHOULD CONTACT FOR FURTHER DISCUSSION ON THE PROJECT
احتاج شخص عربي يتكلم ويفهم العربية حتى يسهل شرح المطلوب للمؤشر لدي مؤشر واكسبيرت خاص بي بحاجة إلى تعديل الكود المصدري لدي والفكرة تحتاج فعم من المبرمج باختصار اريد مبرمج عربي يفهم ويتكلم العربية حتى يسهل الشرح وفي نفس الوقت صاحب خبرة وتجربة ومتداول على منصة ميتا تريدر حتى يضفي تحسينات على المؤشر ويستطيع عمل الفكرة بكل سهولة وإعطاء النصائح إذا وجد خطأ

项目信息

预算
50+ USD
开发人员
45 USD
截止日期
 3 天