MQL4 code for opening a trade depending on the previous bar

 
I am new to MQL4 trading, I am trying to code a system that if; AUDUSD 1 hour timeframe at 08:00 the candle was a green and I want the system to open a trade at 10:00 that shorts, how do I go around this? And if at 10:00 it's still bullish, I want to place another trade at 12:00 that shorts. If the system works at 10:00 I want to stop and take profits. 
 
Jones John: how do I go around this?

You haven't stated a problem, you stated a want.
     How To Ask Questions The Smart Way. (2004)
          Prune pointless queries.

You have only four choices:

  1. Search for it (CodeBase or Market). Do you expect us to do your research for you?

  2. Beg at:

  3. MT4: Learn to code it.
    MT5: Begin learning to code it.

    If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into your code.

  4. or pay (Freelance) someone to code it. Top of every page is the link Freelance.
              Hiring to write script - General - MQL5 programming forum (2019)

We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using CODE button) and state the nature of your problem.
          No free help (2017)