Posts

Import Chartink data into Python

Image
Import Chartink data into Python        Importing Chartink data into Python allows traders, investors, and finance enthusiasts to harness the power of this popular technical analysis platform for in-depth data analysis. In this guide, we will explore the process of seamlessly integrating Chartink data into Python, enabling users to leverage its extensive financial datasets. We will cover essential steps such as accessing Chartink APIs, retrieving historical and real-time data, and performing data cleaning and preprocessing. By the end, you will have the knowledge to import and analyze Chartink data within Python, empowering you to make informed decisions and gain valuable insights in the world of finance. Sample Code  :- import pandas as pd import requests from bs4 import BeautifulSoup as bs url = "https://chartink.com/screener/process" condition = { "scan_clause" : "( {cash} ( latest rsi( 9 ) > latest wma( latest rsi( 9 ) , 21 ) and 1 day ago rsi( 9 ) <...

Merge Two SuperTrend In pinescript TradingView

Image
Merge Two SuperTrend In pinescript TradingView      Merging two SuperTrend indicators in Pine Script on TradingView allows traders to combine multiple trend-following signals and gain deeper insights into market trends. In this guide, we will walk you through the process of merging two SuperTrend indicators in Pine Script. You will learn how to adjust the parameters and plot the merged indicator on your TradingView chart. By merging two SuperTrend indicators, you can potentially enhance the accuracy of your trading signals and make more informed trading decisions. Discover how to harness the power of combining SuperTrend indicators to identify strong trends and improve your overall trading strategy. Sample Code  :- // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © subhajitbhattacharya //@version=5 indicator("Two Supertrend", overlay=true, timeframe="", timeframe_gaps=true) atrPeriod = input(10, "A...

How To Build Multi Time Frame(MTF) Indicator in Pine Script

Image
How To Build Multi Time Frame(MTF) Indicator in Pine Script      Building a Multi-Time Frame (MTF) indicator in Pine Script allows traders to analyze multiple time frames on a single chart. This guide will explain how to develop an MTF indicator in Pine Script, enabling you to gain deeper insights into market trends and make more informed trading decisions. Sample Code :- // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © subhajitbhattacharya //@version=5 indicator("MTF RSI") rs = input.source(close,title="RSI Source") rl = input.int(14,title="RSI Length") rsi = ta.rsi(rs,rl) rsi1 = request.security(syminfo.tickerid, "15", rsi, barmerge.gaps_off, barmerge.lookahead_on) rsi2 = request.security(syminfo.tickerid, "60", rsi, barmerge.gaps_off, barmerge.lookahead_on) plot(rsi,color=color.lime) plot(rsi1,color=color.red) plot(rsi2,color=color.blue) Video Tutorial  :-

How to develop Screener in Pine Script TradingView

Image
How to develop Screener in Pine Script TradingView Developing a screener in Pine Script on TradingView involves creating custom scanning criteria, filters, and alerts. This guide will walk you through the process of developing a screener using Pine Script, enabling you to efficiently scan and identify trading opportunities based on technical indicators and patterns within the TradingView platform. Sample Code :- //======================================================================== // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © subhajitbhattacharya //@version=5 indicator(title='Screener', overlay=true) len = input.int(9,title="RSI Length") //======================================================================== screen() =>     rsi = ta.rsi(close,len)     bull = rsi > 55     bear = rsi < 45     [bull, bear] //=========================================================...

How To Trade With CPR

Image
How To Trade With CPR      CPR (Central Pivot Range) is a trading indicator used in technical analysis to identify potential support and resistance levels in financial markets. It is derived from the calculation of the central pivot point, which is the average of the high, low, and close prices of the previous trading session. The CPR indicator then constructs upper and lower boundaries around the central pivot point, forming a range. Traders use this range to determine potential areas of price reversal or continuation. By analyzing price action within the CPR, traders can make informed decisions about entry and exit points, setting stop-loss and take-profit levels for their trades.      The calculation for the traditional Central Pivot Range (CPR) involves three key components: the central pivot point (PP), the upper range (R1), and the lower range (S1). Here's how you can calculate them:                pivot =...

Analysis NIFTY/BANKNIFTY option chain in your SMARTPHONE

Image
Analysis NIFTY/BANKNIFTY option chain in your SMARTPHONE      When it comes to analyzing option chains for the NIFTY or any other financial instrument, both smartphones and laptops can be used effectively. However, each has its own advantages and considerations. Let's compare them in the context of analyzing option chains: 1. Portability: Smartphones are highly portable and can be easily carried anywhere, allowing you to access option chain data on the go. You can analyze the market and make informed decisions from anywhere, even while traveling. 2. Apps: There are several brokerage and financial apps available for smartphones that provide real-time option chain data, allowing you to monitor and analyze the market efficiently. These apps often offer user-friendly interfaces tailored for mobile devices. 3. Notifications: Smartphones enable push notifications, which can alert you to important market events, price movements, or changes in option chain data. You can stay u...

Import Nifty Option Chain With Python

Image
Import Nifty Option Chain With Python To import Nifty option chain data with Python using an API call, you can utilize the NSE (National Stock Exchange) website's official API. This method eliminates the need for web scraping and simplifies the data retrieval process. Here's a step-by-step guide: 1. Install the required libraries: Ensure you have the necessary Python libraries installed. You will need requests and pandas for making API requests and handling data, respectively. Use the following command to install them: pip install requests pandas 2. Import the required libraries in your Python script: import requests import pandas as pd 3. Define the API endpoint: Set the URL for the NSE option chain API. The API endpoint provides structured data in JSON format.python url = 'https://www.nseindia.com/api/option-chain-indices?symbol=NIFTY' 4. Set the headers: To mimic a web browser, set the necessary headers for the API request. This can help bypass any restrictions or se...