Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def calculate_indicators(data):
|
|
18 |
data = data.apply(pd.to_numeric, errors='coerce')
|
19 |
|
20 |
# Example: Simple condition for doji and inside
|
21 |
-
data['Doji'] = abs(data['
|
22 |
data['Inside'] = (data['high'] < data['high'].shift(1)) & (data['low'] > data['low'].shift(1))
|
23 |
|
24 |
# Include the necessary columns from the original dataset
|
|
|
18 |
data = data.apply(pd.to_numeric, errors='coerce')
|
19 |
|
20 |
# Example: Simple condition for doji and inside
|
21 |
+
data['Doji'] = abs(data['close'] - data['open']) <= 0.01 * (data['high'] - data['low'])
|
22 |
data['Inside'] = (data['high'] < data['high'].shift(1)) & (data['low'] > data['low'].shift(1))
|
23 |
|
24 |
# Include the necessary columns from the original dataset
|