[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 504

 
chief2000:

On the other thread you can contact the developers - I'll describe everything there, maybe they'll fix it.
Thank you!


Try running this program

Files:
mtpump.zip  77 kb
 
Vinin:


Try running this programme

I searched the internet for a description of MTPump, but couldn't find anything - what happens when you run it?

 

Afternoon. Trying to open pending orders like this:

if(Kvadrat==1)
   {
   NewOrder(OP_SELLSTOP);
   NewOrder(OP_BUYSTOP);
   Kvadrat=0;
   }

..................................

int NewOrder(int Cmd)
{
 double TP=0;// тейкпрофит
 double SL=0;// стоплос
 double PR=0;// цена
 while(!IsTradeAllowed())Sleep(100);
 if(TakeProfit<MarketInfo(Symbol(),MODE_STOPLEVEL))  
    TakeProfit=MarketInfo(Symbol(),MODE_STOPLEVEL);
 if(StopLoss<MarketInfo(Symbol(),MODE_STOPLEVEL))  
    StopLoss=MarketInfo(Symbol(),MODE_STOPLEVEL);
 if(Cmd==OP_BUYSTOP)
   {
    PR=MAX;
    if(TakeProfit>0)TP=NormalizeDouble(MAX+TakeProfit*Point,Digits);
    if(StopLoss>0)  SL=NormalizeDouble(MAX-StopLoss*Point,Digits);
   }
 if(Cmd==OP_SELL)
   {
    PR=MIN;
    if(TakeProfit>0)TP=NormalizeDouble(MIN-TakeProfit*Point,Digits);
    if(StopLoss>0)  SL=NormalizeDouble(MIN+StopLoss*Point,Digits);
   }
 tic=OrderSend(Symbol(),Cmd,Lot,PR,3,SL,TP,"",0,0,CLR_NONE);
 if(tic<0)Print("шибка открытия ордера:",GetLastError()); Print("Cmd-",Cmd,"Lot=",Lot,"PR=",PR,"SL=",SL,"TP=",TP);
return(tic);
}
But when I test it, a lot of orders open at the right moment, although only two should open in the opposite direction. What is the error here?
 
chief2000:

I searched the internet for a description of MTPump, but did not find anything - what happens when you run it?


It finds all running metatrader and emulates ticks. More precisely, it just updates the chart. No ticks

Allows you to check the correctness of indicators and advisors

 
Vinin:


Finds all running metatrader and emulates ticks. More precisely, it simply updates the chart. No ticks

Allows you to check the correctness of indicators and EAs

I'll check it out. Thank you!

 
mamba5:

Afternoon. Trying to open pending orders like this:

But during testing, a lot of orders open at the right moment, although only two should open in opposite directions. What is the error here?


static int Kvadrat = 0;

 
Mathemat:
Go see a telepath.


Do you have to be rude? I did not go to a telepath, I tried to scribble myself, it came out as it was (not a programmer), but maybe someone will need.

I don't understand the reason for your unmotivated aggression, you asked just a piece of code (from a script, an advisor, whatever) of the number of permutations (or combinations, whatever) from a high school combinatorics course, which derives the right ones from the a posteriori data, just a reason for inappropriate behaviour?

int array[][][][] = {...};

int array2[][] = {...};

for(int q = ; q <= ; q++)
{
for(int w = ; w <= ; w++)
{
for(int e = ; e <= ; e++)
{
for(int r = ; r <= ; r++)
{
for(int t = ; t <= ; t++)
{
for(int y = ; y <= ; y++)
{

// -----------------------------------------

//-------------------------------------------

if (....)

{

MessageBox("имеем: ["+q+"]["+w+"]["+e+"]["+r+"]["+t+"]["+y+"].....");

return;

}

}}}}}}

 

Hello.

Why does the error "cannot delete file" appear and how to fix it? Thanks in advance.

The question has been resolved.
 

bar = ??

 
sergeev:


bar = ??

bar is the offset of the current bar in relation to the time set in the external settings(Start_Point).
Reason: