cesarx2
17th October 2009, 10:34 AM
Hi David, me again :-)
I am studying the Vitamin-C user guide. I coded the very first stop function (TimeStop). It should give only "1" value bars for entry and exit in MS. But strangely it's returning also "2". Please find the chart image attached. Blue bars are entry, red ones are exit.
Also, I tried to use dprintf insode the loop for debugging this issue, but it did not print anything. I use it this way:
dprintf("Date=%d, ExitTrigger=%d\n",GetDate(i), Result[i]);
OTHER ISSUES
I'd listed some other issues for your backlog:
1) I tried to use scripts from other folder (as stated in the user guide), not contained in Vitamin-C (VC) folder ("C:\MetaStock Scripts\MSVC\Simple.c"), with the full path being explicitly defined in MS indicator call. VC tries to open as "C:\VitaminCScript\C:\MetaStock Scripts\MSVC\Simple.c".
2) The Save functionality is behaving as Save As in the VC editor. It always ask the filename and also a overwrite confirmation.
3) I think it would help some new users if you stated in the user guide that, when copying code to VC editor, some unprintable characters maybe copied causing runtime errors. It did occur to me when copying NewModifiedAverage()
I am studying the Vitamin-C user guide. I coded the very first stop function (TimeStop). It should give only "1" value bars for entry and exit in MS. But strangely it's returning also "2". Please find the chart image attached. Blue bars are entry, red ones are exit.
Also, I tried to use dprintf insode the loop for debugging this issue, but it did not print anything. I use it this way:
dprintf("Date=%d, ExitTrigger=%d\n",GetDate(i), Result[i]);
OTHER ISSUES
I'd listed some other issues for your backlog:
1) I tried to use scripts from other folder (as stated in the user guide), not contained in Vitamin-C (VC) folder ("C:\MetaStock Scripts\MSVC\Simple.c"), with the full path being explicitly defined in MS indicator call. VC tries to open as "C:\VitaminCScript\C:\MetaStock Scripts\MSVC\Simple.c".
2) The Save functionality is behaving as Save As in the VC editor. It always ask the filename and also a overwrite confirmation.
3) I think it would help some new users if you stated in the user guide that, when copying code to VC editor, some unprintable characters maybe copied causing runtime errors. It did occur to me when copying NewModifiedAverage()