I want to create a simple Index (hereafter VB Index) that charts in Ninja, and this VB Index is comprised of up to 15 or less stocks. I also want a stock a Weighting Factor (WF). The formula for the VB Index would look as follows…
VB Index = Stock1 * WF1 + Stock2 * WF2 + Stock3 * WF3 + ……. + Stock15 * WF15
Seems pretty simple, but then again I do not know much about NinjaScript at this time. I would simply Graph this VB Index in a 2nd Panel along side the Instrument that I am trading.
Vince B
Comment