Error Function Descriptive Text - Output Issues

AmiBroker 6.28

Hi,

When I use "&" in the text section of the Error Function I've noticed (depending on where the ampersand is located in the text section) AmiBroker either adds ";" to the message output

AB%20Error%20Text%20Output

or with this test code;

if (Status("action") == actionBacktest OR Status("action") == actionExplore) Error("Make sure Pad & Align"); // Test

returns this ouput;

AB%20Error%20Text%20Output%20(2)

Should "&" not be used or is something wrong?

Thank-you.

@TrendSurfer you need to escape "&" character. Try this:

if (Status("action") == actionBacktest OR Status("action") == actionExplore) Error("Make sure Pad & Align is checked in Automatic Analysis Settings"); // Test

Err

4 Likes

@Milosz, thanks for you quick and detailed response - appreciate it. :slightly_smiling_face:

1 Like