SlideShare a Scribd company logo
1 of 28
Python for Traders
< Introduction to Python for Trading – Chapter 1 >
{
}
...
About Me
● Trading Since 2006 onwards
● Writing about Markets Since 2007 onwards
● Trainer Since 2013 onwards
Expertise in
○ Market Profile
○ Orderflow Analytics
○ Volume Spread Analysis
○ Amibroker AFL Programming
○ Tradingview Pinescript Programming
○ Python Programming
learn.marketcalls.in
Table of contents
Setting Python Environment, Learning
Basic Syntax, variables, data types
Learn conditional statements and
loops
Create reusable functions, class and
brief overview of libraries
01
02
03
Python Basics
Control Structures
Functions & Libraries
learn.marketcalls.in
Python Environment
● Install Python https://www.python.org/downloads/
● Install VS Code https://code.visualstudio.com/
● Install Python, Pylance & Jupiter extensions in VS Code
Installation Guidelines (PDF Material) available in the
course section
learn.marketcalls.in
Why To
Learn
Python?
learn.marketcalls.in
Python 3.x Version Timeline
Version Release Date Major Features
3.0 2008-12-03 Initial Release of Python 3
3.1 2009-06-27 Ordered Dictionaries, new io module
3.2 2011-02-20 Stable ABI, concurrent.futures module
3.3 2012-09-29 yield from, u'unicode' syntax
3.4 2014-03-16 asyncio, pip as default package manager
3.5 2015-09-13 async/await, type hinting
3.6 2016-12-23 Formatted string literals, secrets module
3.7 2018-06-27 Data classes, contextvars module
3.8 2019-10-14 Walrus operator, f-strings support = expressions
3.9 2020-10-05 Dictionary union operators, zoneinfo module
3.10 2021-10-04 Pattern matching, parenthesized context managers
3.11 2022-10-03 Exception Groups, self type, TOML in stdlib
3.12 2023-10-02 Hypothetical features
3.13 2024-10-01 Hypothetical features
Check Python Version
from command prompt
learn.marketcalls.in
Python IDE
VS Code PyCharm Spyder
learn.marketcalls.in
Cloud based environments
Google Colab Kaggle Watson Studio
learn.marketcalls.in
Jupyter Notebook
PIP Commands
Important pip commands
pip install yfinance
pip install –upgrade yfinance
pip list
PIP Overview
• Package manager for Python
• Stands for "Pip Installs Packages“
Simplified Package Management
• Facilitates easy installation of
third-party Python packages
• Streamlines upgrading and
removal of packages
learn.marketcalls.in
Understanding Data Types
Represents real numbers
(numbers with decimal
points). For example,
3.14 or -0.001
Represents whole
numbers, both positive
and negative. For
example, 5 or -42.
Integer (int) Float
{
}
learn.marketcalls.in
Variables
● A variable in
programming is a
symbolic name or
identifier that
represents a value
or a piece of data
stored in a
computer's
memory.
● Variables are used
to store,
manipulate, and
retrieve data within
Understanding Data Types
Represents either True
or False, used for
logical operations and
comparisons.
Represents sequences of
characters, enclosed in
single or double quotes.
For example, "Hello,
World!" or 'Python'
String (str) Boolean (bool)
{
}
learn.marketcalls.in
Conditional Operators
Operator Description Example Result Description
== Equal to a == b True if a is equal to b
!= Not equal to a != b True if a is not equal to b
> Greater than a > b True if a is greater than b
< Less than a < b True if a is less than b
>= Greater than or equal to a >= b
True if a is greater than or equal
to b
<= Less than or equal to a <= b True if a is less than or equal to b
and Logical AND a > 5 and b < 10 True if both conditions are true
or Logical OR a < 5 or b > 10
True if at least one condition is
true
not Logical NOT not(a == b) True if the condition is not true
F-String Formatting
Understanding Data Types
Represents ordered
collections of
items. Lists are
mutable
Similar to lists but
immutable. Often used
for grouping related
data
Represents key-
value pairs, where
each value is
associated with a
unique key
Represents unordered
collections of unique
elements. Sets do not
allow duplicates
List
Dict
Tuple
Set
List
• A list is an ordered collection of items, where each item can be of different data types.
• Lists are mutable, which means you can change their contents (add, remove, or modify elements).
learn.marketcalls.in
Tuple
• A tuple is similar to a list but is immutable, meaning you cannot change its contents after creation.
• Tuples are often used to represent fixed sets of related data.
learn.marketcalls.in
Dictionary (dict):
• A dictionary is a collection of key-value pairs, where each key is unique and associated with a value.
• Dictionaries are useful for storing and retrieving data based on specific identifiers.
learn.marketcalls.in
Set
• A set is an unordered collection of unique elements.
• Sets are handy when you need to maintain a collection of distinct items.
learn.marketcalls.in
If-Else Structure
learn.marketcalls.in
For Loop
learn.marketcalls.in
User Defined Function
Class Example
1.Class:
•A class is a blueprint or template for creating objects (instances).
•It defines the attributes (data) and behaviors (methods) that its objects will have.
•Classes serve as a blueprint for creating multiple objects with similar characteristics and behaviors.
2.Object:
•An object is an instance of a class.
•It is a concrete, real-world entity created from the class blueprint.
•Objects have their own unique attributes (values for class variables) and can perform actions (invoke
methods) defined in the class.
3.Method:
•A method is a function that is defined within a class and operates on class attributes.
•Methods define the behaviors or actions that objects of the class can perform.
•Methods can access and modify the attributes of the class or perform specific operations related to the
class.
4.Constructor:
•A constructor is a special method in a class that is automatically called when an object of the class is
created.
•It typically initializes the object's attributes with initial values.
•In Python, the constructor method is named __init__ and is used to set up the initial state of an object.
•Constructors can accept parameters to customize the initialization of objects.
learn.marketcalls.in
Popular Python Libraries
Importing Python Libraries
CREDITS: This presentation template was created by
Slidesgo, and includes icons by Flaticon, and
infographics & images by Freepik
Thanks!
< Do you have any questions? >
rajandran@marketcalls.in
Phone +91 9535133445
Whatsapp +91 9901867760
learn.marketcalls.in

