# Determining the Broker's Minimum Stop Loss level?

1316

The subject pretty well says it. How can I ascertain what a Broker's Minimum Stop Loss level is for any particular currency pair?

Thanks for any and all assistance.

461

FourX:

The subject pretty well says it. How can I ascertain what a Broker's Minimum Stop Loss level is for any particular currency pair?

Thanks for any and all assistance.

MarketInfo will tell you this and much more!

1316

MarketInfo will tell you this and much more!

I see that #14 is the MODE_STOPLEVEL

, But is that the current SL that has been placed on an active trade?

,, Or is it the minimum SL on specific pairs with the broker?

From the wording, it would seem to be the broker's minimum SL, But looking for clarification and confirmation.

461

FourX:

I see that #14 is the MODE_STOPLEVEL

, But is that the current SL that has been placed on an active trade?

,, Or is it the minimum SL on specific pairs with the broker?

From the wording, it would seem to be the broker's minimum SL, But looking for clarification and confirmation.

Here you find a good explanation: https://book.mql4.com/appendix/limits

(I take a look now to my pm :-) )

1316

Here you find a good explanation: https://book.mql4.com/appendix/limits

Thanks again EA (< 8)
20210

```            /* A TP or SL can be not closer to the order price (open, limit, or
* stop) or closing price (filled order) than this amount. A pending
* order price can be no closer to the current price than this
* amount. On IBFX it's equal to 30 (3.0 pips.) */          double
minGapStop  = MathMax( MarketInfo(Symbol(), MODE_STOPLEVEL)*Point
, 2*pips2dbl ), // Tester started returning 0!
double  SLmax   = now.close -DIR* minGapStop;
if ((oo.SL-SLorig)*DIR >= Point         // Wants to move SL?
&&  (oo.SL-SLmax)*DIR > 0){                     // Above max?
oo.SL = SLmax;                              // Can't.
```
6

guy, i need help

how to i program Account Profit as stop loss level

i only i trade at any one time.

once account profit reach \$10, the stoploss level is \$1, meaning position close when account profit drop to \$9.

if account profit go to\$11, then stoploss level is \$10

regards

2178

my6127:

guy, i need help

how to i program Account Profit as stop loss level

i only i trade at any one time.

once account profit reach \$10, the stoploss level is \$1, meaning position close when account profit drop to \$9.

if account profit go to\$11, then stoploss level is \$10

regards

That's what we called a "trailing stop". Try googling around "that word".

Moderator
20380

my6127:

guy, i need help

how to i program Account Profit as stop loss level

i only i trade at any one time.

once account profit reach \$10, the stoploss level is \$1, meaning position close when account profit drop to \$9.

if account profit go to\$11, then stoploss level is \$10

regards

6

Keith Watford:

This is the best i can get from google;

double CurrentProfit = AccountProfit();

double HighestProfit;

double StopLossLevel = HighestProfit - 10;

if (CurrentProfit > HighestProfit)

HighestProfit = CurrentProfit;

i have not idea how to construct them into my existing EA. How to write the algorithm to form a OrderClose?

Moderator
20380

my6127:

This is the best i can get from google;

double CurrentProfit = AccountProfit();

double HighestProfit;

double StopLossLevel = HighestProfit - 10;

if (CurrentProfit > HighestProfit)

HighestProfit = CurrentProfit;

i have not idea how to construct them into my existing EA. How to write the algorithm to form a OrderClose?

I find it unbelievable that you actually quote me

Keith Watford: