Help me please, I need a simple code

 
I am a complete newbie. Can anyone write me the following strategy into Code?

I want to buy if last candle close bullish & current candle falls at least 25% than previous candle body length & then current candle ask price crosses above the last candle close price

I want to sell if last candle close bearish & current candle rises at least 25% of last candle body length & then the current candle bid price crosses below the last candle close price

My stop loss will be 25 pips & take profit will be (last candle high for buy) ( last candle low for sell)

Thank you in advance!! God bless you!! 
 
enamuhoss: I am a complete newbie. Can anyone write me the following strategy into Code?

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)

 
William Roeder #:

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)

Thank you. I did some research and the best I came up with is the following: 

If (close1>close2) & (ask0 >= ((open 1+close 1)*0.0001*0.25))&(ask0>close1)
Order send (op_buy, 35, high 1*0.0001)
If (close1<close2) &(ask0 <= ((open 1+close 1)*0.0001*0.25)&(ask0<close1)
Order send (op_sell, 35, low 1*0.0001)


Need someone to do the fitting and fixing.


Reason: