Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawObject in Panel 2

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    DrawObject in Panel 2

    Hello,
    In my stratagy I would like to plot an Diamond on an SMA that is in Panel 2 instead of Panel 1 (Price Panel):
    DrawDiamond("Up Diamond" + CurrentBar, 0, SMA(20)[0], Color.Blue); only works in Panel 1.

    I know that in an Indicator you would just use the
    DrawOnPricePanel =
    false; then select Panel 2.
    But in a strategy it looks like everything wants to plots in Panel 1


    How can I make this DrawDiamond plot on an SMA in Panel 2?

    Thanks

    #2
    Hi dwalls,

    Thanks for posting!

    All drawing objects from a strategy are drawn directly on the price panel.

    Drawing them to a different panel is not supported.

    So you may want to use an indicator to supplement your strategy for drawing purposes.

    Have a great day!

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    64 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    35 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    59 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    51 views
    0 likes
    Last Post CarlTrading  
    Working...
    X