RicardoSantos

Test - Gramian Angular Field

Experimental:
The Gramian Angular Field is usually used in machine learning for machine vision, it allows the encoding of data as a visual queue / matrix.
Versionshinweise: updated contrast following THE_REAL_BCT advise. corrected the missing volume option.
Open-source Skript

Ganz im Sinne von TradingView hat der Autor dieses Skripts es als Open-Source veröffentlicht, damit Trader es verstehen und überprüfen können. Ein Hoch auf den Autor! Sie können es kostenlos verwenden, aber die Wiederverwendung dieses Codes in einer Publikation unterliegt den Hausregeln. Sie können das Skript den Favoriten hinzufügen, um es auf dem Chart zu verwenden.

Möchten Sie dieses Skript auf einem Chart verwenden?

Kommentare

Can't wait to see your version of cnn on TV :)
Not familiar with gram, but it looks like the definition of your polars will affect the "vision" of your algo - by defaut, it "sees" up to 2*pi then goes back around. If your src data moves by much more than that, it'll effectively scramble its vision, no?
Antworten
RicardoSantos THE_REAL_BCT
@THE_REAL_BCT, thats why the data is detrended bound to range (1, 0) before getting the polar, but i see what you meant, thanks for feedback.
Antworten
THE_REAL_BCT RicardoSantos
@RicardoSantos, ah you're right (as always?) - I've read too fast. That said you could use more of the 0-pi (or even 2pi since you have both sin & cos) range vs 0-1 perhaps. Gets you just a little extra juice out of that non-linearity... Not sure it matters a ton in the end through a cnn through.
Anyway, beautiful script again. Thanks for sharing!
Antworten