-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
def make_Trade(self, symbol, cmd, transaction_type, volume, comment="", order=0, sl=0, tp=0, days=0, hours=0, minutes=0):
symbol_data = self.get_Symbol(symbol=symbol)
if cmd == 0:
price = symbol_data["bid"]
elif cmd == 1:
price = symbol_data["ask"]
else:
price = symbol_data["bid"]
delay = self.to_milliseconds(days=days, hours=hours, minutes=minutes)
...
I think this is a better way of initialising the price variable.
Metadata
Metadata
Assignees
Labels
No labels