# Priceline indicator that takes time as input

**URL:** <https://discourse.ninjatrader.com/t/priceline-indicator-that-takes-time-as-input/2749>\
**Category:** Desktop SDK - Indicators\
**Created:** [June 2, 2025, 6:57am UTC](https://discourse.ninjatrader.com/t/priceline-indicator-that-takes-time-as-input/2749 "2025-06-02T06:57:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![userninja](https://discourse.ninjatrader.com/letter_avatar_proxy/v4/letter/u/898d66/32.png) [@userninja](https://discourse.ninjatrader.com/u/userninja)\
**Post date:** [June 2, 2025, 6:57am UTC](https://discourse.ninjatrader.com/t/priceline-indicator-that-takes-time-as-input/2749/1 "2025-06-02T06:57:16Z")

</div>

Hello - I was trying to get a simple horizontal line indicator to show a price. The input to the indicator is a time and it would then plot the price at that time. Please help. Thanks much!

---

<div class="post-metadata">

**Author:** ![several](https://discourse.ninjatrader.com/letter_avatar_proxy/v4/letter/s/b9e5f3/32.png) [@several](https://discourse.ninjatrader.com/u/several)\
**Post date:** [June 2, 2025, 8:30am UTC](https://discourse.ninjatrader.com/t/priceline-indicator-that-takes-time-as-input/2749/2 "2025-06-02T08:30:48Z")

</div>

You have to supply some more details, like where does the TimeVariable come from.

---

<div class="post-metadata">

**Author:** ![userninja](https://discourse.ninjatrader.com/letter_avatar_proxy/v4/letter/u/898d66/32.png) [@userninja](https://discourse.ninjatrader.com/u/userninja)\
**Post date:** [June 2, 2025, 5:15pm UTC](https://discourse.ninjatrader.com/t/priceline-indicator-that-takes-time-as-input/2749/3 "2025-06-02T17:15:41Z")

</div>

Thanks for responding!  
The time is manually input -  
Let’s say I have an ETH chart open and I need a horizontal line that shows 10am price.  
I open this indicator and input 10:00 and select the line type/color/etc, and it prints the line from 10am to the right. It should only print the most recent 10am in the chart loaded. Hope this clarifies…

---

<div class="post-metadata">

**Author:** ![Maverick](https://discourse.ninjatrader.com/user_avatar/discourse.ninjatrader.com/maverick/32/199_2.png) [@Maverick](https://discourse.ninjatrader.com/u/Maverick)\
**Post date:** [June 2, 2025, 9:13pm UTC](https://discourse.ninjatrader.com/t/priceline-indicator-that-takes-time-as-input/2749/4 "2025-06-02T21:13:15Z")

</div>

You can just use the horizontal line drawing tool to accomplish what you’re looking for and the alternative is to look a coder from the freelancer sites and have them code a specific solution with those parameters.
