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

 
andreika:
Please tell me if this is off-topic.
Has anyone gone through the variation process with a broker. I was asked for a scan of my passport and registration
They must have asked for money. They are fighting fraud and corruption all over the world, so they have tightened controls on tax evasion!
 
borilunad:
They must have asked for money! All over the world they are fighting fraud and corruption, so they have tightened controls on tax evasion!
That's what I'm saying. Tomorrow the tax office will come and say 33 (or 35) percent for the winnings.
 
andreika:
That's what I'm saying. Tomorrow the IRS will come and say 33 (or 35) percent for the winnings.
Why is it coming? In the normal world, all income is declared once a year, including even lottery winnings, and paid by a certain deadline. In case of delay, a 20% late fee is added, and in case of non-payment of taxes or concealment of income, the bank account is seized and assets are seized to pay the debts and recover the costs of seizure! We live in a world of capital and dreams of communism are long gone! ;) or :( whichever .
 
AlexeyVik:

YES.

Search engine to help you, read what is "leverage" in forex and you'll find out. It is the leverage, AccountLeverage() that is used in the software to calculate the lot as a % of the deposit.

One who had 0.4 had AccountLeverage() of 500, and the other who had 0.08 had 100.
 
tatianati:

Hello.

Question on automation of binary options trading in MT4.

The profit percentages for the different instruments change over time.

Can you please tell me how to see this percentage for the selected instrument?
The GK website has examples of calculations, so using these equations you can calculate how much it will be at the current moment.
 
Thank you Alexey, I didn't quite understand my question.

I want to programmatically see the percentage of remuneration stipulated by the contract specification.

Please tell me how to do it in MarketInfo().

 
There is no such thing, because MT4 was adapted for BO trading, not originally made for that.
 
Alexei, you have saved me time, thank you )
 

Help!

I've already racked my brains, it's all bullshit.

Here's the general problem:

I've got a minute history with small holes, I want to fill these holes with empty bars. I have written a script that reads values from the chart and writes them into csv file.

The script generates a file with quotes, I open it in Excel, but when I try to import them into the archive of quotes, I get abracadabra for some reason:

The question is why the time in the file is ok, but when I import it I get the same mess?

Here's the script code:

#property strict
#property  show_inputs
//----

input bool              SkipWeekEnd             = true;
input bool     ChangeVolume   = true;
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
void OnStart()
  {
          int now_volume;
          datetime now_time, pre_time;
          int HistoryHandle = -1,  PeriodSec;
          double now_close, now_open, now_low, now_high,  pre_close=0;
          int Error = 0, cnt_copy = 0, cnt_add = 0;
          int temp[13];
//---- запоминаем символ и период графика
          string symbol = Symbol();
          int period = Period();
      PeriodSec = period * 60;
//---- открываем файл, в который будем записывать историю
          string file_name = StringConcatenate(symbol, period,".csv");
          HistoryHandle = FileOpen(file_name,  FILE_WRITE | FILE_CSV,"," );
          if(HistoryHandle < 0)
            {
                     Error = GetLastError();
                     Alert("FileOpen ", file_name, Error);
                     return;
            }

//+------------------------------------------------------------------+
//| Обрабатываем историю                                             |
//+------------------------------------------------------------------+
          int bars = Bars;
          pre_time = Time[bars-1];
          for(int i = bars - 1; i >= 0; i--)
            {
                     //---- Запоминаем параметры бара
                     now_open   = NormalizeDouble(Open[i],Digits);
                     now_high   = NormalizeDouble(High[i],Digits);
                     now_low    = NormalizeDouble(Low[i],Digits);
                     now_close  = NormalizeDouble(Close[i],Digits);
                     if (ChangeVolume) now_volume       = int(((High[i]-Low[i])/Point)+1); 
                         else now_volume        = int(Volume[i]);
                     now_time = Time    [i] / PeriodSec;
                     now_time   *=PeriodSec;
                     //---- если есть пропущенные бары,
                     while(now_time > pre_time + PeriodSec)
                       {
                                pre_time += PeriodSec;
                                pre_time        /= PeriodSec;
                                pre_time        *= PeriodSec;
                                //---- если это не выходные,
                                if(SkipWeekEnd)
                                  {
                                           if(TimeDayOfWeek(pre_time) <= 0 || TimeDayOfWeek(pre_time) > 5 ) 
                                               continue;
                                           if(TimeDayOfWeek(pre_time) == 5 )
                                             {
                                                      if(TimeHour(pre_time) == 23 || TimeHour(pre_time + PeriodSec) == 23)
                                                                                                                                                                                        continue;
                                             }
                                  }
                          //---- записываем пропущенный бар в файл
                                FileWrite(HistoryHandle, 
                                          TimeToStr(pre_time,TIME_DATE), 
                                          TimeToStr(pre_time,TIME_MINUTES),
                                          pre_close,
                                          pre_close,
                                          pre_close,
                                          pre_close,
                                          1);
                                FileFlush(HistoryHandle);
                                cnt_add ++;
                       }
                     //---- записываем новый бар в файл
                     
                     FileWrite(HistoryHandle, 
                               TimeToStr(now_time,TIME_DATE), 
                               TimeToStr(now_time,TIME_MINUTES),
                               now_open, 
                               now_low,
                               now_high,
                               now_close,
                               now_volume);
                     FileFlush(HistoryHandle);
                     cnt_copy ++;
                     //---- запоминаем значение времени и цену закрытия записанного бара
                     pre_close  = now_close;
                     pre_time   = now_time / PeriodSec;
                     pre_time   *= PeriodSec;
           }
          //---- закрываем файл
          FileClose(HistoryHandle);
          //---- выводим статистику
          Print(symbol, period, ": было ", cnt_copy, " баров, добавлено ", cnt_add, " баров");
          
          return;
  }
//+------------------------------------------------------------------+
 
FoxSly:

Help!

I've already racked my brains, it's all bullshit.

Here's the general problem:

I've got a minute history with small holes, I want to fill these holes with empty bars. I've written a script that reads values from the chart and writes them into csv file.

The script generates a file with quotes, I open it in Excel, but when I try to import them into the archive of quotes, I get abracadabra for some reason:

The question is why the time in the file is ok, but when I import it I get the same mess?

Here's the script code:

What answer do you want to hear? You're blurring the dates by highlighting them and what can you compare them to? I suspect you're comparing different dates and that's what's going on...
Reason: