Questions tagged [candlesticks]

57 questions
0
votes
1 answer

How to code a period using multiple candles above a certain level

I am trying to figure out how to catch a bounce with specific zones. Looking at how I would code when price is above a zone for a certain period (but this period would be based on number of candlesticks opposed to time), then falls into the…
0
votes
0 answers

backtrader shows same time for all candles

This is my code: data15 = bt.feeds.GenericCSVData(dataname='BTCUSDT-15m-2022-01-01.csv', dtformat=lambda x: datetime.utcfromtimestamp(int(x)/1000)) from csvgeneric.py: dt = datetime.strptime(dtfield, dtformat) else: dt =…
Rony Tesler
  • 1,207
  • 15
  • 25
0
votes
1 answer

How to always display crosshair at last series in the Candlestick ApexCharts

I want the crosshair always display at the last series in the Candlestick chart without using the mouse hover. How to do that? This is my expect:
vnanhtuan
  • 15
  • 1
  • 3
0
votes
2 answers

Gnuplot candlesticks next to each other in line graph

I am making a comparison of different algorithms with dependence on the properties of the datasets, and I am watching the execution time. Because there might exist multiple observations for one value of the property, I created a line graph, where…
Jakub Peschel
  • 135
  • 1
  • 8
0
votes
0 answers

how can i plot harmonic pattern using plotly in candlestick series?

how can i plot harmonic pattern using plotly in candlestick series like the image below? The pattern has 5 or points to get connected fully fig = go.Figure(data=[go.Candlestick(x=df.index, open=df['open'], high=df['high'], …
Mala
  • 89
  • 9
0
votes
1 answer

Pinescript Do not enter if the length of green candles(high - low) before entering is more than certain length without security

I don't want to enter the same situation like image. CandleSize = abs(high-low) Length = CandleSize < 30 I want to make code to satisfy the condition that applicable only green candle before entry It would be nice if code could satisfy the…
0
votes
1 answer

pinescript v4 Do not enter if there are six green candles before entering the position

I'd like to make a code that won't entering the position in a situation like in the picture. greenCandle = barstate.isconfirmed and (close > open) sixGreenCandles = greenCandle[6] and greenCandle[5] and greenCandle[4] and…
0
votes
1 answer

How can I create 1 minute candles for trading pairs in Python?

I'm trying to figure out how to create a 1 minute candlestick for trading pair BTC-USD using the binance package in Python. So far I can get this down: from binance.client import Client candles = client.get_klines(symbol='BTCUSDT',…
NewbieCode
  • 21
  • 6
0
votes
2 answers

Trend line continuation

I have 2 trends lines, that is generate automatically with candlestick date (high, low, close, open). When this is generated I store the trend line values. When I load this data I need that the lines continues on future. For exemple: I had a…
Luis Tiago
  • 231
  • 3
  • 8
0
votes
0 answers

How to save to png candlestick chart with different additional indicators?

My code is: fig = make_subplots(rows = 1, cols = 1, shared_xaxes = True, subplot_titles = (currency_name+' '+timeframe), vertical_spacing = 0.1, row_width = [0.6]) # ---------------- # Candlestick Plot fig.add_trace(go.Candlestick(x = chart.index,…
Timur
  • 11
0
votes
1 answer

How do I get historical candlestick data or kline from Phemex Public API?

I need to be able to extract historical candlestick data (such as Open, Close, High, Low, and Volume) of a candlestick in differing intervals (1m, 3m, 5m, 1H, etc.) at a specified time (timestamps) from Phemex. Other exchanges, such as Binance or…
0
votes
1 answer

Using function on the whole list of XTS objects

I'm trying to analyze candlestick formation Marubozu in R. So far I was able to download the different stocks data and find the formation using "Candlesticks" library in one stock data. I would like to automate that process so that I can run the…
TechLuk
  • 25
  • 3
0
votes
1 answer

How to find the value of a single candle x bar before in Pine Script

Which function schould I use to find higher high and lower low values of a single candle? For example 30 candles before, exactly -30. Candle informations and plot them? Thanks in advice
0
votes
1 answer

Syncrhonize timescale db to work with custom intervals

I am willing to collect candle price stock data on specific time intervals using timescaledb continous aggregations, such as 37 minutes and my intervals will start every day at 00:00. So for example, I am willing to have an interval starts each day…
0
votes
1 answer

How I can draw automatic boxes on specific Candles in Pine Script?

I'm trying to program an indicator that show the resistant area the resistant area should be box ( triangle ) the main idea that the indicator detect the highest red candles with upper tale more that 50% of the candle length // This source code is…
Ahmed Ashkar
  • 33
  • 2
  • 9