Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I have two systems with their own entries and exits. For example:
System A:
Buy = (RSI(14) < 30 and MA(C,25) > MA(C, 200));
Sell = MA(C,25) < MA(C,200);
System B:
Buy = (ADX(14) > 30 and C > MA(C,200));
Sell = ADX(14) <20;
In want to combine them to one system. That means that each exit should be linked to the specific entry. Code should be something like:
Buy = (RSI(14) < 30 and MA(C,25) > MA(C,200)) OR (ADX(14) < 30 and C> MA(C,200));
Sell = IF Buy A then Sell A else Sell B
Can someone give me correct code for the Sell for the example above?
Thanks in advance.
Regards,
vairam