About 50 results
Open links in new tab
  1. Newest 'pine-script' Questions - Stack Overflow

    Jan 27, 2026 · I am new to pinescript and wrote this simple script to show me daily, weekly and monthly candle open lines by piecing together information I could find. This works well but I would like to add …

  2. How do I use both stop loss and take profit in pinescript v5 ? (Three ...

    Jan 3, 2023 · I'd like to get the stop loss and take profit to trigger and print on the chart. The stop loss and take profit should both be set to 1% from the entry for both long and short positions. Method 1:

  3. pinescript detect high and low iteratively (no lookbacks or ranges)

    Mar 15, 2023 · pinescript detect high and low iteratively (no lookbacks or ranges) Asked 2 years, 10 months ago Modified 2 years, 10 months ago Viewed 1k times

  4. How to get high and low for a specific time period

    Jan 6, 2021 · 1 I am trying to write a strategy in Pinescript for trading view and I have to get the high and low values during a certain time period. Like 10:00 to 10:30 AM. In the documentation I can see the …

  5. Pinescript manage drawn lines by condition - Stack Overflow

    Jan 13, 2024 · If someone could spot light on how the pinescript paradigm works it would be helpful. Also I wonder if every line.new call redraws the same line a couple of times and how to avoid this (to …

  6. I want to make a PineScript V5 Strategy with ADX and RSI But keep ...

    Mar 23, 2023 · It just seems that I can't figure out the correct script for my strategy, which is the following: Buy signal when the ADX is above 46 and at the same time the RSI is oversold at or below …

  7. pine script - Pinescript Multiple Time Frame - Stack Overflow

    May 1, 2022 · I wanted to set up a buy/sell signal in the main chart using the RSI values. I am looking for an example or script to use multiple timeframes in the same indicator chart. Say RSI based on the …

  8. How to get this variable to display last closing price for all bars?

    Oct 16, 2022 · What I want is to display the last-closing price when the mouse hovers at any of the bars in TradingView. It is also fine if the closing price of the right-most visible on the chart is displayed. I …

  9. PineScript History Reference Operator Troubleshooting

    Apr 7, 2023 · PineScript History Reference Operator Troubleshooting Asked 2 years, 10 months ago Modified 2 years, 10 months ago Viewed 1k times

  10. How to get timestamp in Pine script? - Stack Overflow

    Nov 16, 2021 · Does this answer your question? Pinescript - How to pass current date in timestamp?