Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Trading Engine
#3
(May-27-2017, 08:28 PM)buran Wrote: input return str, and you compare with int, that is why if choice == 1 is always false
obviously you are aware that input return str, because you convert it to float in buy function.

So how would I fix that? I didn't necessarily know that input returns a string, I was just messing around and found that that would get rid of my errors. I'm trying to call function
buy()
from function
intromenu()
but can't.
Reply


Messages In This Thread
Python Trading Engine - by icabero0225 - May-27-2017, 07:00 PM
RE: Python Trading Engine - by buran - May-27-2017, 08:28 PM
RE: Python Trading Engine - by icabero0225 - May-27-2017, 09:46 PM
RE: Python Trading Engine - by bigmit37 - May-27-2017, 09:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Star Pairs Trading Simulation Kiitoos 1 388 Yesterday, 02:09 AM
Last Post: Aldiyarch
  Python trivial endgame engine is not working as expected max22 0 666 Feb-24-2024, 04:41 PM
Last Post: max22
  how to manage crypto trading flooding data from exchange servers Mikeardy 0 1,310 Dec-26-2021, 08:31 PM
Last Post: Mikeardy
  cbot ctrader automate trading hl29951 1 1,740 Jul-25-2021, 08:14 PM
Last Post: Larz60+
  Code should download and output trading data tayy 2 2,811 Mar-04-2021, 04:07 AM
Last Post: tayy
  Search Engine nman52 1 67,525 Dec-16-2020, 11:46 AM
Last Post: Larz60+
  problem python search engine forumpy 0 1,811 Sep-15-2020, 10:26 PM
Last Post: forumpy
  problem about slope in python script for bitcoin trading fisher_garry 1 2,613 Sep-02-2020, 01:39 PM
Last Post: fisher_garry
  Understanding Python's Import Engine MysticaL 1 2,295 Feb-07-2020, 11:26 PM
Last Post: snippsat
  Voynich search engine in python using dashes & dot totals to find Italian words Pleiades 3 3,694 Oct-10-2019, 10:04 PM
Last Post: Pleiades

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020