NigglesSquiggles

Rebalance Average Deviation

This basic script is designed to be used in conjunction with a Rebalancing spreadsheet.
It calculates the amount a cryptocurrency (or asset) has deviated by over a set amount of time.

The parameters are as follows:
==========================

Rebalance Periods:
This sets the amount of time back to calculate change in price from.
if using 12 hours for example, then you could use hourly candles and set this parameter to twelve.
If using days, then set candles to daily candles...

Required Deviation:
This is the value the spreadsheet calculates from the following formula
/

Smoothed deviation average length:
This is basically a simple moving average of the calculated deviation value. Helpful for estimating the position size of each coin you wish to hold.

===========================
If you have any questions connect via Discord:
https://discord.gg/rryEG7q

Cheers
نص برمجي محمي
تم نشر هذا النص البرمجي بمصدر غير مفتوح ويمكنك استخدامه بحرية. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني. لا يمكنك مشاهدة أو تعديل كود المصدر الخاص به.
إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