Determining the Broker's Minimum Stop Loss level?

To add comments, please log in or register
FourX
1316
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.

rv
461
rv  
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

FourX
1316
FourX  
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?)

rv
461
rv  
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 :-) )

FourX
1316
FourX  
EADeveloper:


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

Thanks again EA (< 8)
William Roeder
20210
William Roeder  
            /* 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.
my6127
6
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

Ahmad Zuhairdi Noh
2178
Ahmad Zuhairdi Noh  
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".

Keith Watford
Moderator
20380
Keith Watford  
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.

my6127
6
my6127  
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? 


Keith Watford
Moderator
20380
Keith Watford  
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.

To add comments, please log in or register