I had this request from you before: (Write me the code of a program based on the…
- User
I had this request from you before: (Write me the code of a program based on the description I will give you: I am a forex trader and the strategy or trading plan based on which I trade includes various criteria. Write me a program code so that I can use it every time I want to trade, I can tick my criteria in this program, and if the ticks were enough and reached the quorum set in the program, then the program will send this message with a give me a green tick icon and write that you are allowed to do this transaction, but if the ticks are not enough and the necessary criteria do not reach the quorum, a black cross icon will appear and write that you are not allowed to trade Write the program in such a way that it gives me the possibility to enter different criteria and if necessary I can edit them and put a check in front of the box of that criteria so that I can activate or deactivate it. Also, the program should have the possibility to prioritize each of the criteria based on the percentage, and the criteria that I have already assigned a higher percentage within the program, will be given more weight (for decision making). the final decision that this trade has sufficient criteria or not). Also, give 20 suggestions to improve this program so that I can make a better trading plan and consider sufficient criteria for each trade.)
And your answer was this:
class ForexTradeGUI(tk.Tk):
def init(self, trading_checker): super().init() self.title(‘Forex Trading Planner’)
self.trading_checker = trading_checker self.trade_history = [] self.portfolio = []
self.build_gui()
def build_gui(self): self.criteria_frame = tk.LabelFrame(self, text=‘Criteria’) self.criteria_frame.pack(padx=10, pady=10)
self.build_criteria_elements()
self.button_frame = tk.Frame(self) self.button_frame.pack(padx=10, pady=10)
self.toggle_button = tk.Button(self.button_frame, text=‘Toggle Status’, command=self.toggle_criteria) self.toggle_button.pack(side=tk.LEFT, padx=5)
self.add_button = tk.Button(self.button_frame, text=‘Add Criteria’, command=self.add_criteria) self.add_button.pack(side=tk.LEFT, padx=5)
self.trade_button = tk.Button(self.button_frame, text=‘Check Trade’, command=self.check_trade) self.trade_button.pack(side=tk.LEFT, padx=5)
self.trade_history_button = tk.Button(self.button_frame, text=‘Trade History’, command=self.show_trade_history) self.trade_history_button.pack(side=tk.LEFT, padx=5)
self.portfolio_frame = tk.LabelFrame(self, text=‘Portfolio’) self.portfolio_frame.pack(padx=10, pady=10)
self.portfolio_list = tk.Listbox(self.portfolio_frame) self.portfolio_list.pack(side=tk.LEFT, padx=5)
self.add_pair_button = tk.Button(self.portfolio_frame, text=‘Add Pair’, command=self.add_currency_pair) self.add_pair_button.pack(side=tk.LEFT, padx=5)
def build_criteria_elements(self): for widget in self.criteria_frame.winfo_children(): widget.destroy()
- Assistant
- User
give 100 other suggestions that you are able to do for code to improve this program so that I can make a better trading plan and consider sufficient criteria for each tradeand for journalize my trades
- Assistant