Most brokers with variable spread widen considerably at end of day (5 PM ET) ± 30 minutes. My GBPJPY (OANDA) shows average spread = 26 points, but average maximum spread = 134. The charts show Bid prices only. Turn on the Ask line to see how big the spread is, Tools → Options (control+O) → charts → Show ask line.
William Roeder: You have to remember it
yourself. I use a power mean to get the average ten (10) day maximum. Most brokers with variable spread widen considerably at end of day
(5 PM ET) ± 30 minutes. My GBPJPY (OANDA) shows average spread = 26 points, but average maximum spread = 134.
The charts show Bid prices only. Turn on the Ask line to see how big the spread is, Tools → Options (control+O) → charts → Show ask
line.
Thank you, William.
Tools → Options (control+O) → charts → Show ask line.
I tried it, but I didn't understand what is the difference between show ask line or not.
voidOnStart()
{
int x = 1000;
MqlRates rates[];
int copied=CopyRates(NULL,0,0,x,rates);
int spread[];
for(int i=0;i<ArraySize(rates);i++) { ArrayResize(spread,ArraySize(spread)+1); spread[i] = rates[i].spread; }
printf("*** Max spread : %g / Min spread : %g on the last %g bars",spread[ArrayMaximum(spread,0,WHOLE_ARRAY)],spread[ArrayMinimum(spread,0,WHOLE_ARRAY)],x);
}
mqlspread (EURUSD,W1) *** Max spread : 50 / Min spread : 0 on the last 1000 bars
This indicator is ideal for scalpers who need to know the biggest spread possible with his broker. This will limit his stop-loss. Stop-loss should be higher than the biggest spread to minimize stop-hunt and slippage issues. Included lowest spread.
Do you know any method to find out the biggest spread at the past in MT4?
I will move this topic to the MQL4 and MT4 section.
In future please post in the correct section.
https://docs.mql4.com/constants/structures/mqlrates
Was doubting about mt4, but here it is. It's possible to retrieve the higher spread on a pre-defined interval by using mqlrates :
... then all you have to do is to start a for-loop on rates[x].spread ...
edit : you may also try with arraymax ... maybe by coping it into the array or something like that - i don't remember exactly how i did it
Thank you so much, Icham.
I don't know code so much recently.
Do you know any easier way for a beginner?
Best regards,
Sky
I will move this topic to the MQL4 and MT4 section.
In future please post in the correct section.
Thank you, Keith.
Actually, I might need it in both of them 4 and 5.
Best regards,
Sky
Most brokers with variable spread widen considerably at end of day (5 PM ET) ± 30 minutes. My GBPJPY (OANDA) shows average spread = 26 points, but average maximum spread = 134. The charts show Bid prices only. Turn on the Ask line to see how big the spread is, Tools → Options (control+O) → charts → Show ask line.
You have to remember it yourself. I use a power mean to get the average ten (10) day maximum.
Most brokers with variable spread widen considerably at end of day (5 PM ET) ± 30 minutes. My GBPJPY (OANDA) shows average spread = 26 points, but average maximum spread = 134. The charts show Bid prices only. Turn on the Ask line to see how big the spread is, Tools → Options (control+O) → charts → Show ask line.
Thank you, William.
Tools → Options (control+O) → charts → Show ask line.
I tried it, but I didn't understand what is the difference between show ask line or not.
Could you explain any more detail?
Best regards,
Sky
Thank you so much, Icham.
I don't know code so much recently.
Do you know any easier way for a beginner?
Best regards,
Sky
yes wait few minutes
yes wait few minutes
Thank you for take you time, Icham.
Thank you so much, Icham.
I don't know code so much recently.
Do you know any easier way for a beginner?
Best regards,
Sky
Thank you so much, Icham.