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 judysamnt7, 03-13-2023, 09:11 AM
      4 responses
      59 views
      0 likes
      Last Post DynamicTest  
      Started by ScottWalsh, Today, 06:52 PM
      4 responses
      36 views
      0 likes
      Last Post ScottWalsh  
      Started by olisav57, Today, 07:39 PM
      0 responses
      7 views
      0 likes
      Last Post olisav57  
      Started by trilliantrader, Today, 03:01 PM
      2 responses
      21 views
      0 likes
      Last Post helpwanted  
      Started by cre8able, Today, 07:24 PM
      0 responses
      10 views
      0 likes
      Last Post cre8able  
      Working...
      X