Creamers
04-12-2007, 07:23 AM
What's wrong with this?: It plots nothing as soon as I use those double values.
double slobenow=(EMA(MyInput0)[0])-(EMA(MyInput0)[1]);
double slobe=(EMA(MyInput0)[1])-(EMA(MyInput0)[2]);
if (slobe<0) { slobe=slobe*-1; }
if (slobenow<0) { slobenow=slobenow*-1; }
if (slobe > slobenow )
{
Plot0.Set(1);
}
else
{
Plot0.Set(-1);
}
double slobenow=(EMA(MyInput0)[0])-(EMA(MyInput0)[1]);
double slobe=(EMA(MyInput0)[1])-(EMA(MyInput0)[2]);
if (slobe<0) { slobe=slobe*-1; }
if (slobenow<0) { slobenow=slobenow*-1; }
if (slobe > slobenow )
{
Plot0.Set(1);
}
else
{
Plot0.Set(-1);
}