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!
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?)
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 :-) )
/* 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
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".
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.
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?
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.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
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.