Library structure

This commit is contained in:
2026-07-28 18:12:10 +02:00
parent e5325fbd96
commit 3132d85bdd
6 changed files with 16 additions and 15 deletions
@@ -1,7 +1,8 @@
import plugin
import sys import sys
from typing import Any, Generic, TypeVar, Type, Optional from typing import Generic, TypeVar, Type
import general
from . import general
from . import plugin
T = TypeVar("T", bound=general.PulseWire) T = TypeVar("T", bound=general.PulseWire)
TT = TypeVar("TT", bound=general.PulseWire) TT = TypeVar("TT", bound=general.PulseWire)
@@ -1,5 +1,5 @@
import struct
from decimal import Decimal from decimal import Decimal
import struct
import typing import typing
T = typing.TypeVar("T") T = typing.TypeVar("T")
@@ -1,8 +1,9 @@
from pwp import pwp, pwp_enum, PulseWire
from adv_types import *
import units
from typing import TypeAlias from typing import TypeAlias
from .pwp import pwp, pwp_enum, PulseWire
from .adv_types import *
from . import units
@pwp_enum @pwp_enum
class MarketTrend(PulseWire): class MarketTrend(PulseWire):
class Bullish: pass class Bullish: pass
+4 -4
View File
@@ -1,9 +1,9 @@
from pwp import pwp, pwp_enum, PulseWire
from adv_types import *
import units
import general
from typing import Optional, TypeAlias from typing import Optional, TypeAlias
from .pwp import pwp, pwp_enum, PulseWire
from .adv_types import *
from . import units, general
@pwp @pwp
class StrategySignal(PulseWire): class StrategySignal(PulseWire):
symbol: str symbol: str
+1 -2
View File
@@ -1,7 +1,6 @@
import struct import struct
import typing import typing
import types import types
from typing import ( from typing import (
Protocol, Protocol,
TypeVar, TypeVar,
@@ -10,7 +9,7 @@ from typing import (
get_args, get_args,
) )
from adv_types import * from .adv_types import *
class PulseWire(Protocol): class PulseWire(Protocol):
+2 -2
View File
@@ -1,5 +1,5 @@
from pwp import pwp, pwp_enum, PulseWire from .pwp import pwp, pwp_enum, PulseWire
from adv_types import * from .adv_types import *
@pwp @pwp
class Symbol(PulseWire): class Symbol(PulseWire):