Questions tagged [ohlc]
84 questions
0
votes
1 answer
Find highest high, considering today's rolling intraday high, and the previous day's high
Building off of my last question, what I need to do now is find the rolling().max() or rolling max price for each individual day. What I need is to create a column that contains the MAX of either yesterday's highest high price, or today's rolling…

wildcat89
- 1,159
- 16
- 47
0
votes
2 answers
How to get prior close when you have all stocks in a single DF?
Sorry for the noob question. I have a bunch of stocks in a sqlite3 database:
import pandas as pd
import sqlite3, config
connection = sqlite3.connect(config.db_file)
connection.row_factory = sqlite3.Row
df = pd.read_sql('SELECT * FROM…

a7dc
- 3,323
- 7
- 32
- 50
0
votes
2 answers
How to scale and print an array based on its minimum and maximum value?
I'm trying to scale the following NumPy array based on its minimum and maximum values.
array = [[17405.051 17442.4 17199.6 17245.65 ]
[17094.949 17291.75 17091.15 17222.75 ]
[17289. 17294.9 17076.551 17153. ]
[17181.85 17235.1 …

Rishabh Sahni
- 43
- 7
0
votes
1 answer
Filter out Down-candles to only include Up-candles in calculations in Pine Script
So, here's what I'm aiming to do:
I want to write a script that uses OHLC-data exclusively from UP-candles [close > open] to calculate % change from Open to High, Close to High, and Open to Low, then take a (moving) average of those values to…

Daniel Bauer
- 15
- 2
0
votes
1 answer
Trading View API is not able to show the price on price-scale when it's small
Check my OHLC Data for Plotting Candlesticks with Trading View API.
I am using this HTML and Script to Plot the Data :
Plot