1,405 questions
1
vote
0
answers
22
views
: indicator() fires entry + exit alerts on same bar — backtest clean, live shows pairs
Converted strategy() → indicator() with alert() calls for webhook execution. Live shows paired entry/exit alerts milliseconds apart, price delta ≈ intrabar range of entry bar. Backtest over same ...
-2
votes
0
answers
41
views
Why are the opening and closing positions in the backtest inconsistent with the webhook signal timing? [closed]
The first screenshot shows each opening and closing trade generated by my strategy:
The second screenshot shows trades' signals, which were posted by the same strategy:
But look at the two ...
Advice
0
votes
0
replies
53
views
Tradingview Pine Script: Adding a condition to UI-based volume alerts (not code generated volume alerts)
I like to carefully line up my mouse in the Volume pane and then right click to add Volume alerts on a symbol, and when I do this, the exact location of my cursor pre-fills the alert threshold with ...
Tooling
0
votes
0
replies
14
views
: Boxes misaligned with candles when using xloc.bar_index in separate pane
Title: Boxes misaligned with candles when using xloc.bar_index in separate pane
Problem:
I'm building an indicator that draws boxes in a separate pane (not overlay). Each box should align exactly with ...
0
votes
0
answers
67
views
TradingView Pine Script Renko Call to HTF Alerts 1 Bar Late?
I'm working on a pine script strategy that trades primarily on the 1S Renko charts, but I want to get the direction of the 5M Renko chart, I'm using the following code below to make the call and ...
0
votes
0
answers
71
views
changing the TP and SL trade level indicator bar colors generated by using the trade panel in TradingView
Is there any possible way to alter the TP and SL trade level indicator bar colors generated by using trade panel. They are too faint on almost every canvas color. The SL bar, box, and text are in a ...
0
votes
0
answers
62
views
How to customize the time format shown below the price?
I'm using Lightweight Charts to draw a candlestick chart.
Right now, I display the "current candle price" in real time using the series update:
candleSeries.update({
time: timestamp,
...
0
votes
1
answer
171
views
Why do the values in the labels keep changing as the candle moves?
I have some signals that are generated through logic within my indicator. They are plotted as “dots, triangles, or arrows” or other shapes. What I wanted was a way to “monitor” the indicator signals. ...
0
votes
1
answer
108
views
Why are my Daily MA50/100/200 lines jagged instead of smooth even with smoothing turned off?
I’ve written a Pine Script to display the Daily 50/100/200 Moving Averages on lower timeframes (like 1H or 15m).
I’m pulling the data using request.security() to lock it to the 1D timeframe so it ...
0
votes
0
answers
41
views
Color a section of a TradingView 5.0 LineSeries chart
I am using TradingView's Lightweight Charts 5.0 (https://github.com/tradingview/lightweight-charts)
How do I color a section of the chart, say from 0, 50 to 0,100 ?
const chart = LightweightCharts....
0
votes
0
answers
103
views
Tradingview Lightweight Charts - lock price to bar ratio issue
I am using lightweight charts 4 version. I want to implement "Lock price to bar ratio" option in my chart.
function handlePriceScaleLock() {
setPriceScaleLocked(v => {
const ...
0
votes
1
answer
194
views
tradingview! Persistent Pine Script v6 error: Syntax error at input 'end of line without line continuation'
It affects any struct. I've cleaned chars, renamed, tried new scripts – still fails.
Any solutions? So frustrating.
//@version=6
indicator("TestStruct", overlay=true)
struct MyData
float ...
-1
votes
1
answer
108
views
Pinescript exit order never filled with partial profits
I made a simple script that take a trade with an order bracket with Take profit and stop loss and when price go up to 50% of Take profit, i sell 70% of the contract and set the new stop loss at break ...
-1
votes
1
answer
173
views
How do I lock triangle in place even when dragging chart up and down in Pine script?
I know nothing about coding but I am creating an indicator in Pine Editor. I want a triangle to appear above or below a candle when certain criteria are met. I've got it to do this using chatgpt but ...
0
votes
0
answers
132
views
TradingView Lightweight Chart crosshair tooltip time
type here
I am creating a algo trading platform which uses tradingView lightweight chart. I have now run into a issue wherein all the time shown on x axis is correctly being displayed in IST and the ...