I am using Amibroker and want to compare some conditions and execute some if the condition is true or execute some other if condition is false.
If
in Amibroker works differently. I want to compare simple condition like 100 Moving Average is greater than 200 Moving Average, how do I do this?
I tried:
condition = MA(C, 100) > MA(C, 200);
if (condition) {
// This results in error
}
Official docs say you can’t use array in if
block so how do I check the above condition?