Group Abstract Group Abstract

Message Boards Message Boards

How can I draw a dynamic line on a TradingChart

POSTED BY: Henrick Jeanty
DynamicModule[{linePosition = 1}, Column[
  {
   Row[
    {
     Graphics[{FaceForm[LightGray], EdgeForm[Gray], Rectangle[{0, 0}, {10, 2}],
       Dynamic@{Dashed, Line[{{0, linePosition}, {10, linePosition}}]}},
      PlotRange -> {{0.0, 10}, {0, 2}}, ImageSize -> {400, 200}], 
     VerticalSlider[Dynamic[linePosition], {0, 2}, 
      Appearance -> {LeftArrow}, ImageSize -> {Automatic, 80}]
     }
    ]
   }]]
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard