You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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