Order Script for MT4

MQL4 スクリプト

仕事が完了した

実行時間11 日

指定

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.

          応答済み

          1
          開発者 1
          評価
          (121)
          プロジェクト
          134
          66%
          仲裁
          36
          25% / 56%
          期限切れ
          22
          16%
          パブリッシュした人: 10 codes
          2
          開発者 2
          評価
          (312)
          プロジェクト
          521
          47%
          仲裁
          29
          10% / 45%
          期限切れ
          139
          27%
          仕事中

          プロジェクト情報

          予算
          10 - 30 USD
          締め切り
          最低 1 最高 2 日