Zimbo![]() New User Posts: 2 Joined: 7/1/2006 Location: Johannesburg, South Africa ![]() | Its been some 4 years now since the coding for the Floor pivot indicator was posted up by Kris. I just love this indicator but am not very adept at coding. I copied the code into my OT 2012 PR 3C and it came up with a compling error as follows; FileName: ; Line: 0; Char: 0; Error Number: -2; Microsoft (R) Visual Basic Compiler version 8.0.50727.5420 for Microsoft (R) .NET Framework version 2.0.50727.5456 Copyright (c) Microsoft Corporation. All rights reserved. C:\Program Files (x86)\Nirvana\OT2012\VBA\Temp\indDailyPivots60min.txt(165) : error BC30451: Name 'C' is not declared. If (Bar > (C.Length() - ((NumberHistoricalPivots * LookBack) + CurrLookBack(Bar)))) Then ~ C:\Program Files (x86)\Nirvana\OT2012\VBA\Temp\indDailyPivots60min.txt(204) : error BC30451: Name 'C' is not declared. ElseIf ((Bar > (C.Length() - CurrLookBack(Bar))) And (afBARHOUR_23(Bar - 1) <> 23)) Then ~ Maybe the newer version of OT has broken the code for the 2007 version. Can anybody help me with this? |