[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 141

 
I forgot my password in Metatrader, how can I create a new one, who can I contact?
 
Processor_ua:
I forgot my password on Metatrader, how can I create a new one?


If you haven't deleted your email, see the terminal's tab "Mailbox" - Register a new account...

If you have deleted it, please contact your brokerage company.

 
Roman.:


If you have not deleted your mail, see the terminal's Mailbox - Register a new account...

If you have deleted it, contact your brokerage company's helpdesk.


I don't know exactly who to send it to, and what is a DC? It's a demo account, and I've been trading for 3 months and it's all gone down the drain.
 
CLAIN:


the interesting thing is that there are no problems on the tester. It's been running since 2000 to date without draining.

maybe the code would help?

i.e. i have one main function here and the other two just duplicate it. Made it for insurance, but it still stops working

if(OrderClosePrice()-OrderOpenPrice()<0)

I think we check the last position opened, if it's +, we open.

If so, we should check like this.

int start()
  {
//----
  double ClosePrice_biu,OpenPrice_biu,ClosePrice_sell,OpenPrice_sell;
  int i;

   for ( i=0; i<OrdersHistoryTotal(); i++)
       {
        OrderSelect(i,SELECT_BY_POS,MODE_HISTORY);
           if (OrderSymbol()==Symbol())
              {
             if(OrderType()==OP_BUY)
                 {
                ClosePrice_biu= OrderClosePrice();
                OpenPrice_biu= OrderOpenPrice();
                 }
             if(OrderType()==OP_SELL)
                 {
                ClosePrice_sell= OrderClosePrice();
                OpenPrice_sell= OrderOpenPrice();
                 }
              }
        } 
                
  Comment("\n","ClosePrice_biu = ",ClosePrice_biu,
          "\n","OpenPrice_biu = ",OpenPrice_biu,
          "\n","ClosePrice_sell = ",ClosePrice_sell,
          "\n","OpenPrice_sell = ",OpenPrice_sell);
//----
   return(0);
  }

like this.

 
Processor_ua:

Thanks, I cleared the mail, but in soprota to whom exactly to send, I do not understand at all, and what is DC?? it is a demo account, and 3 months of trading, all down the drain.

If it is a demo account, no one will take care of it. Start a new account. Do not wipe that line with the mail with the passwords to the trading account. DC is the dealing centre through which you trade.
 
Hi all. Below is a rudimentary snippet of a program that I'm having trouble completing. I want it to check if there is another order at the same place (with the same price) and if there is, I should skip it. Otherwise, it sets orders up to the set limits and then places them after the second or third round. If you set it to automatic, you have to set buy stop and you'll see the result. If anyone is able to finish this, please do not be lazy. When it works - reward sure!!!


extern double Lot=0.01;
extern bool Ustan_BuyStop=true;
extern bool Ustan_SellStop=true;
double Dist=10000.0;
string SMB;
double NewPrice,SL,TP;
int i,z;
int start()
{
RefreshRates();
SMB=Symbol();
if(Ustan_BuyStop || Ustan_SellStop) {UstanOtlozh();}
}
return(0);
void UstanOtlozh()
{
double OldPrice=WindowPriceOnDropped();
RefreshRates();
SMB=Symbol();
{
int i=1;
while(i<=OrdersTotal())
{
if (OrderSelect(i-1,SELECT_BY_POS)==true)
{
if (OrderSymbol()!= SMB) continue;
int Tip=OrderType();
if (Tip<2) continue;
double Price=OrderOpenPrice();
{
NewPrice=Price;
while(NewPrice<=Ask+300*Point||NewPrice>=Ask+20*Po int)
{
NewPrice=NewPrice+20*Point;
SL=NewPrice+20*Point;
TP=NewPrice+20*Point;
OrderSend(SMB,OP_BUYSTOP,Lot,NewPrice,3,SL,TP,NULL,0,CLR_NONE);
if(NewPrice>Ask+300*Point|||NewPrice<Ask+20*Point)
return;
}}
}
}
}
}
 
Roman.:


"+++++++++++++++++++++++++++++++++++++++++++ and display"

And learn to insert the code correctly. Your sheet is of no interest to anyone...

Read the whole thing here.


Yeah... sheet...

Found the fault myself. The function

void TRENDS(string name, int PER, int n, int X, int Y, color Lab_Trend_Bull, color Lab_Trend_Bear, color Lab_Trend_Doj, int rsm)

When I delete it, everything works. I don't know WHY it works ONLY on EURUSD????????

 
nlp2311:


Yeah... sheet...

I found the point of failure myself. The function

void TRENDS(string name, int PER, int n, int X, int Y, color Lab_Trend_Bull, color Lab_Trend_Bear, color Lab_Trend_Doj, int rsm)

When I delete it, everything works. I don't know WHY it works ONLY on EURUSD????????


It's a magic pair, on which even crooked codes always work, so as to get the client down faster, at least on something... :-)

Another tricks of the World Consortium of Banks...

 
Melko:
Hi all. Below is a rudimentary snippet of a program that I'm having trouble getting to the end of. I've got to make it check if there's another order at the same place (with the same price) and if there is, then skip it. Otherwise, it sets orders up to the set limits and then places them after the second or third round. If you set it to automatic, you have to set buy stop and you'll see the result. If anyone is able to finish this, please do not be lazy. When it works - reward sure!!!


extern double Lot=0.01;
extern bool Ustan_BuyStop=true;
extern bool Ustan_SellStop=true;
double Dist=10000.0;
string SMB;
double NewPrice,SL,TP;
int i,z;
int start()
{
RefreshRates();
SMB=Symbol();
if(Ustan_BuyStop || Ustan_SellStop) {UstanOtlozh();}
}
return(0);
void UstanOtlozh()
{
double OldPrice=WindowPriceOnDropped();
RefreshRates();
SMB=Symbol();
{
int i=1;
while(i<=OrdersTotal())
{
if (OrderSelect(i-1,SELECT_BY_POS)==true)
{
if (OrderSymbol()!= SMB) continue;
int Tip=OrderType();
if (Tip<2) continue;
double Price=OrderOpenPrice();
{
NewPrice=Price;
while(NewPrice<=Ask+300*Point||NewPrice>=Ask+20*Po int)
{
NewPrice=NewPrice+20*Point;
SL=NewPrice-20*Point;
TP=NewPrice+20*Point;
OrderSend(SMB,OP_BUYSTOP,Lot,NewPrice,3,SL,TP,NULL,0,CLR_NONE);
if(NewPrice>Ask+300*Point||NewPrice<Ask+20*Point)
return;
}}
}
}
}
}

when inserting code, use the "SRC" button in the toolbar that appears when inserting comments

  for(cnt = 0; cnt < OrdersTotal(); cnt ++)
  {
    OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
    if(OrderMagicNumber() != MagicNumber || OrderSymbol() != Symbol()) {continue;}

    if(OrderMagicNumber() == MagicNumber && OrderSymbol() == Symbol() && OrderType() <= OP_SELL)
    {
      if(OrderType() == OP_BUY)
      {
        if(LatestBuy < OrderOpenTime())  {LatestBuy = OrderOpenTime();}
        if(NearestBuy == 0.0 || (MathAbs(ND(Bid, dgts) - ND(OrderOpenPrice(), dgts)) / Point < MathAbs(ND(Bid, dgts) - ND(NearestBuy, dgts)) / Point)) {NearestBuy = ND(ND(OrderOpenPrice(), dgts) + sprd * Point, dgts);}
      }
      else
      {
        if(LatestSell < OrderOpenTime())  {LatestSell = OrderOpenTime();}
        if(NearestSell == 0.0 || (MathAbs(ND(Ask, dgts) - ND(OrderOpenPrice(), dgts)) / Point < MathAbs(ND(Ask, dgts) - ND(NearestBuy, dgts)) / Point)) {NearestSell = ND(OrderOpenPrice(), dgts);}
      }
    }
  }
  if(ND(MathAbs(NearestBuy - ND(Bid, dgts)) / Point, 0) < MinDist)  {MMM_BuyCanOpen = false;}
  if(ND(MathAbs(ND(Ask, dgts) - NearestSell) / Point, 0) < MinDist)  {MMM_SellCanOpen = false;}
  if(TimeCurrent() - LatestBuy < MinTime * 60)  {BuyCanOpen = false;}
  if(TimeCurrent() - LatestSell < MinTime * 60)  {SellCanOpen = false;}

.....
  
  if(BuyCanOpen)
  {
отправка приказа на покупку (по рынку или отложки)
  }

  if(SellCanOpen)
  {
отправка приказа на продажу (по рынку или отложки)
  }

try something like this ...

 

Can you tell me how to build an indicator using another indicator? For example I have a stochastic:

double sth=iStochastic(Symbol(),0,25,3,5,0,0,0,1);

How can I use it to build a bollinger?

Reason: