Questions tagged [candlesticks]

57 questions
0
votes
0 answers

How can I adjust the visibility order of different series on a Combo Chart, specifically getting a line to appear above candlesticks?

I am using a Candlestick plot to show a distribution of a few different data sets. I am trying to have two trend lines show overtop of the Candlesticks, but they are consistently appearing behind it instead. I am using JSFiddle to try to tweak it,…
0
votes
0 answers

Amcharts 5 stock chart - how to color candles based on position string uploaded in data

Attempting to color stock candles based on "inTrade" string included in data. Three states "Long", "Short", "None". Began working with Amcharts 5 "Stock Chart Comparing Prices" demo which now incorporates two data files. One which is 5 days of…
0
votes
0 answers

Tradingview: How to show Daily Candlesticks for 1 Month Timeframe

I am having a difficult time figuring out how to have a 1 month timeframe on TradingView while using daily candles. On Think or Swim it's quite simple -- I can choose my Time Interval (say, 1 month) and my Aggregation Period. Here is a screenshot…
Moshe
  • 6,011
  • 16
  • 60
  • 112
0
votes
1 answer

Is it possible to plot a shape, on the chart candle, using an indicator script, like found for a 'strategy' scripts?

I would like to know the exact entry and exit prices for the 'alertconditions' I know this can be done for a 'strategy script, but I can't get it to work for an 'indicator'. the code below doesn't work. plotshape(entry, title='Long Enter',…
Kansari
  • 1
  • 1
0
votes
1 answer

How to access prev row values on select in Polars Dataframe? Heikin-Ashi candle calculation

I have DF = { open: [], high:[], low:[], close[] ) and formula to aggregate current DF: # OPEN = (Open_n-1 + Close_n-1) / 2.0 # HIGH = Max(High_n, Open_n, Close_n) # LOW = Min(Low_n, Open_n, Close_n) # CLOSE = (Open_n + High_n + Low_n + Close_n) /…
0
votes
0 answers

high[1], low[1] etc are all returning Nan / na what's wrong

I'm getting Nan's / na when I try to iterate the candles what am I doing wrong? Also it's giving me the wrong values for high and low? Notice SPY is @ 398 but the screen shot shows 440 ` //@version=5 indicator("TriangleWaves", "TriangleWaves",…
0
votes
0 answers

Asynchronous Kraken API updates every 5 minutes, not continuously (using NodeJS)

I'm using a public Kraken API to pull a small set of recent 1 minute bitcoin candles and put in an array. I've defined the procedure as asynchronous, thinking that it'll be updated constantly (as it includes the working candle in the response). Or…
TheDude
  • 3
  • 2
0
votes
0 answers

Candlestick chart graphs not producing continuous indicators

# Define function to create Plotly chart def create_chart(timeframe): # Resample data to selected timeframe and calculate OHLC data resample_dict = {'1min': '1T', '5min': '5T', '15min': '15T', '30min': '30T', '1h': '60T', '4h': '240T',…
0
votes
0 answers

Pinescript V5 Syntax error at input ':' Not able to plot candles

Trying to plot the below code but receiving error. enter image description here next_patterns = predict_sequence(model, input_data[array.size(input_data) - 1], 30) Error at : (next_patterns, : , 1) showing the ":" as Syntax error at input…
0
votes
1 answer

Problem with a simple indicator that indicates a positive/negative candle

My goal was to create a simple indicator that places a marker above or below the candle, depending on whether the candle is negative or positive. Positive candle = candle that closes above 50%. A negative candle closes below 50%. Although the code…
0
votes
0 answers

how to code 30 second candles in MT5 similar to the EA "candle by seconds" which i cant see the code for

enter image description here Heres an image of an MT5 window showing 15s candles which is a free indicator in the MT5 market. How the heck did this person do this? it isnt renko and its not tradeable but i would like to try and create something like…
Freddie B
  • 1
  • 1
0
votes
0 answers

How to show when a candle body finishes at 75% or high of the whole candle

I am sure this is easy but I am stumped. I have an indicator that shows engulfing candles and I want to add an arrow below it when the candle closes at 75% or greater of the candle. https://www.tradingview.com/x/jLgqOhxd/ I use this code to create…
0
votes
1 answer

Using pinescript 5 how can I mark the 3:45am candle, preferably with a shape ontop or beneath like a diamond or star something?

I just want to know how I can mark a candle that opened on a specific time. For example: We have a 3:45am candle that's marked with a diamond. Appreciate the help :) I have tried on my own and tried finding a solution but I'm new to pinescript (and…
0
votes
1 answer

Pinescript: Plot A Shape whenever candlestick that fulfills condition A crosses candlestick that fulfills condition B (within a lookback period)

Apologies if the below sounds elementary but basically I would like to plot a shape/signal whenever candlestick that fulfills condition A cross under candlestick that fulfills condition B (within a lookback period). Example: Condition A = low <…
0
votes
0 answers

change color if open price is higher or lower than closing price of the session

how do i make the session box change color if closing price of the session is higher than opening price of the session such say. if opening of asia is lower then the closing of the last candle in asia, the box is Green. else the box border is red.…
TONY T
  • 1