[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 125

 
rid >> :
double Bid
Last known Buy (Buy Offer) price of the current symbol.
double Ask
Last known selling price (ask price) of the current instrument.

I know about Ask and Bid, these are the prices provided by the brokerage companies. I need the current price, which is displayed on the right side of the price chart window.

 
rensbit писал(а) >>

I know about Ask and Bid, these are the prices provided by the brokerage companies. I want the current price which is displayed on the right side of the price chart window.

This Bid is usually.

 

The right side of the window usually shows the Bid price!

If you want the Ask price to be displayed there as well, click on the graph.

PROPERTIES/GENERAL/Display Ask Line


 
OK, thank you.
 

Good evening, I ask mql4 specialists to make a script or advisor based on DT_ZZ_nen.mq4 indicator. I need to send mail with currency pair and four last fractures (2 - bottom and 2 - top) when a new top appears. I tried it myself and it turned out that it sends 18 e-mails in a row, until mail.ru does not bite - it seems that I have got into a loop somewhere. Thanks in advance.

Files:
dt_zz_nen.mq4  5 kb
 

Hello, I am studying MQL4 and tried to run a simple program from MQL4 tutorial - simple.mq4

The start function does not start, I am using a demo account.

//--------------------------------------------------------------------
// simple.mq4
// Предназначен для использования в качестве примера в учебнике MQL4.
//--------------------------------------------------------------------
int Count=0;                                    // Глобальная перемен.
//--------------------------------------------------------------------
int init()                                      // Спец. ф-ия init()
   {
   Alert ("Сработала ф-ия init() при запуске"); // Сообщение
   return;                                      // Выход из init()
   }   
//--------------------------------------------------------------------
int start()                                     // Спец. ф-ия start()
   {
   double Price = Bid;                          // Локальная перемен.
   Count++;                                     // Счётчик тиков
   Alert("Новый тик ",Count,"   Цена = ",Price);// Сообщение
   return;                                      // Выход из start()
   }
//--------------------------------------------------------------------
int deinit()                                    // Спец. ф-ия deinit()
   {
   Alert ("Сработала ф-ия deinit() при выгрузке");   // Сообщение
   return;                                      // Выход из deinit()
   }
//--------------------------------------------------------------------
 

10:06:26 Test GBPUSD,H4: Alert: Init() triggered at
10:06:26 Test GBPUSD,H4: initialized
10:06:31 Test GBPUSD,H4: Alert: New Tick 1 Price = 1.639
10:06:40 Test GBPUSD,H4: Alert: New Tick 2 Price = 1.6389
10:06:41 Test GBPUSD,H4: Alert: New Tick 3 Price = 1.6389
10:06:48 Test GBPUSD,H4: Alert: New Tick 4 Price = 1.6389
10:06:50 Test GBPUSD,H4: Alert: New Tick 5 Price = 1.6389
10:07:00 Test GBPUSD,H4: Alert: Deinit() triggered on upload

No, everything works. Maybe you have banned EAs?

 
Listen... right, thank you. Turned it on, it's working.
 

Hello everyone!

Here's a question. How to implement the output of the necessary data from the Expert Advisor in Excel? I've found several variants of how to do it: by passing the data into *.csv file and through writing it into html, followed by opening it in excel. Or maybe the libraries are prescribed for certain purposes..... , of course, I can't get any of the two... I keep getting errors when reading/writing to the file. Please advise how to achieve the required result, maybe there is a universal function ......

 
Infinity >> :

Hello everyone!

Here's a question. How to implement the output of the necessary data from the Expert Advisor in Excel? I've found several variants of how to do it: by passing the data into *.csv file and through writing it into html, followed by opening it in excel. Or maybe the libraries are prescribed for certain purposes..... , of course, I can't get any of the two... I keep getting errors when reading/writing to the file. Please advise how to achieve the required result, may be there is a universal function ......

int c=100;// длинна массива MyArray[]
string FileName="Имя_файла";
int han = FileOpen( FileName+".csv", FILE_WRITE,";"); 
if( han>0) // проверка открытия файла, если существует в han хранится индификатор 
 { for(int i=0; i< c; i++)
       FileWrite( han, MyArray[ i]);
   FileClose( han);
 }