Compilation Errors when exporting to ex4 file
-
Hello
I'm trying to create a simple EA to assist with a semi automated trading strategy.For the EA, I set buys or sells only in MT4.
If its I set MT4 to buys only when the lower price band is crossed a buy is placed
If MT4 is set for sells only then when the upper price band is crossed a sell is placed.I will manually set input the upper and lower price bands manually as constants.
There are also constants for TP, SL, Trailing step and Trailing stop which I have used in the various blocks. When I try to export it to an EX4 file I get the below compiling errors
Please could someone help me workout what is causing the errors?
When I try t

Thanks!
-
I fixed this, I just needed to take out the trailing stop and trailing step as constants and then the EX4 generated.
-
You can use this, itn is int, struct member undefined means you have a misspelt constant, pips should be a double, and c semicolon expected means you had something written in a box that shouldn't be there.