Since there are no slaves here, you have only three choices: Search for it, learntocode it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt and the nature of your problem.
WHRoeder: Since there are no slaves here, you have only three choices: Search for it, learntocode it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt and the nature of your problem.
The comment is for your debugging. For indicators I suggest using this instead:
//{Log// send information to OutputDebugString() to be viewed and logged by// SysInternal's DebugView (free download from microsoft) This is ideal for// debugging as an alternative to Print(). The function will take up to 10// stringa (or numeric) arguments to be concatenated into one debug message.//}
#import "kernel32.dll"void OutputDebugStringA(string msg);
#import
void Log(string s1, string s2="", string s3="", string s4="", string s5="",
string s6="", string s7="", string s8="", string s9="", string s10=""){
if(IsDllsAllowed()){
stringout = WindowExpertName() +": "
+s1 +s2 +s3 +s4 +s5 +s6 +s7 +s8 +s9 +s10;
OutputDebugStringA(out);
} }
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
But you still don't need to use RefreshRates(), Bid and Ask are never going to be out of date in that code.
Thank you so much.... It is really a big help for me...
I would like to ask if the formula that i used to compute the average of spread per tick is:
Average=(Ask-Bid)/Tick
Why not just use a EMA
Not tested, not compiled
Not tested, not compiledWhy not just use a EMA
Not tested, not compiled
Not tested, not compiledThank you for your reply i hope you can help me also on how to apply it on an indicator. can you lend me some codes?
tnx...
Since there are no slaves here, you have only three choices: Search for it, learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt and the nature of your problem.
// IndicatorDigits(0);Don't complicate things until you get it working.// MessageBox(DoubleToStr(Bars-counted_bars,0));Indicators can NOT waitSpreadBuffer[i]=spreadAve; MaxBuffer[i]=spreadMax; MinBuffer[i]=spreadMin;SpreadBuffer is no draw? you meant AveBufferHi guys.How can i find MAX spread that Alpari uses on every currency pairs? I wanna modify my orders and i need to know
max spread .Of course there is a link in myalpari that min spreads have been written.But min spreads aren't important.How can i find that?
Hi guys.How can i find MAX spread that Alpari uses on every currency pairs? I wanna modify my orders and i need to know
max spread .Of course there is a link in myalpari that min spreads have been written.But min spreads aren't important.How can i find that?
Why do you use the variable "int ticks;" and not the default variable "ticks =MarketInfo(Symbol(),MODE_TICKVALUE);" to get the average spread?
Why do you use the variable "int ticks;" and not the default variable "ticks =MarketInfo(Symbol(),MODE_TICKVALUE);" to get the average spread?
This topic is over 7 years old, so I should hope that he has it sorted by now.
int ticks is used to count the number of ticks so TICKVALUE would be no use.