Order Script for MT4

MQL4 Scripts

Trabalho concluído

Tempo de execução 11 dias

Termos de Referência

I need a script that will first calculate the pip distance between the closing price of the previous candle and the price of the previous Moving Average. Once this pip distance is determined it will be used to calculate the Take Profit and Stoploss Multiplier price levels, however for calculating the Risk percentage it should be based on the distance between the current Bid price and the previous moving average price.

Required Script Settings

Risk Percentage 

  • This is where I can set the Risk Percentage that the Script should use.

Set Risk Account Type = (Account Balance / Account Equity)

  • This is where I can set the Account type that the script should use when calculating the Risk Percentage.

Moving Average Period

Moving Average Types:

  • EMA (Exponential Moving Average)
  • SMA (Simple Moving Average)
  • Smoothed
  • Linear Weighted

Moving Average Applied:

  • Applied to MA Close
  • Applied to MA Open
  • Applied to MA High
  • Applied to  MA Low
  • Applied to MA Median Price (HL/2)
  • Applied to MA Typical Price (HLC/3)
  • Applied to MA Weighted Close (HLCC/4)

Set Stoploss Multiplier

  • This is where I can set the amount for the Stoploss Multiplier, so for example if I set it to 1 then the Stoploss should be placed at the same distance that was used for calculating the above pip distance, now if i set the Multiplier is at to 2 then the distance will need to be 2 times that distance size.
  • When calculating the Risk Percentage it should use the distance between the current Bid price and the previous moving average price. 
  • When set to "0" it should disable the function from placing the Stoploss onto the Order. But it should still calculate the risk and place the order by using a default  Stoploss Multiplier of "1".

          Set Take Profit Multiplier 

          • This is where I can set the amount for the Take Profit Multiplier, so for example if I set it to 1 then the Take Profit should be placed at the same distance that was used for calculating the above pip distance, now if i set the Multiplier is at to 2 then the distance will need to be 2 times that distance size.
          • When set to "0" it should disable the function from placing the Take Profit onto the Order.

          Respondido

          1
          Desenvolvedor 1
          Classificação
          (121)
          Projetos
          134
          66%
          Arbitragem
          36
          25% / 56%
          Expirado
          22
          16%
          Livre
          Publicou: 10 códigos
          2
          Desenvolvedor 2
          Classificação
          (312)
          Projetos
          521
          47%
          Arbitragem
          29
          10% / 45%
          Expirado
          139
          27%
          Trabalhando

          Informações sobre o projeto

          Orçamento
          10 - 30 USD
          Prazo
          de 1 para 2 dias