Tetsumaz

DC Time Keeper

Before anything, take notes of the script limitations :
1) This script doesn't give trading information on itself.
It is intended has additional value to my other script named : Time Dilated Donchian Channel

Blue line = Normal time of the day
Orange line = Observed time of the day
Red line = What if time travel was allowed... Which time would I observe?

More information about this script :
2) The script has the setting : "Max_bars_back" set to 390. This is required to use dynamic length and an "internal clock"
*390 is the normal number of bars in a typical stock trading day.

3) The script requires volume data to work correctly
* I use a way to represent volatility that requires ( volume + price movement + time, no sma , no stdev)
Why ? Because:
HIGH-LOW = Fail to get gap information, fail to get volume information
TR /ATR = Fail to get volume information
STDEV = Not very good with dynamic length as it use SMA and fails when length <2
SMA = SMA give very strange results when using non-integer numbers.

So a good idea is to use the 1 minute timeframe for this indicator.

Conclusion: this script is basically limited to stock trading.
If I could set Max_bars_back to 23 400 this would even work better with a 1 second time frame as more data would be entered in the system.

The idea behind the script is that volatility exists in two different formats depending on how you observe the situation.
Remember your physics class? Light can be a wave or a particle depending of the situation.
Volatility seems to share a strange similar property.

If volatility share similarities with light, then time dilation effect could be applied to stock movement.

Time Dilation formula
Time observed = (Last time - First time) / sqrt(1-(pow(v,2)/pow(c,2))
I've tried a lot of ways to use this formula as is.
Problem is : C.
C is the speed of light and I haven't found the equivalent stock market constant yet.

In order to keep the law of physics like they actually work, when a new time is set, I had to "Protect its value".
protected_new_time = highest_(observed time , normal time)
No time travel is allowed. *yet.


For more information about time dilation:
en.wikipedia.org/wiki/Time_dilation
보호된 스크립트입니다
이 스크립트는 클로즈 소스로 게시되며 자유롭게 사용할 수 있습니다. 당신은 스크립트를 차트에 사용하기 위해 그것을 즐겨찾기 할 수 있습니다. 소스 코드는 보거나 수정할 수 없습니다.
면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?