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 futurenow, 12-06-2021, 05:49 PM
      18 responses
      879 views
      0 likes
      Last Post dj0ntz
      by dj0ntz
       
      Started by nailz420, 05-14-2025, 09:14 AM
      1 response
      117 views
      0 likes
      Last Post NinjaTrader_ChristopherJ  
      Started by NinjaTrader_Brett, 05-12-2025, 03:19 PM
      0 responses
      525 views
      1 like
      Last Post NinjaTrader_Brett  
      Started by domjabs, 05-12-2025, 01:55 PM
      2 responses
      84 views
      0 likes
      Last Post domjabs
      by domjabs
       
      Started by Morning Cup Of Trades, 05-12-2025, 11:50 AM
      1 response
      123 views
      0 likes
      Last Post NinjaTrader_ChristopherJ  
      Working...
      X