More Related Content

Similar to Python for Traders - Introduction to Python for Trading

Introduction to programming with python
Introduction to programming with pythonIntroduction to programming with python
Introduction to programming with pythonPorimol Chandro
 
Python Programming - VI. Classes and Objects
Python Programming - VI. Classes and ObjectsPython Programming - VI. Classes and Objects
Python Programming - VI. Classes and ObjectsRanel Padon
 
Unit 4- Software Engineering System Model Notes
Unit 4- Software Engineering System Model Notes Unit 4- Software Engineering System Model Notes
Unit 4- Software Engineering System Model Notes arvind pandey
 
UNIT_5_Data Wrangling.pptx
UNIT_5_Data Wrangling.pptxUNIT_5_Data Wrangling.pptx
UNIT_5_Data Wrangling.pptxBhagyasriPatel2
 
James Jesus Bermas on Crash Course on Python
James Jesus Bermas on Crash Course on PythonJames Jesus Bermas on Crash Course on Python
James Jesus Bermas on Crash Course on PythonCP-Union
 
The Awesome Python Class Part-4
The Awesome Python Class Part-4The Awesome Python Class Part-4
The Awesome Python Class Part-4Binay Kumar Ray
 
Data Structure & aaplications_Module-1.pptx
Data Structure & aaplications_Module-1.pptxData Structure & aaplications_Module-1.pptx
Data Structure & aaplications_Module-1.pptxGIRISHKUMARBC1
 
Control structures functions and modules in python programming
Control structures functions and modules in python programmingControl structures functions and modules in python programming
Control structures functions and modules in python programmingSrinivas Narasegouda
 
