GeorgeTown Capital Wealth

GeorgeTown Capital WealthGeorgeTown Capital WealthGeorgeTown Capital Wealth
  • Sign In
  • Create Account

  • Orders
  • My Account
  • Signed in as:

  • filler@godaddy.com


  • Orders
  • My Account
  • Sign out

  • Home
  • Financial Strategies
    • Passive income Strategies
    • Passive Income Stocks 100
    • BotTrade
    • Invest in Treasury Bonds
    • Passive Income - Stocks
  • BotTrade
  • Research
    • History of Derivatives
    • Apple Tax Avoidance
  • More
    • Home
    • Financial Strategies
      • Passive income Strategies
      • Passive Income Stocks 100
      • BotTrade
      • Invest in Treasury Bonds
      • Passive Income - Stocks
    • BotTrade
    • Research
      • History of Derivatives
      • Apple Tax Avoidance

GeorgeTown Capital Wealth

GeorgeTown Capital WealthGeorgeTown Capital WealthGeorgeTown Capital Wealth

Signed in as:

filler@godaddy.com

  • Home
  • Financial Strategies
    • Passive income Strategies
    • Passive Income Stocks 100
    • BotTrade
    • Invest in Treasury Bonds
    • Passive Income - Stocks
  • BotTrade
  • Research
    • History of Derivatives
    • Apple Tax Avoidance

Account


  • Orders
  • My Account
  • Sign out


  • Sign In
  • Orders
  • My Account

GTCAPITALWEALTH

Learn to make your own trading bot for stocks or crypto

The beautiful thing about think scriptsarn money while you sleep or are at work without having to worry about the market risks of dangerous declines in markets.


We us TD Ameritrade and coinbase APIs with PyCharm IDE to teach you the beginning basics of how to create your very own trading bot. 


Dont worry if you dont know about these because we will give you everything you need to know to get your bot up and running to your specifications.


This trading bot can be used to trade based on market indicators. 


Our BotTrade trading bot trades based on preset SMA indicators. We will use the SMA indicator to create our first few trading bots and go into how to incorporate different indicators into your bot later.


For example, the SMA of 5 and 20 works great for our investment goals. As you can see below the up arrows signal a buy and the down arrows signal a sell. 

Apple INC STOCK

SMA 18 and SMA 50

Green "Buy" signal a

Learn to trade with a robot

Now when the price crosses above the SMA 18 line, the robot will automatically place a buy order with the TD Ameritrade brokerage account we are using. When the price crosses back below the SMA 18 line, the robot will automatically place a sell order in the same TD Ameritrade account. Note this strategy can be used with stocks or options.


As you can see the robot takes advantage of all major price movements and sells before any major declines. This enables us to maximize upwards potential and minimize downside risks by selling any positions that cross below the SMA.


We can just as easily program the robot to trade on the short side. Meaning we would program our bot to take advantage of any drops in price buy programming the bot to buy and sell put options. 


We could even do both if we wanted - at the SAME TIME. 


In addition to all these capabilities, we can also use different time ranges for the SMA (such as SMA 50 instead of SMA 18; or SMA 5 instead of SMA 18). 


To start, you would have to create a TD Ameritrade account. Next, you would have to register for the td ameritrade api. Then, you would download python. Then you would start a new project in python and paste the following code. 


****

CODE****

****

 

Next, you would download and install the chromedriver (I used chromedriver 98 as of April 2022). Finally, you would run your code and you will get the following output.


****

CODE OUTPUT****

****


Check your td ameritrade account to see if the buy order was placed.


I will be backtesting this and many other strategies and posting them to this site. 

Learn More

This is a content preview space you can use to get your audience interested in what you have to say so they can’t wait to learn and read more. Pull out the most interesting detail that appears on the page and write it here.

Find out more

Copyright © 2024 gtcapitalwealth - All Rights Reserved.


This website uses cookies.

We use cookies to analyze website traffic and optimize your website experience. By accepting our use of cookies, your data will be aggregated with all other user data.

Accept