Attachments forums

List of attachments posted on this forum.


All files on forums: 137377

Re: Something interesting please post here (Metatrader)

bilbao, Wed Apr 26, 2017 4:33 pm

WmiFor
The principle of operation is relatively simple. Taking the specified interval (by default 24 bars), we are moving into the past, comparing the LWMA sequences with the LWMA sequences of the sample. The comparison is performed by Spearman and, additionally, by the height of the sample (by default the height difference should not exceed 10%). Having accumulated the necessary number of the most similar samples (by default, 5), we project the price movement that occurred in the history after all the samples found, at the moment. Real bars, overlapping each other, form a corridor of possible price movement.

Predictive indicator WmiFor

The corridor of possible price movements is drawn by brown stripes (cloud). The cloud on the screen is not indicated, it is displayed if at least two similar samples are found. Blue bars inside the cloud are one of the possible variants of price behavior. Brown lines "beginning of the sample" and "ending of the sample" can be arbitrarily moved (by double clicking them first). The forecast will be recalculated 1-2 seconds after the lines are moved. The beginning and the end can be fixed so that the sample does not move after the new emerging bars (then the forecast will be fixed and will not be redrawn on each new bar). Alternatively, you can fix only the beginning of the sample, for example, at the beginning of the day (as in the screenshot), and the end of the sample will move after the new bars. With this approach, each new bar will slightly refine the forecast (the sample size increases, but the beginning of the sample is fixed). For a reliable forecast of the indicator need history of a currency pair . If the story is not pumped up, the indicator will let you know:

Predictive indicator WmiFor

If similar patterns of behavior on history are found to be small, the indicator will advise to weaken the stringency of the comparison by decreasing the value of the ScalePercents parameter (in the screenshot above). It should be remembered, however, that the forecast becomes less reliable in this case.
Indicator parameters:

IsTopCorner - whether to show the information block of the indicator in the upper right corner. If false, it will be shown in the lower right corner.
Offset - sample offset. The default is 1 (we begin the analysis with the first closed bar). This parameter can shift the analysis into the past for the experiments and check the reliability of the indicator predictions, comparing its predictions with the actual price movements that have actually occurred.
IsOffsetStartFixed - Is the beginning of the pattern fixed? If so, you can only move it manually with a mouse.
IsOffsetEndFixed - Is the end of the sample fixed? If so, you can only move it manually with a mouse.
PastBars - The size of the sample in bars, which is searched for history (from 3 and above). Choose depending on the period of the schedule. The longer the sample, the less similar patterns will be found on history. The default is 24.
ForecastBars - How many bars ahead to make a prediction (from 1 and more). At your discretion. Affects only the visibility of perception.
MaxAlts - how much to select the most similar samples to build a corridor. The default is 5.
ShowCloud - show whether the cloud.
ShowBestPattern - whether to show one of the possible variants of the price movement.
IsExactTime - true, if the time of the samples must match. For example, if the work sample ends at 7:00, only the pieces of the story ending at 7:00 will be compared to it. This is done to account for the effects of session boundaries. False - cancels this condition (not recommended).
ScalePercents - an additional criterion for the similarity of samples. The default is 75.
PeriodMA - the periud of LWMA. The default is 2.
MinDate - all samples older than the specified date will be discarded during review.
XCorner / YCorner - the coordinates of the indicator information block relative to the upper right corner. If you use another indicator, which also outputs information there, you can shift the block.
FontName / FontSize - font and size of the text information block indicator.
IndicatorTextColor is the color of the indicator information block.
IndicatorTextWarningColor - the color of the warning text in the indicator information block.
IndicatorCloudColor - the color of the cloud.
IndicatorBestPatternColor - the color of one of the options.
IndicatorVLinesColor - the color of vertical moving lines (beginning and end of the sample).
Note: It is better to put the indicator on a ready-made chart. If the indicator is already attached, and you switch the time frame or currency pair and to show the new chart MT4 pumps up the story, drawn by a corridor may disappear from the screen. There is nothing to worry about, there is no need to switch to any other timeframe and immediately back.
All files in topic