• 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

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 kylef, Today, 11:36 AM
      1 response
      6 views
      0 likes
      Last Post kylef
      by kylef
       
      Started by dafty, Today, 10:44 AM
      0 responses
      14 views
      0 likes
      Last Post dafty
      by dafty
       
      Started by shs232, Today, 10:02 AM
      0 responses
      8 views
      0 likes
      Last Post shs232
      by shs232
       
      Started by cary1267, Today, 09:37 AM
      0 responses
      7 views
      0 likes
      Last Post cary1267  
      Started by kattiehowe, Today, 09:01 AM
      0 responses
      10 views
      0 likes
      Last Post kattiehowe  
      Working...
      X