Design patterns for fun & profit - CoderCruise 2018
Design patterns for fun & profit - CoderCruise 2018Design patterns for fun & profit - CoderCruise 2018
Design patterns for fun & profit - CoderCruise 2018David Litvak Bruno
 
Java Web Programming on Google Cloud Platform [2/3] : Datastore
Java Web Programming on Google Cloud Platform [2/3] : DatastoreJava Web Programming on Google Cloud Platform [2/3] : Datastore
Java Web Programming on Google Cloud Platform [2/3] : DatastoreIMC Institute
 
PHP OOP Lecture - 01.pptx
PHP OOP Lecture - 01.pptxPHP OOP Lecture - 01.pptx
PHP OOP Lecture - 01.pptxAtikur Rahman
 
Obiee interview questions and answers faq
Obiee interview questions and answers faqObiee interview questions and answers faq
Obiee interview questions and answers faqmaheshboggula
 
Introduction to Java Object Oiented Concepts and Basic terminologies
Introduction to Java Object Oiented Concepts and Basic terminologiesIntroduction to Java Object Oiented Concepts and Basic terminologies
Introduction to Java Object Oiented Concepts and Basic terminologiesTabassumMaktum
 
Python Interview Questions For Experienced
Python Interview Questions For ExperiencedPython Interview Questions For Experienced
Python Interview Questions For Experiencedzynofustechnology
 
Top Python Online Training Institutes in Bangalore
Top Python Online Training Institutes in BangaloreTop Python Online Training Institutes in Bangalore
Top Python Online Training Institutes in BangaloreSaagTechnologies
 

Similar to Python for Traders - Introduction to Python for Trading (20)

Introduction to Datastore
Introduction to DatastoreIntroduction to Datastore
Introduction to Datastore
 
Introduction to programming with python
Introduction to programming with pythonIntroduction to programming with python
Introduction to programming with python
 
Python Programming - VI. Classes and Objects
Python Programming - VI. Classes and ObjectsPython Programming - VI. Classes and Objects
Python Programming - VI. Classes and Objects
 
Unit 4- Software Engineering System Model Notes
Unit 4- Software Engineering System Model Notes Unit 4- Software Engineering System Model Notes
Unit 4- Software Engineering System Model Notes
 
UNIT_5_Data Wrangling.pptx
UNIT_5_Data Wrangling.pptxUNIT_5_Data Wrangling.pptx
UNIT_5_Data Wrangling.pptx
 
fINAL ML PPT.pptx
fINAL ML PPT.pptxfINAL ML PPT.pptx
fINAL ML PPT.pptx
 
James Jesus Bermas on Crash Course on Python
James Jesus Bermas on Crash Course on PythonJames Jesus Bermas on Crash Course on Python
James Jesus Bermas on Crash Course on Python
 
The Awesome Python Class Part-4
The Awesome Python Class Part-4The Awesome Python Class Part-4
The Awesome Python Class Part-4
 
Data Structure & aaplications_Module-1.pptx
Data Structure & aaplications_Module-1.pptxData Structure & aaplications_Module-1.pptx
Data Structure & aaplications_Module-1.pptx
 
Control structures functions and modules in python programming
Control structures functions and modules in python programmingControl structures functions and modules in python programming
Control structures functions and modules in python programming
 
VB.net
VB.netVB.net
VB.net
 
Design patterns for fun & profit - CoderCruise 2018
Design patterns for fun & profit - CoderCruise 2018Design patterns for fun & profit - CoderCruise 2018
Design patterns for fun & profit - CoderCruise 2018
 
Java Web Programming on Google Cloud Platform [2/3] : Datastore
Java Web Programming on Google Cloud Platform [2/3] : DatastoreJava Web Programming on Google Cloud Platform [2/3] : Datastore
Java Web Programming on Google Cloud Platform [2/3] : Datastore
 
