0

Here is an example code:

[pdOT, pdCT] = request.security(syminfo.tickerid, 'D', [time[1], time_close[1]])

How can I draw a line at pdOT and cdOT? I have tried using line.new(), plot(), bgcolor() all to no avail.

mkrieger1
  • 19,194
  • 5
  • 54
  • 65
Lew2234
  • 21
  • 4

1 Answers1

0

time functions return UNIX time in seconds, which is around 1688980013 today. You really want to draw lines using the bar index (Y position) and price level (X position).

karatedog
  • 2,508
  • 19
  • 29