Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 541
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
Maybe someone has such an advisor.
1. opens two different buy and sell orders simultaneously
2. when one of them closes on profit . it opens two different buy and sell orders again, etc.
If you do not have to do anything with losing orders, it seems to be quite simple . maybe somebody will be able to write it for you? i would be very grateful to you!
Hi! I'm mastering mql4, I used to code simple things, then gave up for a long time, now I'm working on it again from scratch.
1) I see the language has been updated a bit, but the tutorial is still old, is there a tutorial for the updated language?
2) Is it a language with mql5?
3) Is it worth learning from the mt5 tutorial?
4) MT5 has been around for a very long time and everyone writes how great it is, but why, the docs don't practically use it, what is the reason?
5) I want to trade a portfolio of robots, is it possible to get statistics separately for each one in mt4?
6) Is it realistic to get a synthetic tool in real time and trade on it?
7) Tell me if there are any advantages with the fifth sign? (just haven't traded in a very long time). As I understand it, none, because volatility gets lower, consequently the spread level gets the same?
8) Please give me the code for getting the average volatility for an instrument? I fill my array with the expression High[i] - Low[i], but then the average value cannot be calculated. Maybe I'm overcomplicating something. Maybe there is a standard function or a more elegant code?
9) Is it possible to calculate the average spread for each bar on the entire history? I suppose so, it seems very simple, I haven't done it yet, in advance so to speak, maybe there is a ready-made code, not to reinvent the wheel?
10) I want to have different tf, 10 sec, 30 sec... I know it's real but I think it can be done very easily in the new language now, I mean is there some sort of straddle function for this?
11) Will i be able to test exps on my tf history?
12) Does mt have a feature set for working with text files, writing the calculations I need and so on?
That's about all I can remember so far, your help would be invaluable! Thanks in advance!
how is it?
I'm trying this system out on the real. I have to keep an eye on the trade all the time.
I have to keep track of my trades all the time.
The EA should open buy and sell orders at the same time . i.e. without indicators .
When two orders are opened in the terminal, one order closes on a Take Profit!
Two buy and sell orders should be opened again and this happens all the time .
. the order with a minus remains in trade .
all! I am thinking to order for money but I have a problem with depositing via WebMoney.
i think i will order for money but i have a problem with topping up with webmoney.
I'm trying this system out on the real. I have to keep an eye on the trade all the time.
I have to keep track of my trades all the time.
The EA should open buy and sell orders at the same time . i.e. without indicators .
When two orders are opened in the terminal, one order closes at Take Profit !
Two buy and sell orders should be opened again and this happens all the time .
. the order with a minus remains in trade .
all! I am thinking to order for money but I have a problem with depositing via WebMoney.
I have been working on this for over a decade now, and I'm still not convinced by the results.
well, you just described the american economy... all the debt is piling up and the proceeds are being used to buy new debt...
I tried it this way... it doesn't work.
extern int Profit=1;
extern double Lot=0.1;
extern int Stop=98;
extern inttern Take=70;
extern int Slip=10;
extern int Magic=0;
int n;
int start() {
//order counter
for(int m=1; m<=OrdersTotal(); m++)
{
OrderSelect(m-1,SELECT_BY_POS);
int mn=OrderMagicNumber();
int openselllim,openbuylim, opensell,openbuy, openbuystop, opensellstop;
if (mn==Magic && OrderType()==OP_BUY) openbuy=openbuy+1;
if (mn==Magic && OrderType()==OP_SELL)opensell=opensell+1;
if (mn==Magic && OrderType()==OP_BUYLIMIT) openbuylim=openbuylim+1;
if (mn==Magic && OrderType()==OP_SELLLIMIT) openselllim=openselllim+1;
if (mn==Magic && OrderType()==OP_BUYSTOP)openbuystop=openbuystop+1;
if (mn==Magic && OrderType()==OP_SELLSTOP) opensellstop=opensellstop+1;
}
if (openbuy+opensell<n||OrdersTotal()==0)
{n=openbuy+opensell;
OrderSend(Symbol(), OP_SELL, Lot, Bid, Slip, 0, 0, "SELL", Magic, 0,Red);
OrderSend(Symbol(), OP_BUY, Lot, Ask, Slip, 0, 0, "BUY", Magic, 0,Blue);
}
if (openbuy+opensell>n){n=openbuy+opensell;}
clospoint();
return(0);}
void clospoint ()
{int ask, bid, open;
double point;
for (int i=OrdersTotal()-1; i>=0; i--)
{
if (!OrderSelect(i,SELECT_BY_POS,MODE_TRADES)) break;
if (OrderType()==OP_BUY)
{
point=MarketInfo(OrderSymbol(),MODE_POINT);
if (point==0) break;
bid=MathRound(MarketInfo(OrderSymbol(),MODE_BID)/point);
open=MathRound(OrderOpenPrice()/point);
if (bid-open<Profit) continue;
OrderClose(OrderTicket(),OrderLots(),bid*point,Slip);
}
if (OrderType()==OP_SELL)
{
point=MarketInfo(OrderSymbol(),MODE_POINT);
if (point==0) break;
ask=MathRound(MarketInfo(OrderSymbol(),MODE_ASK)/point);
open=MathRound(OrderOpenPrice()/point);
if (open-ask<Profit) continue;
OrderClose(OrderTicket(),OrderLots(),ask*point,Slip);
}
}}
c you chocolate
Hi all, could you please tell me how the Coment() function counts parameters???
Here's an excerpt from the handbook: "Any values separated by commas. The line feed character "\n" or "\r\n" can be used to split the output into multiple lines. The number of parameters cannot exceed 64..." which parameters?????
Hi all, can you please tell me how the Coment() function counts parameters???
Here is an extract from the manual: "Any values separated by commas. A line feed character "\n" or "\r\n" can be used to split the output into multiple lines. The number of parameters cannot exceed 64..." which parameters?????
of those comma-separated ones.
I haven't asked myself that question, I don't know. How about this?
How many characters would be counted in the comment?I haven't asked myself that question, I don't know. What if it is?
How many characters would be counted in a comment?Well, it's written in the help...
Good afternoon! Here is the code:
}
The function works in principle, but it only writes one character from the Text string into the buffer. What should I adjust to write the whole string?
Thank you!
Well, it says on the certificate...