[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 380
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
This is not a parameter. Why don't you use the function to determine the position of the button or just look at the tops, without going into details?
I rather don't feel comfortable using just a function from a third-party library to create a free indicator/script. If I don't need the library registration, then maybe it's still useful to me!
However, I have found the code I need, and in an absolutely unexpected place, where I would never have thought to look... good luck)))
I'll check it and post it, maybe someone else will need it.
I am wondering if it is possible to use iCustom without explicitly specifying the indicator parameters, but for it to calculate with the default values set in that indicator?
Yes. Without specifying parameters it will work with the default parameters of the indicator. Only from the EA there will be no possibility to change the parameters, which you will bitterly regret when optimising.
Dear Ladies and Gentlemen, could you tell me how to set the time in the mt4 terminal to Greenwich? If there is any information it would be appreciated if someone would advise how to do the same in the terminal Metastock 2.0 (broker FXCM)
There's no such thing.
I don't have that option.
Please help. I am studying the MQL4 programming language. I have an idea to write a script to close all market and pending orders. I suppose this script has already been written but I have not only write it for my own use but also as a part of some training. I have written it but it behaves very strangely. It closes only odd orders in one order regardless of its type, be it market or pending. I understand if it would close nothing at all. However, I have puzzled over the logic error here for a long time, but still do not understand it. Here is the program code:
//+------------------------------------------------------------------+
//| close orders.mq4 |
//| Copyright © 2010, MetaQuotes Software Corp.
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2010, MetaQuotes Software Corp.
#property link "http://www.metaquotes.net"
#property copyright "Stanislav Mishutkin"
#property link "http://www.stas223@mail.ru"
//+------------------------------------------------------------------+
//| script program start function |
//+------------------------------------------------------------------+
int start()
{
int Tip=-1;
for(int i=0; i<=OrdersTotal(); i=i+1)
{
if (OrderSelect(i,SELECT_BY_POS)==true)
{
Tip=OrderType();
int Ticket=OrderTicket();
double Lot=OrderLots();
if (Tip<=1)
{
switch(Tip)
{
case 0: double Price_Cls=Bid;
break;
case 1: Price_Cls=Ask;
break;
}
OrderClose(Ticket,Lot,Price_Cls,10);
}
else
{
OrderDelete(Ticket);
}
}
}
if (Tip==-1)
{
Alert(" no market orders");
}
Alert("the script has stopped working");
//----
//----
return(0);
}
//+------------------------------------------------------------------+
Can you tell me what's wrong?
Please help. I am studying the MQL4 programming language. I have an idea to write a script to close all market and pending orders. I suppose this script has already been written but I have not only write it for my own use but also as a part of some training. I wrote it but it behaves very strangely. It closes only odd orders in one order regardless of its type, be it market or pending. I understand if it would close nothing at all. However, I have puzzled over the logic error here for a long time, but still do not understand it. Here is the programming code:
Can you tell me what's wrong?
Do the cycle in reverse
Fartowiy 11.05.2011 10:58
Hi all !!! I wonder who can skype the AO and MAGD indicator for determining the divergence. I would be grateful to you in advance.
these indices are part of standard set of MT4. search for them there...
i can use them to detect a divergence yourself....
If you think that the indicator detects divergences itself, i don't know whether you are looking for them or not.
Hi all !!! Who can send us the AO's and MAGD's icons for detecting devirgence. Thank you very much.