I have in all my strategies this code:
else if ((Closes[2][0] > 20.00) && (Closes[2][0] <= 30.00))
{
- Set parametres to values depending on VIX last session close value.
}
As far as I debugged my strategies I checked that Closes[2][0] (ViX last session close value) has two decimals. For that reason I compare in the "if" sentence using 20.00 and 30.00.
However, when usign real time, parameters are set not considering those decimals. For example, on Friday vix close at 20.97, meaning that on Monday parameters should had been set using 20.00-30.00 range but they did not. They use vix < 20.00 parameters.
Is there any way to ensure that strategies compare using that two decimals??
Thanks in advance,
Fernando
Comment