Job finished
Execution time 11 days
Specification
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.
Responded
1
Rating
Projects
134
66%
Arbitration
36
25%
/
56%
Overdue
22
16%
Free
Published: 10 codes
2
Rating
Projects
521
47%
Arbitration
29
10%
/
45%
Overdue
139
27%
Working
Project information
Budget
10 - 30 USD
Deadline
from 1 to 2 day(s)