Guarda come scaricare robot di trading gratuitamente
Ci trovi su Telegram!
Unisciti alla nostra fan page
Script interessante?
Pubblica il link!
lasciare che altri lo valutino
Ti è piaciuto lo script? Provalo nel Terminale MetaTrader 5
Librerie

Cosine distance and cosine similarity - libreria per MetaTrader 5

Visualizzazioni:
3181
Valutazioni:
(9)
Pubblicato:
Freelance MQL5 Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance

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

Here is the simplest explanation (although his cos(45) is wrong) : 




Volume Profile Volume Profile

This is an indicator for showing volume profile on the chart, using simple calculations and very fast execution.

COLLECT ALL INDICATORS DATA COLLECT ALL INDICATORS DATA

This Script collects all MQL5 built-in indicators buffers and stores them in a CSV file for analysis purposes

Connect Disconnect Sound Alert Connect Disconnect Sound Alert

This utility is simple example to add sound alert on connect / disconnect

wd.Multi_ClockPrice lite! wd.Multi_ClockPrice lite!

The 'wd.Multi_ClockPrice lite!' is the lite version of 'wd.Multi_ClockPrice', providing a visual representation of server time and bid prices on the chart. It synchronizes with PC clock every seconds, allowing seamless updates even when MT5 is offline. Real-time bid prices are displayed, efficiently meeting the need for price information. Place informational labels in the specified sub-window, adjusting positions as needed.