File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed
src/project_x_py/indicators Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff 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" ),
You can’t perform that action at this time.
0 commit comments