Skip to content

Commit

Permalink
Merge branch 'Canx-plot_config'
Browse files Browse the repository at this point in the history
  • Loading branch information
iterativv committed Jan 20, 2025
2 parents 5a1b277 + 2248c5f commit 723d388
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions NostalgiaForInfinityX5.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,32 @@ def __init__(self, config: dict) -> None:

self.update_signals_from_config(self.config)


# Plot configuration for FreqUI
# ---------------------------------------------------------------------------------------------
@property
def plot_config(self):
plot_config = {}

plot_config["main_plot"] = {
"EMA_12": {"color": "LightGreen"},
"EMA_26": {"color": "Yellow"},
"EMA_50": {"color": "DodgerBlue"},
"EMA_200": {"color": "DarkRed"}
}

plot_config["subplots"] = {
"long_pump_protection": {
"global_protections_long_pump": {"color": "green"}
},
"long_dump_protection": {
"global_protections_long_dump": {"color": "red"}
}
}

return plot_config


# Get Ticker Indicator
# ---------------------------------------------------------------------------------------------
def get_ticker_indicator(self):
Expand Down Expand Up @@ -51692,6 +51718,7 @@ def short_rebuy_adjust_trade_position(

return None


###############################################################################################

# SHORT GRIND FUNCTIONS ENDS HERE
Expand Down

0 comments on commit 723d388

Please sign in to comment.