|
Trading Software
2010-05-27 08:38:48
|
|
Hi,
I want to get the minimum close value of a position in the OnEndPeriod event.
I think this can be done by something like
double maxClose = pos.GetValueFromFormula("mc = SEARCHFOR __?__ " pos.BarsSinceEntry ") ","mc") ;
1. Could you please advise on how I can achieve this.
2. Furthermore the documentation for MMDrivers shows there is a Max and Min function,
however when I try to use these in the script, I get an error message saying they are undefined. If these function exists,
could I use these instead?
3. How would you go about debugging these scripts. I.e. can you trace the scripts as they run,
print out debug messages somewhere, or execute sub sections of the script etc.
I understand there is a Divers.Output function, but where does the output go?
cheers.
|
|