Hallo,
i have the source code of a script called riskpercentage. It calculates the risk between two lines at the chart in percent of the accountbalance.
I need the option to set two take profits (only edit in the script, no objectlines to move in the chart) :
- the distance to both take profits, that i can edit in the script, have to be in R (1R = Distance between opening Price and stop)
for example : first target 0,8 R, second target 3 R
- i need the possibility to edit in percent how much of the position will be closed at the take profits :
for example: I have a positon of 0,27 (27 microlots) an i want to close 30% of them at the first take profit (= 8) an the rest (19) at the second take profit.
Best regards
Marcel