I have a several question on how to do this:
1. I wrote: Add("VIX 12-13", PeriodType.Day, MarketDataType.current.Close);
However, this does not look write to me.
2. How will the script differentiate between this close and the Market "close" I am in?
Looks to me I ought to define the VIX close uniquely somehow.
3. the calculation I want to do is as follows (not correct per C#):
round((((settle-(((VIX*currentClose)*SQRT((1/252)))*0.382)))/0.25),0)*0.25
Where "VIX" is the VIX Close and the "currentClose" is the current Market I am doing the calculation for (ES in this case).
I could not find anything about "currentClose" in the Ninja User Manual.
Any help is appreciated.
Comment