Determining the Broker's Minimum Stop Loss level?

 

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.

 
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!

https://docs.mql4.com/common/MarketInfo

 
EADeveloper:


MarketInfo will tell you this and much more!

https://docs.mql4.com/common/MarketInfo

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.

(Did you get my PM about your trading documentation AP?)

 
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.

(Did you get my PM about your trading documentation AP?)



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

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

 
EADeveloper:


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

Thanks again EA (< 8)
 
            /* 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.
 

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

 
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".

 
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

Do not double post, I have removed your topic as you have had a reply here.

 
Keith Watford:

Do not double post, I have removed your topic as you have had a reply here.

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? 


 
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:

Do not double post, I have removed your topic as you have had a reply here.


and following that quote, you double post again.

I have deleted your other post.

This is your last warning. Double post again and you will receive a ban.

Reason: