Функция dir() - удобна для получения списка атрибутов у любого объекта.
Ранее я писал про функцию __dir__() в модуле (не путайте её с переменной __all__(), которая указывает список объектов для импорта если встречается конструкция from module import *).
Скорее всего вы уже знаете как использовать функцию dir(). Любой объект может реализовать метод __dir__() чтобы указать список имеющийхся и динамических атрибутов. И функция dir() поможет получить список этих атрибутов.
>>> dir(str)
['__add__', '__class__', '__contains__', ...]
У этой функции есть еще один способ применения. Её можно вызвать без аргумента, и в таком случае она вернёт список имён в текущем неймспейсе.
>>> dir()
['__builtins__', '__doc__', '__file__', ...]
>>> def test():
>>> x = 1
>>> print(dir())
>>> test()
['x']
#basic#tricks
#FET/USDT Analysis-
The price has formed a symmetrical triangle pattern. Given the current bullish market scenario, there is a high probability of an upward breakout.
If the breakout occurs, the price is likely to rally toward the target zone from the breakout point.
T.F.- 1-D
ENTRY- as soon as it gives breakout
SL- 1.2
TARGET- 2.04
Note: If the stop-loss is triggered before entry, disregard the trade as the price action may develop differently.
#FET/USDT analysis :
#FET has broken down the 200 EMA and previous support levels. It is now undergoing a pullback and retesting the resistance zone. The price is expected to reject from there and bounce back to continue its bearish momentum.
TF : 1H
Entry : $1.170
Target : $1.057
SL : $1.252