Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am vijay-v on github.
  • I am 888 (https://keybase.io/888) on keybase.
  • I have a public key whose fingerprint is 8D02 7100 102F D292 EE89 8A96 BEA8 EC0A E1C3 9612

To claim this, I am signing this object:

@vijay-v
vijay-v / @RangeAltBarsTypeV7.cs
Created August 6, 2014 15:28
NinjaTrader7 new bar type : Range Bars, but fixed to not draw phantom / dummy bars in case there is a sudden move; jumps happen
// VJ : 20120321 : Fixed to not draw phantom / dummy bars in case there is a sudden move; i.e., all prices seen are real
// Problem : The built-in NT7 range bars do phantom / dummy bars to produce picture-perfect Range Bars.
// Amibroker does the same. But that is NOT what Iwant. I want real prices.
// Thus, only if price action is smooth (tick by tick, say) do we see perfect 250R range bars.
// Otherwise, the Close price might be > 250R.
//
// The difference between Range Bars, and my RangeAltBars:
// Default Range Bars : pretty 250R phantom bars with fake (computed) Close
// Range Alt Bars : no phantom bars; no fake Close
//
@vijay-v
vijay-v / Program.java
Last active January 1, 2016 22:19
Example for "Reference to an object of any class that implements two or more given interfaces", http://stackoverflow.com/questions/20860880/reference-to-an-object-of-any-class-that-implements-two-or-more-given-interfaces
/**
* "Reference to an object of any class that implements two or more given interfaces"
*
* http://stackoverflow.com/questions/20860880/reference-to-an-object-of-any-class-that-implements-two-or-more-given-interfaces
*
* @author VJ
*
*/
interface Foo { void foo(); }
interface Bar { void bar(); }