I’m trying to create a Fibonacci indicator in Pine Script where I can select a specific candle by entering its hour and minute. For example, if I enter 09:20 on a 5-minute chart, I want the…
Questions tagged #historical-data
I’m creating a TradingView indicator and I have some logic that should execute only on the first candle of a new trading day. I don’t want to run that logic on every candle. I want to…
I’m developing a trading strategy in Pine Script and want to highlight candles whenever my buy or sell conditions are met. Instead of only plotting signals, I’d like the candle colors to…
I’m developing my own TradingView strategy and I’ve noticed that sometimes it keeps generating Buy or Sell entries repeatedly, even though I’m already in an open position. I only want my…
I’m building an algo trading system and need to fetch historical data (like 1-minute candles) from Zerodha.I saw the historical\_data function but not sure what’s the correct way to use it…
I am receiving live tick data from Zerodha WebSocket, but indicators like Supertrend and others require candle data.How can I correctly convert live ticks into 1-minute candles in…
SOLVED How can I draw Buy/Sell arrows or symbols on the MT5 chart when my strategy generates a signal?
I’m developing an MT5 strategy, and whenever my Buy or Sell condition is satisfied, I’d like to display an arrow or some symbol on the chart exactly at that candle. For example, if a…
I’m creating an Expert Advisor in MT5 and I only want my strategy logic to run once whenever a new candle is formed. I know OnTick() executes on every incoming tick, but I don’t want my…
I’m calculating MACD in my algo using my 1-minute candles. I implemented EMA (12, 26) and signal line (9), but when I compare with chart values, they don’t match exactly. Candle data looks…
While creating a position in Order Manager, I noticed there are multiple Target and Stop Loss types available such as LTP, Candle, Percentage, and Points. I’m a little confused about when…
I’m building an supertrend algo where I need to fetch historical data for multiple stocks at startup. Right now I’m looping over all symbols and calling the historical API, but after a few…
EMA/SMA values not matching chart in my algo (using 1-min candles) I’m calculating EMA and SMA in my algo using 1-minute candles built from ticks. But when I compare it with broker/chart…
I’m using broker APIs like Zerodha and Angel One, and I noticed that they give cumulative volume instead of per-tick or per-candle volume.Because of this, I’m not able to calculate correct…
I’m trying to use Bollinger Bands (BB) in my algo using my 1-minute candle data. I implemented the formula using SMA and standard deviation, but when I compare it with chart values, it…