rrturtles2

Window Periods

// Work in progress.. visualize event windows

// to do:
// - assign sector relevance (add opec events and weight more to commodity typed instruments, whereas revenue forecasts of walmart won't be as relevant to commodities)
// - create weighting onto macro probability valuators
// - create means to store window weight/values in an accessible way so that additional scripts can access this data (post hidden text in window?) or maybe just duplicate arrays elsewhere in additional code (terrible option)
// - correct colors to scale within like types of events (opex the same, rebalancing periods the same, political and financial meeting the same color etc..)
// - find a way to make transfer the timestamps or date strings as const variables usable within functions. v5 sends as series and cannot be converted back making this an overly complicated case instead of a function/library
// - add dates back to 2017 for better referencing
// - convert a number of the variables to inputs so they can be controlled in-chart, such as transparancy, and color of each window period?

Tilden
Skrypt open-source

Zgodnie z prawdziwym duchem TradingView, autor tego skryptu opublikował go jako open-source, aby traderzy mogli go zrozumieć i zweryfikować. Brawo dla autora! Możesz używać go za darmo, ale ponowne wykorzystanie tego kodu w publikacji jest regulowane przez Dobre Praktyki. Możesz go oznaczyć jako ulubione, aby użyć go na wykresie.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.

Chcesz użyć tego skryptu na wykresie?