You place the stop where it needs to be - where the reason for the trade is
no longer valid. E.g. trading a support bounce the stop goes below the
support.
Account Balance * percent/100 = RISK = OrderLots * (|OrderOpenPrice -
OrderStopLoss| * DeltaPerLot
+ CommissionPerLot) (Note OOP-OSL includes the SPREAD, and DeltaPerLot is
usually around $10/pip)
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
sorry i hope its in here
Thanks for all the effort. But it still not working.. only when set fixed lots..
Argghh getting crazy :P
Thanks for all the effort. But it still not working.. only when set fixed lots..
Argghh getting crazy :P
where in getpip() function.
OrderSelect(cc, SELECT_BY_POS, MODE_HISTORY);
:
if (OrderSymbol() == symbol && OrderCloseTime() == 0)
:
if (last_ticket==0) {
last_ticket = OrderTicket();
tickvalue = MarketInfo(Symbol(),MODE_TICKVALUE);
pipvaluefor1lot = lotsize*tickvalue*pip;
maxLot = NormalizeDouble(AccountFreeMargin()*Risk/100/pipvaluefor1lot/SL,2);
Thanks for all the input.
Going to work with it. Can take a while for me :P
Will let u know
This topic is was unreadable with all these source code.
I made some cleaning.