I searched through the forum for others who had the same problem.
I found one topic discussing this issue.
The solution provided there was to put a "Begin" before the last "End."
viewtopic.php?f=9&t=1676&p=3370&hilit=Expected+BEGIN+but+received+END#p3370I tried that. The error disappeared and the script compiled.
However, the DemoStrategy.dll file caused Forex Tester 3 (FT3) to crash during program opening.
I then removed "TechnicalFunctions" from the script, recompiled and tried to use the resulting .dll file in FT3. It worked. No crash.
Then I removed the "Begin" before the last "End." in the script, recompiled and tried to use the resulting .dll file in FT3. It again worked. No crash.
So, my conclusions are:
1. the error "Expected BEGIN but received END at line 33 (33:1)" can probably be ignored. Alternatively add the "Begin" before the last "End." to get rid of the error message. Either way the program compiles and can be read by FT3.
2. the use of the 5/17/2010 versions of "TechnicalFunctions.pas" and "IndicatorInterfaceUnit.pas" can be used in TurboDelphi to obtain a compiled .dll file. However, the .dll file with these .pas tools cause FT3 to crash.
Questions:
1. What are the newest versions of the "TechnicalFunctions.pas" and "IndicatorInterfaceUnit.pas" files?
2. Where can I get them?