• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw at exact MA plot crossover

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

    Draw at exact MA plot crossover

    Hello,

    Is there a way to draw an ellipse or rectangle on the chart centered not on the bar, but centered on the plot crossover of two moving averages?

    Thx.

    #2
    Hello Turtle Trader,
    Thanks for your post and I am happy to assist you.

    To assist you further can you post a screenshot of the chart depicting your requirement.

    To send a screenshot press Alt + PRINT SCREEN to take a screen shot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.

    For detailed instructions please visit the following link

    http://take-a-screenshot.org/

    I look forward to assisting you further.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      cross of MA

      Hello,

      Attached is a jpg.

      I would like to draw where the moving averages cross, and not where the bars are.

      Please see the black rectangles.
      Attached Files

      Comment


        #4
        Hello Turtle Trader,
        Thanks for the screenshot.

        You can use the below code to draw the rectangle on the MA crossover:
        Code:
        if (CrossAbove(SMA(Fast), SMA(Slow), 1))
        {
        	if (CurrentBar > 2) DrawRectangle("rec" + CurrentBar, 2, SMA(fast)[0] + 2 * TickSize, -2, SMA(fast)[0] - 2 * TickSize, Color.Yellow);
        }
        http://www.ninjatrader.com/support/h...wrectangle.htm

        Please let me know if I can assist you any further.
        JoydeepNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by HiddenPhilosopher, Today, 06:45 AM
        0 responses
        2 views
        0 likes
        Last Post HiddenPhilosopher  
        Started by PG7940, Today, 04:26 AM
        0 responses
        7 views
        0 likes
        Last Post PG7940
        by PG7940
         
        Started by marcus2300, Today, 02:25 AM
        0 responses
        2 views
        0 likes
        Last Post marcus2300  
        Started by drpapp, 01-24-2019, 06:57 AM
        5 responses
        69 views
        0 likes
        Last Post pjsmith
        by pjsmith
         
        Started by plydcv, Today, 12:40 AM
        0 responses
        3 views
        0 likes
        Last Post plydcv
        by plydcv
         
        Working...
        X