Hi There,
I have been looking for code, I have been trying to code a 2 Moving Average as part of my trading system.
50 Period Moving Average
200 Period Moving Average
when the 50 MA has crossed over on top of the 200 MA, then my trading system will only take buy/long Trades
and when the 200MA has crossed over on top of the 50, then the trading system will only take Sell/Short Trades
I am trying to eliminate, the trading system from going against the trend and only taking Buy/Long trades when the market is on the up and Short/Sell trades when the Market is moving down.
I would like to attach this code into an existing trading system.