Issues with the script OptionsSimulate.c

Posted By: behr065

Issues with the script OptionsSimulate.c - 08/10/18 23:22

Hi,

I was trying to test the script from Financial Hacker options post to simulate the options history pricing, but when I try to run the script, I get this error:

OptionsSimulate compiling.............
Error in 'line 55:
'i' undeclared identifier
< for(i = 0; i < 2; i++)
>.

I don't think I've to declare 'i' since it's done in the for loop, but I'm not an expert in C, so maybe someone can help me out.

Thanks.
Posted By: AndrewAMD

Re: Issues with the script OptionsSimulate.c - 08/11/18 00:24

There is a tutorial for learning Lite-C in the manual. You should make your way through it - it will save you much learning pain.

And you must declare i. laugh

The code snippets from the blog might sometimes have errors, but jcl usually fixes it in the downloadable code repositories.
Posted By: behr065

Re: Issues with the script OptionsSimulate.c - 08/11/18 15:22

Thanks a lot, as you said I had to declare i.
© 2024 lite-C Forums