LOCLinePipsAgile a Script to display distance in pips from horizontal lines to current market price – script MetaTrader 4

LOCLinePipsAgile a Script to display distance in pips from horizontal lines to current market price - script for MetaTrader 4
Description: The script runs in background and writes the distance of pips from horizontal lines on the chart to the current market price. You can drag lines to see the distance. Image: LOCLinePipsAgile a Script to display distance in pips from horizontal lines to current market price – script MetaTrader 4

Inverse Distance Weighted Moving Average (IDWma) – indicator MetaTrader 4

Inverse Distance Weighted Moving Average (IDWma) - indicator for MetaTrader 4
This multi-timeframe capable moving average discounts prices far from the average. It is smoother than SMA but follows price similar to an EMA of the same length. I came across en.wikipedia.org/wiki/Distance-weighted_estimator, thought it might be useful and coded it. It does have some overshoot and initial lag just like SMA, but converges to nearer to … Read more

Cosine distance and cosine similarity – library MetaTrader 5

Cosine distance and cosine similarity - library for MetaTrader 5
function to calculate the cosine distance and the cosine similarity. The cosine distance between 2 vectors A and B is :  So 1-CosineSimilarity And the cosine similarity is : In simple terms : the cosine of the angle between the 2 vectors or , the dot product of the vectors divided by their magnitudes multiplied … Read more