how to use "[ ]" symbol...

 

i come across script using the "[ ]" symbol in EA... example :-

string text[30];

can anyone guide me how to use it?

 
Leonfoo:

i come across script using the "[ ]" symbol in EA... example :-

string text[30];

can anyone guide me how to use it?

You really need to read the Book  if you have to ask a question like that . . .  specifically this part:  Book (Array)
 
  1. RTFM
  2. string OrderTypeText[] = {"Buy", "Sell", "BuyLimit", "SellLimit", "BuyStop", "SellStop"}
    Print("Order ",OrderTicket(), " is a ", OrderTypeText[OrderType()]);
    

Reason: