(
(High[0] < High[1] && Low[0] > Low[1] && High[1] >= High[2] && Low[1] > Low[2] && Open[0] <= Close[1] && Close[0] <= Open[0])
||
(High[0] < High[1] && Low[0] > Low[1] && High[1] <= High[2] && Low[1] < Low[2] && Open[0] >= Close[1] && Close[0] >= Open[0] )
)
This is the error I see in the logs
log<date>.txt
3/01/2012 21:01:43|3|4|Error on calling 'OnBarUpdate' method for indicator 'InsideBar' on bar 23: You are accessing an index with a value that is invalid since its out of range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
13/01/2012 21:01:43|3|4|Error on calling 'OnBarUpdate' method for indicator 'InsideBar' on bar 39: You are accessing an index with a value that is invalid since its out of range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
13/01/2012 21:01:44|3|4|Error on calling 'OnBarUpdate' method for indicator 'InsideBar' on bar 29: You are accessing an index with a value that is invalid since its out of range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
13/01/2012 21:01:45|3|4|Error on calling 'OnBarUpdate' method for indicator 'InsideBar' on bar 12: You are accessing an index with a value that is invalid since its out of range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
13/01/2012 21:01:53|3|4|Error on calling 'OnBarUpdate' method for indicator 'InsideBar' on bar 14: You are accessing an index with a value that is invalid since its out of range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
13/01/2012 21:01:54|3|4|Error on calling 'OnBarUpdate' method for indicator 'InsideBar' on bar 41: You are accessing an index with a value that is invalid since its out of range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
13/01/2012 21:01:55|3|4|Error on calling 'OnBarUpdate' method for indicator 'InsideBar' on bar 19: You are accessing an index with a value that is invalid since its out of range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
13/01/2012 21:01:58|3|4|Error on calling 'OnBarUpdate' method for indicator 'InsideBar' on bar 41: You are accessing an index with a value that is invalid since its out of range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
13/01/2012 21:02:16|3|4|Error on calling 'OnBarUpdate' method for indicator 'InsideBar' on bar 41: You are accessing an index with a value that is invalid since its out of range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
Trace Log
012-01-13 21:01:53:265 ERROR: Error on calling 'OnBarUpdate' method for indicator 'InsideBar' on bar 14: You are accessing an index with a value that is invalid since its out of range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
2012-01-13 21:01:53:734 (IQFeed) Data.Bars.GetBarsNow: instrument='$USDNOK' from='2012-01-13' to='2012-01-13' period=Daily splitAdjusted=False dividendAdjusted=False bars=0 session='Forex'
2012-01-13 21:01:54:218 (IQFeed) Data.Bars.GetBarsNow: instrument='$USDSEK' from='2012-01-13' to='2012-01-13' period=Daily splitAdjusted=False dividendAdjusted=False bars=0 session='Forex'
2012-01-13 21:01:54:703 (IQFeed) Data.Bars.GetBarsNow: instrument='$USDSGD' from='2012-01-13' to='2012-01-13' period=1 Min splitAdjusted=False dividendAdjusted=False bars=0 session='Forex'
2012-01-13 21:01:54:890 ERROR: Error on calling 'OnBarUpdate' method for indicator 'InsideBar' on bar 41: You are accessing an index with a value that is invalid since its out of range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
2012-01-13 21:01:55:796 ERROR: Error on calling 'OnBarUpdate' method for indicator 'InsideBar' on bar 19: You are accessing an index with a value that is invalid since its out of range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
2012-01-13 21:01:56:468 (IQFeed) Data.Bars.GetBarsNow: instrument='$USDSGD' from='2012-01-10' to='2012-01-12' period=Daily splitAdjusted=False dividendAdjusted=False bars=0 session='Forex'
2012-01-13 21:01:56:968 (IQFeed) Data.Bars.GetBarsNow: instrument='$USDSGD' from='2012-01-13' to='2012-01-13' period=Daily splitAdjusted=False dividendAdjusted=False bars=0 session='Forex'
2012-01-13 21:01:58:921 ERROR: Error on calling 'OnBarUpdate' method for indicator 'InsideBar' on bar 41: You are accessing an index with a value that is invalid since its out of range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
2012-01-13 21:02:16:640 ERROR: Error on calling 'OnBarUpdate' method for indicator 'InsideBar' on bar 41: You are accessing an index with a value that is invalid since its out of range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
Trace Log
012-01-13 20:49:40:937 Code.Editor.OnLoad: Failed to reference 'NinjaTrader.Custom, Version=7.0.1000.4, Culture=neutral, PublicKeyToken=null': System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, StackCrawlMark& stackMark)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at NinjaTrader.Code.Editor.OnLoad(Object sender, EventArgs e)
Comment