Activity
Mon
Wed
Fri
Sun
Oct
Nov
Dec
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
What is this?
Less
More

Owned by Sunil

Python for Quant Trading

Public • 101 • $99/m

Community to learn python for quant finance and trading

PF
Python for Quant Trading

Public • 1 • Free

Memberships

Skool Community

Public • 141.7k • Paid

The Skool Games

Private • 19.1k • Free

15 contributions to Python for Quant Trading
Strategy Development using Fyers api (Sep and Oct)
We will be covering all key API features, including: - Authentication - Accessing historical data - Placing orders - Working with WebSockets - Margin calculations - Building an end-to-end SuperTrend strategy
4
0
Get smarter in own trades
Does anyone know how to use KNN and other ML tools in predicting short-term returns? Another similar topic would be predicting driftbursts with the drift burst hypothesis (it's also a shortterm momentum topic)
0
1
New comment 29d ago
0 likes • 29d
Hi Daniel, I've experimented with some ML models before, and I found it quite challenging to make accurate predictions within a short timeframe, like 1 minute. These types of models are typically more effective in high-frequency trading scenarios. If you're interested in learning more, I've attached a PDF that provides additional details.
Strategy for August :
This month, we will be discussing two strategies: 1. Intraday Open Range Breakout Strategy: - Define Open Range:Calculate the high and low levels using the first hour of market data. - Monitor Breach Points:Wait for the stock price to breach either the high or low level. - Go Long: If the price breaches the high level. - Go Short: If the price breaches the low level. - Close all positions by the end of the day. 2. Positional Supertrend and EMA Strategy - Calculate the Supertrend on daily candles. - Calculate the EMA (Exponential Moving Average) on hourly candles. - Go Long:When the daily Supertrend gives a long signal and the closing price is greater than the daily EMA. - Go Short:When the daily Supertrend gives a short signal.The closing price is less than the daily EMA.
3
0
Positional Strategy
Hey everyone, I have tried to code a simple strategy in python enviroment. This take the momemtum and RSI as a filter to generate Buy or sell signal. Let me know if you like and if you have any suggesstion which i can work on.
0
2
New comment Aug 1
1 like • Aug 1
good work @Amit Ranjan
Issue with Blank Chart
Trying out the Exploratory Task on Geometric Brownian Motion (GBM) to simulate token price. https://colab.research.google.com/drive/1R0O20EVV3JCwLAL0hliP7EE4y9Ipikw_?usp=sharing My graph is blank
0
1
New comment Jul 21
1 like • Jul 21
import numpy as np import pandas as pd import matplotlib.pyplot as plt def calculate_gbm(S0, T, mu, sigma, n_steps, n_sims): dt = T / n_steps gbm_paths = np.zeros((n_steps + 1, n_sims)) gbm_paths[0] = S0 for t in range(1, n_steps + 1): Z = np.random.standard_normal(n_sims) gbm_paths[t] = gbm_paths[t - 1] * np.exp((mu - 0.5 * sigma**2) * dt + sigma * np.sqrt(dt) * Z) return gbm_paths def main(): closing_prices=pd.read_csv(r"near_data.csv", parse_dates=['DATE'])['PRICE'].dropna() print(closing_prices) # Calculate log returns log_returns = np.log(closing_prices / closing_prices.shift(1)).dropna() mu = log_returns.mean() sigma = log_returns.std() # Simulation parameters S0 = closing_prices.iloc[-1] T = 1/12 # 1 year n_steps = 30 # Number of trading days in a year n_sims = 365 # Number of simulations gbm_paths = calculate_gbm(S0, T, mu, sigma, n_steps, n_sims) # Plotting the simulations plt.figure(figsize=(10, 6)) plt.plot(gbm_paths) plt.title(f'Geometric Brownian Motion ') plt.xlabel('Days') plt.ylabel('Stock Price') plt.show() if _name_ == '_main_': main()
1-10 of 15
Sunil Sala
3
33points to level up
@sunil-sala-4305
Quant Developer

Active 2d ago
Joined Jun 10, 2024
India
powered by