PureBytes Links
Trading Reference Links
|
Hi!
I have a system that has a few indicators. I want to code this in
amibroker.
I want a buy signal when all of the indicators acts in a specific way.
When one of my indicators acts the way i like a variabel is set
to "true" (or 1), when all of these are true, i want the buy signal.
So when a,b,c, or d are == 1 then give buy signal.
Is this done like this with nested if-statements?
if (a == 1){
if (b == 1){
if (c == 1){
if (d == 1){
BUY-SIGNAL
}
}
}
}
Thanks!
|