Compilation Errors HELP!
-
Greetings FXDreema community!!!
Am trying to compile my EA but instead of compile i recive an error window that says "Compilation Errors": stop_loss - constant expected.
My EA saves in a variable the value of a candle high or low to be use as a Stop Loss on each trade.
Can anyone tell me what am i doing wrong please?
Here the link of the project: fxdreema/shared/w6nLHBNWc
PD: Excuse my english...
Thank you!!!! -
@lopezdiaz2510 said in Compilation Errors HELP!:
w6nLHBNWc
Heres the correct project shared link: https://fxdreema.com/shared/w6nLHBNWc
-
@lopezdiaz2510
If you have a variable input, you cannot use that checkmark thing.
Also, I think Pips is not the correct input mode here, as your stop_loss variable is candle low - a level value - choose Custom (level) instead.

-
Thank you so much @roar!!
It worked such as you said.
Problem solved, and thanks for the others advice i'll keep in mind. -
If anyone else has this problem: I found where the error was by exporting the mq4 file and searching through the code for the erroneous character. It was in an int constant, couldn't be seen in the web UI, but erased value, retyped it and was all ok after that.
-
@learningfx Thank you for sharing that info.