Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

This single line of code is causing plotting to stop

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

    This single line of code is causing plotting to stop

    Hi
    this script plots arrow mark on doji. was learning to script and add a new line.

    protected override void OnBarUpdate()
    {

    double tail0 = Instrument.MasterInstrument.Round2TickSize(Math.Ab s(Close[0] - Low[0]))/TickSize;

    double currentCandleSize3 = Math.Abs(Open[3] - Close[3]); --> this line makes the indicator not work. How should the code be if I want to compare 3 candles before doji ?

    When I say not work plotting of arrows gets stopped with the above line.
    Attached Files
    Last edited by shashankg27; 03-19-2013, 03:06 AM. Reason: some more info

    #2
    Welcome to our forums - any errors noted in the log tab of the Control Center then?

    Likely you've run into this - http://www.ninjatrader.com/support/f...ead.php?t=3170
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thanks it works

      Thank you. did the changes suggested.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by WHICKED, Today, 12:45 PM
      2 responses
      16 views
      0 likes
      Last Post WHICKED
      by WHICKED
       
      Started by GussJ, 03-04-2020, 03:11 PM
      15 responses
      3,272 views
      0 likes
      Last Post xiinteractive  
      Started by Tim-c, Today, 02:10 PM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by Taddypole, Today, 02:47 PM
      0 responses
      2 views
      0 likes
      Last Post Taddypole  
      Started by chbruno, 04-24-2024, 04:10 PM
      4 responses
      51 views
      0 likes
      Last Post chbruno
      by chbruno
       
      Working...
      X