Can anyone help me with this error. "Compilation errors 'BuyOrSell' - constant expected 'BuyOrSell' - constant expected.
-
I am using one of the examples for the 3 moving averages and when I clicked on Ex4 to compile it that is what I get.
-
@glen-mckinnie Can you share your project please?
-
Ok let me see if I can add it.0_1573862534411_3 9 50 ema.mq4
-

-
@glen-mckinnie ^Well, I can import your mq4 file in my project and compile without errors. Maybe try to do the same?!
-
@trader-philipps Ok maybe I am doing something wrong. When I click on the Mq4 file and compile it I get this....

-
@trader-philipps If you can compile it with no errors can you send me the Ex4 and mq4 file with no errors that you compiled?
-
@glen-mckinnie Try to compile directly from fxdreema, the ex4 button.
-
@cpxiom I did thats when I get the first picture I posted with the 2 buyorsell constant errors expected
-
This is what it is asking me for when I compile it.. I dont know what goes in there

-
@glen-mckinnie Just add BuyOrSell in the name field, and click update. If it is interger add "int" instead of double. Uppercase lowercase is important, as far as I know.
-
@cpxiom Ok I put BuyOrSell in the name field and changed to int and it is still showing same error
-
@trader-philipps Im wondering if it may be because I am not a paid Member..
-
@glen-mckinnie Okay, I did export only. Checked the source code again.

Unckeck the 2 backtesting if you use a variable as input. You may use a constant instead in order to have variable values with MT4 optimization.