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

    Comment


      #3
      Thanks it works

      Thank you. did the changes suggested.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      81 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      47 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      29 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      32 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      66 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X