#include function

 

Hi, I wrote the attached file to calculate the number of lots.

I save the file in "Include" folder, with .mq4 extension.

Then I wrote #include <Lot Size.mq4> in the destination file.

If i Write

int start()
{
LotSize_Long();
LotSize_Short();
}

there is no problem in the attached file, but in the destination file when I compile I obtain the following error: 'start' - function already defined and has a body.

If I delete the above script in the include file, I obtain the following error: Start function not found and cannot be run.

How can I proceed? Thank you!

Alberto

Files:
lotusize.mq4  3 kb
 
Reason: