Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть Mastering Pine Script: How to Plot Last Week's Highs Only on Red Candles

  • vlogize
  • 2025-04-15
  • 1
Mastering Pine Script: How to Plot Last Week's Highs Only on Red Candles
Getting Highs of Only Red Candlespine scriptpine script v5
  • ok logo

Скачать Mastering Pine Script: How to Plot Last Week's Highs Only on Red Candles бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно Mastering Pine Script: How to Plot Last Week's Highs Only on Red Candles или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку Mastering Pine Script: How to Plot Last Week's Highs Only on Red Candles бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео Mastering Pine Script: How to Plot Last Week's Highs Only on Red Candles

Discover how to efficiently plot previous week's highs in `Pine Script` and specifically target red candles for better market insights.
---
This video is based on the question https://stackoverflow.com/q/73870365/ asked by the user 'SomeGuy74' ( https://stackoverflow.com/u/18856288/ ) and on the answer https://stackoverflow.com/a/73872325/ provided by the user 'vitruvius' ( https://stackoverflow.com/u/7209631/ ) at 'Stack Overflow' website. Thanks to these great users and Stackexchange community for their contributions.

Visit these links for original content and any more details, such as alternate solutions, latest updates/developments on topic, comments, revision history etc. For example, the original title of the Question was: Getting Highs of Only Red Candles

Also, Content (except music) licensed under CC BY-SA https://meta.stackexchange.com/help/l...
The original Question post is licensed under the 'CC BY-SA 4.0' ( https://creativecommons.org/licenses/... ) license, and the original Answer post is licensed under the 'CC BY-SA 4.0' ( https://creativecommons.org/licenses/... ) license.

If anything seems off to you, please feel free to write me at vlogize [AT] gmail [DOT] com.
---
Mastering Pine Script: How to Plot Last Week's Highs Only on Red Candles

In the world of trading, visualizing market trends and price movements is crucial for making informed decisions. One popular platform for technical analysis is TradingView, which utilizes a scripting language called Pine Script. In this guide, we'll tackle a specific challenge: plotting the previous week’s highs, but only on red candles.

Understanding the Problem

You're already using a good starting point with your existing indicator that plots last week's highs. However, you want to refine this by only displaying these highs when they align with red candles (where the closing price is lower than the opening price). Additionally, you're interested in finding a more optimal method to include multiple lines without repetitive code.

Here’s a snippet of your existing code for reference:

[[See Video to Reveal this Text or Code Snippet]]

Solution Overview

Let’s break down how to modify your existing script effectively:

Step 1: Requesting Open, Close, and High Prices

To determine if the candles are red or not, you need to obtain the open and close prices alongside the high price. This can be done using the request.security function, which allows you to gather data from previous periods.

[[See Video to Reveal this Text or Code Snippet]]

Step 2: Identifying a Red Candle

Next, you can create a condition to check if the candle is red. This is done by comparing the closing price to the opening price. If the closing price is less than the opening price, it confirms a red candle.

[[See Video to Reveal this Text or Code Snippet]]

Step 3: Adjusting the Plot Function

Now, the final step is to modify the plot function to conditionally plot the previous week's high based on the pRed condition. This way, the high will only plot when the candle is red, providing clearer insights into market behavior. Here's how your adjusted plot looks:

[[See Video to Reveal this Text or Code Snippet]]

Final Thoughts

By implementing this adjustment, you can now effectively visualize only the highs of the previous week that correspond to red candles. This not only helps in keeping your charts uncluttered but also aids in focusing on potential bearish scenarios. Plus, this method enhances efficiency, allowing you to easily scale the code for additional lines without redundancy.

Key Takeaways:

Utilize the request.security function to access multiple price metrics.

Establish conditions to filter data based on your trading strategy (e.g., only plot for red candles).

Optimize your code to improve readability and maintenance.

With these steps, you can harness the power of Pine Script to enhance your trading strategies and market analysis skills. Happy trading and coding!

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]