I use a range chart and change the data series from 3 Range, to 4 Range, to 5 Range based on the VIX, which I enter manually each day. So, if I use a private int VIX and manually enter 12 or less, I want the Range to 3. Between 13 and 18, Range is 4, 18 to 23 Range is 5...any VIX 24 and higher the strategy will not trade.
I have the DO NOT TRADE worked out because it does not matter what the previous Data Range was, the strategy will not need to adjust the current data series, it just does not take trades until I enter a VIX less than 24. Currently I am adjusting the Data Series manually. In sum, I want to only enter the VIX. So, I am looking for something like:
If (Vix< 12) DataSeries=Range.3 (whatever this would be) Else if (Vix>12 & Vix <19) DataSeries=Range.4 (whatever this would be) Else if (Vix>18 & Vix<25) DataSeries=Range.5 (whatever this would be) Else if (Vix> 24) return;
Thanks
Comment