Skip to content

Commit 5fbc37d

Browse files
committed
formatting
1 parent 8fc400a commit 5fbc37d

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

src/project_x_py/indicators/fvg.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -170,19 +170,15 @@ def calculate(
170170
# Calculate gap as percentage of price
171171
pl.when(pl.col("fvg_bullish_raw"))
172172
.then(
173-
(
174-
(pl.col("fvg_bullish_end") - pl.col("fvg_bullish_start")).abs()
175-
/ pl.col("fvg_bullish_start")
176-
* 100
177-
)
173+
(pl.col("fvg_bullish_end") - pl.col("fvg_bullish_start")).abs()
174+
/ pl.col("fvg_bullish_start")
175+
* 100
178176
)
179177
.when(pl.col("fvg_bearish_raw"))
180178
.then(
181-
(
182-
(pl.col("fvg_bearish_start") - pl.col("fvg_bearish_end")).abs()
183-
/ pl.col("fvg_bearish_start")
184-
* 100
185-
)
179+
(pl.col("fvg_bearish_start") - pl.col("fvg_bearish_end")).abs()
180+
/ pl.col("fvg_bearish_start")
181+
* 100
186182
)
187183
.otherwise(None)
188184
.alias("fvg_gap_percent"),

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)