Order Script for MT4

MQL4 Scripts

Tâche terminée

Temps d'exécution 11 jours

Spécifications

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.

          Répondu

          1
          Développeur 1
          Évaluation
          (121)
          Projets
          134
          66%
          Arbitrage
          36
          25% / 56%
          En retard
          22
          16%
          Gratuit
          Publié : 10 codes
          2
          Développeur 2
          Évaluation
          (312)
          Projets
          521
          47%
          Arbitrage
          29
          10% / 45%
          En retard
          139
          27%
          Travail

          Informations sur le projet

          Budget
          10 - 30 USD
          Délais
          de 1 à 2 jour(s)