This course is for anyone out there who is confused, frustrated, and just wants this python/finance thing to work!
Nano Course On Python For Trading
==========================
Module 1
Python makes it very easy to analyze and visualize time series data when you’re a beginner. It's easier when you don't have to install python on your PC (that's why it's a nano course, you'll learn python...
This course is for anyone out there who is confused, frustrated, and just wants this python/finance thing to work!
# Using Google Colab
# Importing libraries
# Making a Random Time Series of Black Field Research Stock (fictional)
Intro link is here on YT: https://t.co/MqMSDBaQri
Create a new Notebook at https://t.co/EZt0agsdlV and name it AnythingOfYourChoice.ipynb
You got your notebook ready and now the game is on!
You can add code in these cells and add as many cells as you want
Imports are pretty standard, with a few exceptions.
For the most part, you can import your libraries by running the import.
Type this in the first cell you see. You need not worry about what each of these does, we will understand it later.
Once you have imported the packages, run the code by clicking on the play button ▶️.
Let's add some more code and create a fictional stock price chart of a multinational investment management firm Black Field Research (aka @BlackFieldRes ) and use it for statistics and graphs.
Exact Code:
First, make the index of our data using "date_range." I picked today’s date, 2015/01/01, as the start date, used a daily frequency, and created 2500 rows.
1. Idea is to will the data frame with normal redistribute random numbers for our close price
2. Its mean is 0.002 and the standard deviation is 0.02. Total 2500 entries have been made.
3. Call above array as N, Replace N by..
4. Take the first row as 1, which is our stock price on day 1.
5. Finally, take the cumulative product of the columns.
It's fine if you didn't understand this. We will come on it in later posts. Let's see the output in the next post
Add this code and the output will look like :
# Visualing Logical conditions as signals
# Simulating a trading strategy and considering slippages
I got you started with python. Meanwhile, learn about python and the terms we have used here. You can comment below with doubts.
https://t.co/wuremRtH1S
You can make a copy of it and play around with it.
Until next time.
More from Python
==========================
Module 4
In this post, I will attempt to teach you how to write a trading strategy in Equity Segment that runs on your PC and create a Telegram bot that sends you buy/sell signals with Stop Loss.
Nano Course On Python For Trading
— Indian Quant \U0001f1ee\U0001f1f3 (@indian_quant) December 13, 2021
==========================
Module 1
Python makes it very easy to analyze and visualize time series data when you\u2019re a beginner. It's easier when you don't have to install python on your PC (that's why it's a nano course, you'll learn python...
Prerequisite: If you hadn't gone through the earlier modules, I strongly recommend you go through them all. Module 2: https://t.co/pciDOJXyVI
Note:
If you liked my content, you can donate, tip and support me on this link (any amount you prefer)
Nano Course On Python For Trading
— Indian Quant \U0001f1ee\U0001f1f3 (@indian_quant) December 13, 2021
==========================
Module 1
Python makes it very easy to analyze and visualize time series data when you\u2019re a beginner. It's easier when you don't have to install python on your PC (that's why it's a nano course, you'll learn python...
We are going to implement below strategy:
Rules: There should be three candles -> high of candle 1 > high of candle 2 > high of candle 3 and low of candle 1 < low of candle 2 < low of candle 3, where candle 3 is T-1 day, candle 2 is T-2 day and candle 1 is of T-3 Day, T = today.
If on today(day=T), the stock crosses yesterday high(candle 3), then send a buy signal to your telegram handle with candle 3 low as SL.
Before we get started with code, let's create a telegram bot using BotFather.
Step 1: Search BotFather in the telegram.
Step 2: type /newbot and then give the name to your bot. Refer to the second image as an example
You May Also Like
For three years I have wanted to write an article on moral panics. I have collected anecdotes and similarities between today\u2019s moral panic and those of the past - particularly the Satanic Panic of the 80s.
— Ashe Schow (@AsheSchow) September 29, 2018
This is my finished product: https://t.co/otcM1uuUDk
The 3 big things that made the 1980's/early 1990's surreal for me.
1) Satanic Panic - satanism in the day cares ahhhh!
2) "Repressed memory" syndrome
3) Facilitated Communication [FC]
All 3 led to massive abuse.
"Therapists" -and I use the term to describe these quacks loosely - would hypnotize people & convince they they were 'reliving' past memories of Mom & Dad killing babies in Satanic rituals in the basement while they were growing up.
Other 'therapists' would badger kids until they invented stories about watching alligators eat babies dropped into a lake from a hot air balloon. Kids would deny anything happened for hours until the therapist 'broke through' and 'found' the 'truth'.
FC was a movement that started with the claim severely handicapped individuals were able to 'type' legible sentences & communicate if a 'helper' guided their hands over a keyboard.
A lot of things Muslims do now and claim as Islamic rule is actually a culture that Islam curtailed or tried to perfect.
— Sule Nana (@izesule) January 2, 2021
Let's talk polygamy.
Islam didn't come and say, "oh men, marry four wives"
No.
Polygamy was in existence, long before the coming of Islam.
1. First off, a disclaimer. Should you feel hurt by my words in the course of the thread, then forgive me. It’s from me and not from Islam. And I probably have to improve on my delivery. And I may not quote you verbatim, but the intended meaning would be there. Thank You!
2. Standing on Imam Shafii’s quote: “And I never debated anyone but that I did not mind whether Allah clarified the truth on my tongue or his tongue” or “I never once debated anyone hoping to win the debate; rather I always wished that the truth would come from his side.”
3. Okay, into the meat (my love for meat is showing. Lol) of the thread. Even though you didn’t mention the verse that permitted polygamy, everyone knows the verse you were talking about (Q4:3).
4. Your reasons for the revelation of the verse are strange. The first time I came across such. I had to quickly consult the books on the exegeses or tafsir of the Quran written by renowned specialists!