PHP OOP Lecture - 01.pptx
PHP OOP Lecture - 01.pptxPHP OOP Lecture - 01.pptx
PHP OOP Lecture - 01.pptx
 
Obiee interview questions and answers faq
Obiee interview questions and answers faqObiee interview questions and answers faq
Obiee interview questions and answers faq
 
Introduction to Java Object Oiented Concepts and Basic terminologies
Introduction to Java Object Oiented Concepts and Basic terminologiesIntroduction to Java Object Oiented Concepts and Basic terminologies
Introduction to Java Object Oiented Concepts and Basic terminologies
 
Python Interview Questions For Experienced
Python Interview Questions For ExperiencedPython Interview Questions For Experienced
Python Interview Questions For Experienced
 
Apex code (Salesforce)
Apex code (Salesforce)Apex code (Salesforce)
Apex code (Salesforce)
 
Bn1038 demo pega
Bn1038 demo  pegaBn1038 demo  pega
Bn1038 demo pega
 
Top Python Online Training Institutes in Bangalore
Top Python Online Training Institutes in BangaloreTop Python Online Training Institutes in Bangalore
Top Python Online Training Institutes in Bangalore
 

More from Marketcalls

OpenAlgo - Algotrading Platform for Everyone
OpenAlgo - Algotrading Platform for EveryoneOpenAlgo - Algotrading Platform for Everyone
OpenAlgo - Algotrading Platform for EveryoneMarketcalls
 
Line Trading Automation - Algomojo Amibroker Module
Line Trading Automation - Algomojo Amibroker ModuleLine Trading Automation - Algomojo Amibroker Module
Line Trading Automation - Algomojo Amibroker ModuleMarketcalls
 
Introduction to Option Greeks
Introduction to Option GreeksIntroduction to Option Greeks
Introduction to Option GreeksMarketcalls
 
New margin requirement for popular futures and options strategies
New margin requirement for popular futures and options strategiesNew margin requirement for popular futures and options strategies
New margin requirement for popular futures and options strategiesMarketcalls
 
Tradestudio 5.0 - Documentation
Tradestudio 5.0 - DocumentationTradestudio 5.0 - Documentation
Tradestudio 5.0 - DocumentationMarketcalls
 
Trading Money on 2nd OCT 2019 - Market Outlook
Trading Money on 2nd OCT 2019 - Market OutlookTrading Money on 2nd OCT 2019 - Market Outlook
Trading Money on 2nd OCT 2019 - Market OutlookMarketcalls
 
Trading money on 22nd sep 2019
Trading money on 22nd sep 2019Trading money on 22nd sep 2019
Trading money on 22nd sep 2019Marketcalls
 
Budget 2019 - Nifty Futures Intraday Price Action
Budget 2019   - Nifty Futures Intraday Price ActionBudget 2019   - Nifty Futures Intraday Price Action
Budget 2019 - Nifty Futures Intraday Price ActionMarketcalls
 
Trading options and market profile
Trading options and market profileTrading options and market profile
Trading options and market profileMarketcalls
 
Custom Algo Development - Marketcalls
Custom Algo Development - MarketcallsCustom Algo Development - Marketcalls
Custom Algo Development - MarketcallsMarketcalls
 
Tradezilla 2.0 - Discover Your Trading Edge Using Market Profile and Orderflow
Tradezilla 2.0 - Discover Your Trading Edge Using Market Profile and OrderflowTradezilla 2.0 - Discover Your Trading Edge Using Market Profile and Orderflow
Tradezilla 2.0 - Discover Your Trading Edge Using Market Profile and OrderflowMarketcalls
 
Trading Strategies for Active Traders
Trading Strategies for Active TradersTrading Strategies for Active Traders
Trading Strategies for Active TradersMarketcalls
 
Marketcalls slack 24th dec 2018
Marketcalls slack 24th dec 2018Marketcalls slack 24th dec 2018
Marketcalls slack 24th dec 2018Marketcalls
 
