Вторая по частоте future-функция, которую я использовал, это абсолютный импорт
from __future__ import absolute_import
Что она делает?
Изменения, которые вносит эта инъекция описаны в PEP328
Покажу простой пример.
Допустим, есть такой пакет:
/my_package
/__init__.py
/main.py
/string.py
Смотрим код в my_package/main.py
# main.py
import string
Простой пример готов) Вопрос в том, какой модуль импортируется в данном случае? Есть два варианта:
1. модуль в моём пакете my_package.string
2. стандартный модуль string
И вот тут вступает в дело приоритет импортов. В Python2 порядок следующий: помимо иных источников, раньше ищется модуль внутри текущего пакета, а потом в стандартных библиотеках. Таким образом мы импортнём my_package.string.
Но в Python3 это поведение изменилось. Если мы указываем просто имя пакета, то ищется именно такой модуль, игнорируя имена в текущем пакете. Если мы хотим импортнуть именно подмодуль из нашего пакета то, мы должны теперь явно это указывать.
from my_package import string
или относительный импорт, но с указанием пути относительно текущего модуля main
from . import string
Еще одной неоднозначностью меньше 😎
Подробней про импорты здесь:
https://docs.python.org/3/tutorial/modules.html
#2to3#pep#basic
#SPELL/USDT analysis :
#SPELL is currently in an uptrend, having demonstrated a rejection after testing the support zone. It is expected that the price will bounce back, resuming its bullish momentum and targeting higher price levels.
TF : 1D
Entry : $0.0010768
Target : $0.0020884
SL : $0.0008066
#SPELL/USDT analysis :
#SPELL has faced resistance at the 200 EMA and has broken below the trendline, indicating a continuation of its downtrend. The formation of lower lows (LLs) and lower highs (LHs) suggests this bearish trend is likely to persist until it reaches previous lows.
TF : 4h
Entry : $0.000740
Target : $0.000550
SL : $0.000865
#SPELL/USDT analysis :
#SPELL is currently in an uptrend, trading above the 200 EMA. The price is undergoing a corrective phase and is expected to test the support zone. A bounce from this level is anticipated, which would allow the price to continue its bullish momentum. It is advisable to wait for the price to retest and show signs of a bounce from the support zone before considering a long entry.
TF : 4H
Entry : $0.0007415
Target : $0.0009850
SL : $0.0006443
#SPELL/USDT analysis :
#SPELL has recently broken below the 200 EMA and previous support levels, and it has retested these levels. It is now likely to continue its bearish momentum and test the previous lows.
TF : 4h
Entry : $0.000537
Target : $0.000492
SL : $0.000561
#SPELL/USDT analysis :
#SPELL is trading in the resistance zone below the 200 EMA. It is expected that the price gonna face rejection at this level and continue moving downwards. It is advisable to wait for the price to break below the $0.000532 level for an entry.
TF : 2H
Entry : $0.000532
Target : $0.000455
SL : $0.000569
#SPELL LONG
📌Симпатично выглядит технически.
▪График слева - зеркальный уровень, мы видим как тестирует с обратной стороны несколько раз, кажется готовится прорыв.
▪График справа - готовится пробой контртрендовой линии, стоим у границы.
▪Вход: 0.000517$
▪Тейк: буду обновлять.
⚠️Cтоп: 0.00044(-14%)
пс: учитываем, что это альткоин... берем не больше 10% в сделку.
LINK - Maximus Trade|TWITTER