Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 751

 
evillive:
Just grab the edge and shrink as much as you want.

I've been grasping in different ways, and I can't! If I may, by which "edge"?!

It only shrinks in height, but not in width! Suddenly, it's the full width of the terminal!

 

artmedia70

Thanks mate, the homeland won't forget you

 

But it still doesn't work the compiler gives an error

" 'GetNormalizeOpenPriceBySymbol' - function not defined "


 
pavlicos:

But it still doesn't work the compiler gives an error

" 'GetNormalizeOpenPriceBySymbol' - function not defined "

I gave you the whole function. Insert it into your code outside of all the functions. At the very end of your code for example.
 

artmedia70

It's not working, I'm not a good programmer but I have an interesting strategy.

email me or i'll call you tomorrow night on skype.

pavlic@rambler.ru



 
borilunad:

I've been grasping in different ways, and I can't! If I may, by which "edge"?!

It only shrinks in height, but not in width! Suddenly it's the full width of the terminal!

If there is a router or a hub or a switch, also shut them down.
 
pavlicos:

But it still doesn't work the compiler gives an error

" 'GetNormalizeOpenPriceBySymbol' - function not defined "


no, there is no function in the code or the name does not match. (PS: the functions are inserted after the main code)
 
_new-rena:
Try rebooting with the computer switched off and if there is a router or a hub or a switch, also shut them down.
Thank you, it's also suddenly back in place! It seems to change from clicking with protasca! And I have on Vista already weakened click, so sometimes it drags where it's not necessary. :)
 
borilunad:
Thank you, also suddenly it's in its place! It seems to change from clicking with the protask! And my click is already loose on Vista, that's why it sometimes drags where it shouldn't. :)
What's Vista got to do with it? It's the mouse, the mouse is already dying. Soon it'll go stale ;)
 

how to close an order at the close of a bar or candlestick

int start()
  {
      if ((Time[0] == prevtime) && openbarspriceonly) {
      return(0);
      }
   
      if (! IsTradeAllowed()) {
      Comment("Trades disallow");
      return(0);
      }
   
      prevtime = Time[0];

    if (CountTrades() == 0)
    {
        open = iOpen(Symbol(), PERIOD_D1, 0);
        close = iClose(Symbol(), PERIOD_D1, 1);

     if (DayOfWeek()==1&& Ask >= open)
     { 
        ticket = OrderSend(Symbol(), OP_BUY, lots, Ask, Slippage, 0, 0, NULL, Magic, 0, Blue);
        if (ticket>0)
        {
          Print("Ордер ошибка в Лонг: ", GetLastError());
        }
        else 
           Print("Ордер открыт успешно");
        if(OrderSelect( ticket, SELECT_BY_POS))
        {
          if(OrderClose(ticket, lots, close,Slippage,0))
          return(0);
        }
     }
     if (DayOfWeek()==5&& Bid <= open)
     {
        ticket = OrderSend(Symbol(), OP_SELL, lots, Bid, Slippage, 0, 0, NULL, Magic, 0, Red);
        if (ticket>0)
        {
          Print("Ордер ошибка в Шорт ", GetLastError());
        }
        else 
           Print("Ордер открыт успешно");
        if(OrderSelect( ticket, SELECT_BY_POS))
        {
          if(OrderClose(ticket, lots, close,Slippage,0))
          return(0);
        }

     }
    }
    return(0);
  }