Introduction to Algoaction -Web Based Trading Platform
Introduction to Algoaction -Web Based Trading PlatformIntroduction to Algoaction -Web Based Trading Platform
Introduction to Algoaction -Web Based Trading PlatformMarketcalls
 
Amibroker Fast Track Course Bangalore
Amibroker Fast Track Course   BangaloreAmibroker Fast Track Course   Bangalore
Amibroker Fast Track Course BangaloreMarketcalls
 
Market profile - ATMA 42nd Educational Meeting
Market profile  - ATMA 42nd Educational MeetingMarket profile  - ATMA 42nd Educational Meeting
Market profile - ATMA 42nd Educational MeetingMarketcalls
 
LinTRA – Intraday Trading System
LinTRA – Intraday Trading SystemLinTRA – Intraday Trading System
LinTRA – Intraday Trading SystemMarketcalls
 
TradeZilla - Trading system Design
TradeZilla - Trading system DesignTradeZilla - Trading system Design
TradeZilla - Trading system DesignMarketcalls
 
Tradezilla Daily market commentary 2nd mar 2016
Tradezilla Daily market commentary   2nd mar 2016Tradezilla Daily market commentary   2nd mar 2016
Tradezilla Daily market commentary 2nd mar 2016Marketcalls
 
Daily market commentary 25th feb 2016
Daily market commentary   25th feb 2016Daily market commentary   25th feb 2016
Daily market commentary 25th feb 2016Marketcalls
 

More from Marketcalls (20)

OpenAlgo - Algotrading Platform for Everyone
OpenAlgo - Algotrading Platform for EveryoneOpenAlgo - Algotrading Platform for Everyone
OpenAlgo - Algotrading Platform for Everyone
 
Line Trading Automation - Algomojo Amibroker Module
Line Trading Automation - Algomojo Amibroker ModuleLine Trading Automation - Algomojo Amibroker Module
Line Trading Automation - Algomojo Amibroker Module
 
Introduction to Option Greeks
Introduction to Option GreeksIntroduction to Option Greeks
Introduction to Option Greeks
 
New margin requirement for popular futures and options strategies
New margin requirement for popular futures and options strategiesNew margin requirement for popular futures and options strategies
New margin requirement for popular futures and options strategies
 
Tradestudio 5.0 - Documentation
Tradestudio 5.0 - DocumentationTradestudio 5.0 - Documentation
Tradestudio 5.0 - Documentation
 
Trading Money on 2nd OCT 2019 - Market Outlook
Trading Money on 2nd OCT 2019 - Market OutlookTrading Money on 2nd OCT 2019 - Market Outlook
Trading Money on 2nd OCT 2019 - Market Outlook
 
Trading money on 22nd sep 2019
Trading money on 22nd sep 2019Trading money on 22nd sep 2019
Trading money on 22nd sep 2019
 
Budget 2019 - Nifty Futures Intraday Price Action
Budget 2019   - Nifty Futures Intraday Price ActionBudget 2019   - Nifty Futures Intraday Price Action
Budget 2019 - Nifty Futures Intraday Price Action
 
Trading options and market profile
Trading options and market profileTrading options and market profile
Trading options and market profile
 
Custom Algo Development - Marketcalls
Custom Algo Development - MarketcallsCustom Algo Development - Marketcalls
Custom Algo Development - Marketcalls
 
Tradezilla 2.0 - Discover Your Trading Edge Using Market Profile and Orderflow
Tradezilla 2.0 - Discover Your Trading Edge Using Market Profile and OrderflowTradezilla 2.0 - Discover Your Trading Edge Using Market Profile and Orderflow
Tradezilla 2.0 - Discover Your Trading Edge Using Market Profile and Orderflow
 
Trading Strategies for Active Traders
Trading Strategies for Active TradersTrading Strategies for Active Traders
Trading Strategies for Active Traders
 
Marketcalls slack 24th dec 2018
Marketcalls slack 24th dec 2018Marketcalls slack 24th dec 2018
Marketcalls slack 24th dec 2018
 
Introduction to Algoaction -Web Based Trading Platform
Introduction to Algoaction -Web Based Trading PlatformIntroduction to Algoaction -Web Based Trading Platform
Introduction to Algoaction -Web Based Trading Platform
 
Amibroker Fast Track Course Bangalore
Amibroker Fast Track Course   BangaloreAmibroker Fast Track Course   Bangalore
Amibroker Fast Track Course Bangalore
 
Market profile - ATMA 42nd Educational Meeting
Market profile  - ATMA 42nd Educational MeetingMarket profile  - ATMA 42nd Educational Meeting
Market profile - ATMA 42nd Educational Meeting
 
LinTRA – Intraday Trading System
LinTRA – Intraday Trading SystemLinTRA – Intraday Trading System
LinTRA – Intraday Trading System
 
TradeZilla - Trading system Design
TradeZilla - Trading system DesignTradeZilla - Trading system Design
TradeZilla - Trading system Design
 
Tradezilla Daily market commentary 2nd mar 2016
Tradezilla Daily market commentary   2nd mar 2016Tradezilla Daily market commentary   2nd mar 2016
Tradezilla Daily market commentary 2nd mar 2016
 
Daily market commentary 25th feb 2016
Daily market commentary   25th feb 2016Daily market commentary   25th feb 2016
Daily market commentary 25th feb 2016
 

Recently uploaded

定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一ffjhghh
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxolyaivanovalion
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998YohFuh
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxolyaivanovalion
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxolyaivanovalion
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystSamantha Rae Coolbeth
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiSuhani Kapoor
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 

Recently uploaded (20)

定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptx
 
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in  KishangarhDelhi 99530 vip 56974 Genuine Escort Service Call Girls in  Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data Analyst
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 

