BreakEven
-
Actual BreakEven management is done this way:
double be_offset=0; if (BEoffsetMode=="pips") {be_offset=toDigits(BEPoffsetPips);} ModifyStops(attrTicket(),attrOpenPrice()+be_offset,attrTakeProfit());Isn't this better, so that the Stop will be set above open price in long trades, and below in short ones?
double be_offset=0; double Modif=0; if (BEoffsetMode=="pips") {be_offset=toDigits(BEPoffsetPips);} if (attrType()==OP_BUY) {Modif=attrOpenPrice()+be_offset;} if (attrType()==OP_SELL) {Modif=attrOpenPrice()-be_offset;} ModifyStops(attrTicket(),Modif,attrTakeProfit());Excellent soft BTW!

-
Yes, of course. Just made it negative for Sell type. Thank you for pointing this and for being able to understand some problem in detail.
-
My pleasure. You did a great job.
