Функция 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
#LPT is consolidating within a falling wedge pattern and is currently trading above the support trendline.
A bounce from this level is possible, while a breakout of the pattern would confirm bullish momentum.
Conversely, a breakdown below the wedge could lead to further correction.
#LPT/USDT analysis :
#LPT is currently experiencing a bearish trend, trading below the 200 Exponential Moving Average (EMA). The price has encountered resistance at the 200 EMA and has broken below the established trendline, suggesting further downward momentum. A decline to test the swing low level is anticipated.
TF : 2h
Entry : $5.423
Target : $4.883
SL : $5.740
#LPT/USDT analysis :
#LPT has broken down and retested the previous support zone, which is now acting as resistance for the price. It is anticipated that the price will resume its bearish momentum from the current level and test lower levels. For a short entry, it is advisable to wait for a price retracement.
TF : 1H
Entry : $13.76
Target : $12.78
SL : $14.36
#LPT/USDT analysis :
#LPT is currently consolidating sideways in a correction phase above the 200 EMA. The price is likely to test the support zone and then bounce back from there to test the resistance zone.
TF : 1H
Entry : $14.60
Target : $15.30
SL : $14.25