[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

demand for a simple 3 line MA system



PureBytes Links

Trading Reference Links

Hello,

would someone show me the code for a simple 3 line MA crossover system?
I'm struggling with the following conditions to code:

if the middle moving average crosses above the slow, I want to buy.
if marketposition = 1 and the fast crosses below I want to sell.
if the fast crosses again above the middle MA I want to reenter ( if the
middle is still above the slow).

thanks for any help or examples
Jim