Hi,
I have find couple month ago this experts that help me to close partial lots or minilots, I had some modify but it's great it's have trailing and breakeven
It's a faster machine and work so good more faster than my finger...
But If i open a position with 0.6 Lots, or 6 minilots or 60 microlots is the same...and then i want to close like the 40 % at 1 tartget of profit how i can do that ?
I open a 6 minilots position = 60 microlots i want that close 24 micro , but at moment it's close or 20 micro or 30 micro....
I work with 5 digit broker with micro,mini and lots
thanks for help
the code is not longer, i think this is the part where i use % and decide lots to close
I have find couple month ago this experts that help me to close partial lots or minilots, I had some modify but it's great it's have trailing and breakeven
It's a faster machine and work so good more faster than my finger...
But If i open a position with 0.6 Lots, or 6 minilots or 60 microlots is the same...and then i want to close like the 40 % at 1 tartget of profit how i can do that ?
I open a 6 minilots position = 60 microlots i want that close 24 micro , but at moment it's close or 20 micro or 30 micro....
I work with 5 digit broker with micro,mini and lots
thanks for help
the code is not longer, i think this is the part where i use % and decide lots to close
Inserted Code
double lots; if(tplevel == TP1) lots = NormalizeDouble(orderlots*TakeProfit1Percent/100,1); if(tplevel == TP2) lots = NormalizeDouble(orderlots*TakeProfit2Percent/(100-TakeProfit1Percent),1); if (lots > 9.9) lots = NormalizeDouble(lots,0); // do not use fractional lots above 9.9, round to nearest whole lot if (lots < 0.01) lots = 0.01; // this EA transaction limit if (lots > maxbrokerlots) lots = maxbrokerlots; // broker server transaction limit return(lots);
Attached File(s)