Skip to content

Commit

Permalink
add chanids
Browse files Browse the repository at this point in the history
  • Loading branch information
AdoNunes committed Aug 9, 2024
1 parent 86837ab commit 2eeaf71
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions DiscordAlertsTrader/calc_strat.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,16 +688,16 @@ def grid_search(params_dict, PT=[60], TS=[0], SL=[45], TS_buy=[5,10,15,20,25]):

params = {
# 'fname_port': '../algoalerter/data\HHscanner_port_delta0.4_179feats_ssnorm_ML_65conf.csv',
'fname_port': 'data/algoAi_port.csv',
'trade_type': 'STO',
'last_days': 100,
'fname_port': 'data/vader-swings_port.csv',
'trade_type': 'BTO',
'last_days': 0,
'filt_date_frm': "",
'filt_date_to': "",
'stc_date':'eod', #'stc alert', #'exp', #,'exp',# , # # 'eod' or
'max_underlying_price': "",
# 'min_price': 60,
'max_dte': 4,
'min_dte': 2,
'min_dte': 0,
'filt_hour_frm': "",
'filt_hour_to': "",
'include_authors': "",
Expand All @@ -720,7 +720,7 @@ def grid_search(params_dict, PT=[60], TS=[0], SL=[45], TS_buy=[5,10,15,20,25]):
"sell_bto": False,
"max_short_val": 4000,
"invert_contracts": False,
"do_plot": False
"do_plot": True
}
import time as tt
t0 = tt.time()
Expand Down
6 changes: 3 additions & 3 deletions DiscordAlertsTrader/marketdata/load_chn_hist.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
get_date_after_from_port = True
re_download = False
delete_port = False
author = "demon"
author = "vader-swings"


def get_timestamp(row):
Expand Down Expand Up @@ -200,7 +200,7 @@ def save_or_append_quote(quotes, symbol, path_quotes, overwrite=False):
if order is None or order.get("expDate") is None:
continue

order["Trader"] = row["Author"]
order["Trader"] = row["Author"].replace("RedSaberSwings", "lordvader32")
dt = datetime.strptime(row["Date"], "%m/%d/%Y %H:%M:%S.%f") # + timedelta(hours=2)
order["Date"] = dt.strftime("%Y-%m-%d %H:%M:%S.%f")

Expand All @@ -223,7 +223,7 @@ def save_or_append_quote(quotes, symbol, path_quotes, overwrite=False):
except ValueError:
print("Incorrect date format", full_date, dt_fm)
continue
tracker.portfolio["isOpen"] = 0
# tracker.portfolio["isOpen"] = 0
# resp = tracker.trade_alert(order, live_alert=False, channel=author)
# continue
if datetime.strptime(full_date, dt_fm).date() < dt.date():
Expand Down
4 changes: 2 additions & 2 deletions DiscordAlertsTrader/server_alert_formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ def server_formatting(message):
message = bishop_formatting(message)
elif message.channel.id in [897625103020490773]:
message = theta_warrior_elite(message)
elif message.channel.id in [1152082112032292896, 884971446802219048, 1209855531758395423,1210140760800763914 ]:
elif message.channel.id in [1152082112032292896, 884971446802219048, 1209855531758395423,1210140760800763914, 1132823605688938567 ]:
message = kingmaker_main_formatting(message)
elif message.channel.id in [1139700590339969036, 1184315907376431114, 1183711389777399808]:
message = ddking_formatting(message)
elif message.channel.id in [1102753361566122064]:
elif message.channel.id in [1102753361566122064, 977025121292259328]:
message = crimson_formatting(message)
elif message.channel.id in [1209854873344938044]:
message = prophet_formatting(message)
Expand Down

0 comments on commit 2eeaf71

Please sign in to comment.