Conditions: If previous 1 minute candle close is higher than the current 1 minute candle opening then buy 1 lots of XAUUSD. If previous 1 minute candle close is lower than the current 1 minute candle opening then sell 1 lots of XAUUSD. If previous 1 minute candle close is higher than the current 1 minute candle opening by at least 10 USD then sell 1 lots of XAUUSD. If previous 1 minute candle high is higher than the current 1 minute candle opening by at least -10 USD then buy 1 lots of XAUUSD, if not, sell 1 lots of XAUUSD Closing Position: Program will open positions for each candle. Positions needs to be closed at the end of 1m candle time frame.