Trailing Stops with MA crossover

 

How would you program this in your Zero Code to include a condition where there was a crossover in the past, the move continued and is now retreating and the trailing stop will close the position? I know there is a close feature but I am not sure how to program the trailing stop into the program?

Dave77

 

Never mind my last message. I see it is automatically included in the zero code compiler.

I do have a better question to ask: On the close part setup of the zero code compiler, how would you put a close of RSI(14)50 (Sell position). I am using a moving average envelope (High & Low) and a third moving average as a trigger to buy and sell. The problem I am incurring is reversal direction spikes. A simple stop loss does not solve all the conditions, or it closes the position too early.

Dave77

 

Sorry dave, you cannot set close logics individually in Beta1. I know, this should be added in the next beta--now i'm still listenning to users experience of ZeroCode.

 

hello every one ...I'm new here..thaks for your efforts..this site is amazing!!

Reason: