Posted By: Sundance
Stupid question .. - 04/02/14 20:13
After some month I'am trying to program a strategy on my own.
Within the run routine I want for debugging to printf a variable. But the only value I get is 0.000 .
I'am surely doing a stupid failure but after two days of searching I need help :-)
Here is a simple testcode:
// Simple Test to output a value
function run()
{
BarPeriod = 15;
LookBack = 150;
StartDate = 20130401;
EndDate = 20130531;
asset("EUR/USD");
vars Price = series(price());
printf("%.5f", Price[0]);
quit();
return;
}
The output is only 0.00000. Why can't I see the price value?
thanks in advance for answering
Sundance
Within the run routine I want for debugging to printf a variable. But the only value I get is 0.000 .
I'am surely doing a stupid failure but after two days of searching I need help :-)
Here is a simple testcode:
// Simple Test to output a value
function run()
{
BarPeriod = 15;
LookBack = 150;
StartDate = 20130401;
EndDate = 20130531;
asset("EUR/USD");
vars Price = series(price());
printf("%.5f", Price[0]);
quit();
return;
}
The output is only 0.00000. Why can't I see the price value?
thanks in advance for answering
Sundance