작업 종료됨
명시
This indicator shows the risk exposure per pair and in total, by calculating the risk value of all the open positions that have stop loss orders, so I can clearly see the value being risked in $ and % of balance amount (e.g., $1,000) that I should input in the properties window of this indicator.
The indicator logic is as follows:
If position is in profit = current price of pair - stop loss of this position
if position is in loss or no profit = order execution price - stop loss of this position
Obviously, you need to differentiate between buy and sell order in your source code to account for the sign.
You need to loop over all open positions for each pair (not limit orders) and sum the total risk amount for each pair and all pairs (i.e., total)
On the chart window bottom left corner, you should display the total risk in USD and % for the current pair and total risk for all pairs in USD and %
This must be an indicator not EA.
Font should be black and font size is 14. This indicator should be a replica of the following "Risk Exposure" indicator on this website:
https://the5ers.com/downloads/
Please watch the indicator video before you apply.
In the input menu, I should have the following inputs to change:
Font size and color
Location of display on chart window (upper left corner, upper right corner, lower left corner, lower right corner)
The balance that I will input (e.g., $1,000) of which the % open risk will be calculated from and displayed next to the dollar amount.
The indicator should remember my last inputs
You should walk me through the source code before project completion. I have experience in programming (Python, MATLAB...) but haven't used MQL editor before.
Looking forward to working with you.