Python for Traders - Introduction to Python for Trading

  • 1. Python for Traders < Introduction to Python for Trading – Chapter 1 > { } ...
  • 2. About Me ● Trading Since 2006 onwards ● Writing about Markets Since 2007 onwards ● Trainer Since 2013 onwards Expertise in ○ Market Profile ○ Orderflow Analytics ○ Volume Spread Analysis ○ Amibroker AFL Programming ○ Tradingview Pinescript Programming ○ Python Programming learn.marketcalls.in
  • 3. Table of contents Setting Python Environment, Learning Basic Syntax, variables, data types Learn conditional statements and loops Create reusable functions, class and brief overview of libraries 01 02 03 Python Basics Control Structures Functions & Libraries learn.marketcalls.in
  • 4. Python Environment ● Install Python https://www.python.org/downloads/ ● Install VS Code https://code.visualstudio.com/ ● Install Python, Pylance & Jupiter extensions in VS Code Installation Guidelines (PDF Material) available in the course section learn.marketcalls.in
  • 6. Python 3.x Version Timeline Version Release Date Major Features 3.0 2008-12-03 Initial Release of Python 3 3.1 2009-06-27 Ordered Dictionaries, new io module 3.2 2011-02-20 Stable ABI, concurrent.futures module 3.3 2012-09-29 yield from, u'unicode' syntax 3.4 2014-03-16 asyncio, pip as default package manager 3.5 2015-09-13 async/await, type hinting 3.6 2016-12-23 Formatted string literals, secrets module 3.7 2018-06-27 Data classes, contextvars module 3.8 2019-10-14 Walrus operator, f-strings support = expressions 3.9 2020-10-05 Dictionary union operators, zoneinfo module 3.10 2021-10-04 Pattern matching, parenthesized context managers 3.11 2022-10-03 Exception Groups, self type, TOML in stdlib 3.12 2023-10-02 Hypothetical features 3.13 2024-10-01 Hypothetical features Check Python Version from command prompt learn.marketcalls.in
  • 7. Python IDE VS Code PyCharm Spyder learn.marketcalls.in
  • 8. Cloud based environments Google Colab Kaggle Watson Studio learn.marketcalls.in
  • 10. PIP Commands Important pip commands pip install yfinance pip install –upgrade yfinance pip list PIP Overview • Package manager for Python • Stands for "Pip Installs Packages“ Simplified Package Management • Facilitates easy installation of third-party Python packages • Streamlines upgrading and removal of packages learn.marketcalls.in
  • 11. Understanding Data Types Represents real numbers (numbers with decimal points). For example, 3.14 or -0.001 Represents whole numbers, both positive and negative. For example, 5 or -42. Integer (int) Float { } learn.marketcalls.in
  • 12. Variables ● A variable in programming is a symbolic name or identifier that represents a value or a piece of data stored in a computer's memory. ● Variables are used to store, manipulate, and retrieve data within
  • 13. Understanding Data Types Represents either True or False, used for logical operations and comparisons. Represents sequences of characters, enclosed in single or double quotes. For example, "Hello, World!" or 'Python' String (str) Boolean (bool) { } learn.marketcalls.in
  • 14. Conditional Operators Operator Description Example Result Description == Equal to a == b True if a is equal to b != Not equal to a != b True if a is not equal to b > Greater than a > b True if a is greater than b < Less than a < b True if a is less than b >= Greater than or equal to a >= b True if a is greater than or equal to b <= Less than or equal to a <= b True if a is less than or equal to b and Logical AND a > 5 and b < 10 True if both conditions are true or Logical OR a < 5 or b > 10 True if at least one condition is true not Logical NOT not(a == b) True if the condition is not true
  • 16. Understanding Data Types Represents ordered collections of items. Lists are mutable Similar to lists but immutable. Often used for grouping related data Represents key- value pairs, where each value is associated with a unique key Represents unordered collections of unique elements. Sets do not allow duplicates List Dict Tuple Set
  • 17. List • A list is an ordered collection of items, where each item can be of different data types. • Lists are mutable, which means you can change their contents (add, remove, or modify elements). learn.marketcalls.in
  • 18. Tuple • A tuple is similar to a list but is immutable, meaning you cannot change its contents after creation. • Tuples are often used to represent fixed sets of related data. learn.marketcalls.in
  • 19. Dictionary (dict): • A dictionary is a collection of key-value pairs, where each key is unique and associated with a value. • Dictionaries are useful for storing and retrieving data based on specific identifiers. learn.marketcalls.in
  • 20. Set • A set is an unordered collection of unique elements. • Sets are handy when you need to maintain a collection of distinct items. learn.marketcalls.in
  • 25. 1.Class: •A class is a blueprint or template for creating objects (instances). •It defines the attributes (data) and behaviors (methods) that its objects will have. •Classes serve as a blueprint for creating multiple objects with similar characteristics and behaviors. 2.Object: •An object is an instance of a class. •It is a concrete, real-world entity created from the class blueprint. •Objects have their own unique attributes (values for class variables) and can perform actions (invoke methods) defined in the class. 3.Method: •A method is a function that is defined within a class and operates on class attributes. •Methods define the behaviors or actions that objects of the class can perform. •Methods can access and modify the attributes of the class or perform specific operations related to the class. 4.Constructor: •A constructor is a special method in a class that is automatically called when an object of the class is created. •It typically initializes the object's attributes with initial values. •In Python, the constructor method is named __init__ and is used to set up the initial state of an object. •Constructors can accept parameters to customize the initialization of objects. learn.marketcalls.in
  • 28. CREDITS: This presentation template was created by Slidesgo, and includes icons by Flaticon, and infographics & images by Freepik Thanks! < Do you have any questions? > rajandran@marketcalls.in Phone +91 9535133445 Whatsapp +91 9901867760 learn.marketcalls.in