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

 
laveosa:

1. ... damn, I got myself something to read for the weekend :) I'm getting a beer.

2. (thought two days at WOT huh :()

1. Good decision...

2. Swing the France Firefly to BatChat - on it, IMHO, it's cool!

 
got the m103 last weekend.... auEnchik happy as shit and the french amh13_90 is there and ready to bend.........
 
laveosa:
got m103.... last weekend ahEnchik happy as shit, and the french amh13_90 is there and ready to bend.........


On a coffin's account I was running a lightsaber on the furthest right battchat... Nice!!!

Still rocking up to it myself...

 
come on buddy, pump it up, that gun will make it easier to hit deer.... ok thanks again for all your help, i'm off to cram...... you have a good hunt :D
 
By the way, I'm in WOT under that nickname too.)
 
laveosa:
By the way, I'm in WOT, too, under this nickname, throw me in the friendship, maybe a company when :)))


OK! As soon as I'm there - I'll throw it in...

You can drop me in, I'm Fabio_1.

I don't know how to make friends there yet...

 
and I'll answer all your questions there :)))))
 
laveosa:
and that's where I'll answer all your questions :)))))

OK!!! :-) Invite me as a friend there...
 
This is the first time I've read about tanks in this thread, yeah)
 
alsu:

If you call the function without this parameter, no ifs will be executed and the function will start with the string

If the library compiles without errors, then the bs_Symbol variable must be declared somewhere at the global level. In the same place (or in some other function) one should look for its initialization...

Note: for the code to work, the conditionfi_Ticket < 0 OR fs_Symbol != bs_Symbol must hold, which means, if further on you have if (fi_Ticket > 0), just that alternative entry condition must hold.


Well, I meant not that thefi_Ticket parameter isn't necessary, but why the value 0 (zero) was assigned to it by default. I would do it simply so:

void fGet_MarketInfo (string fs_Symbol, int fi_Ticket)

Let me repeat the source code again:

//IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII+
//|  Автор : TarasBY, taras_bulba@tut.by                                              |
//+-----------------------------------------------------------------------------------+
//|        Получаем торговую информацию по символу                                    |
//IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII+
void fGet_MarketInfo (string fs_Symbol, int fi_Ticket = 0)
{
//----
         if (fs_Symbol != bs_Symbol || fi_Ticket < 0)
         {
                  if (fi_Ticket > 0)
                  {
                     bs_Symbol = OrderSymbol();
                  }
                  else
                  {
                     bs_Symbol = fs_Symbol;
                  }
                  if (bs_Symbol == Symbol())
                  {
                      bi_SymDigits = Digits;
                      bd_SymPoint = Point;
                  }
                  else
                  {
                      bi_SymDigits = MarketInfo (fs_Symbol, MODE_DIGITS);
                      bd_SymPoint = MarketInfo (fs_Symbol, MODE_POINT);
                  }
        if (bd_SymPoint == 0.0)
        {
           bd_SymPoint = fGet_Point (fs_Symbol);
        }
                  bd_ProfitMIN = NDP (ProfitMIN_Pips);
         }
         if (fi_Ticket > 0)
         {
            fGet_OrderDetails (fi_Ticket);
         }
    //---- Получаем текущие цены по инструменту
    RefreshRates();
    bda_Price[0] = NDD (fGet_TradePrice (0, bb_RealTrade, bs_Symbol));
    bda_Price[1] = NDD (fGet_TradePrice (1, bb_RealTrade, bs_Symbol));
    bd_Spread = NDD (bda_Price[1] - bda_Price[0]);
//----
}