Ticaret robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Telegram üzerinde bulun!
Fan sayfamıza katılın
Komut dosyasını ilginç mi buldunuz?
Öyleyse bir link gönderin -
başkalarının da faydalanmasını sağlayın
Komut dosyasını beğendiniz mi? MetaTrader 5 terminalinde deneyin
Kütüphaneler

Cosine distance and cosine similarity - MetaTrader 5 için kütüphane

Görüntülemeler:
1469
Derecelendirme:
(7)
Yayınlandı:
2024.01.01 11:16
Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git

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

pivots calculation based on pine script v4 pivots calculation based on pine script v4

This is the exact conversion of pivotshigh and pivotslow functions from pine script v4 as an mql5 indicator.

Connect Disconnect Sound Alert Connect Disconnect Sound Alert

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