I only made so it buys when price is above all moving averages , and Sells when price is below all moving averages .
If a buy trade and price goes below all moving averages it closes buy position and opens a sell position .
If a sell trade and price goes above all moving averages it closes Sell position and opens a buy position