Custom symbols. Errors, bugs, questions, suggestions. - page 17

 
Roman:


You're contradicting yourself. In one post you write AND. Now you write OR.
You clearly have a definition problem. We are writing a high-level mql language, not bits.
The fact that bits will have AND as a result of addition is clear, but we don't see it, but we know about it.
To put it more logically, so that you can be understood by others, Bitwise OR returns the sum of flag values!
But not AND !
Let's close this subject.

No, I'm not contradicting. The definitions, on the other hand, are really not all right. What can you take from a self-taught person...

That's the beginning of understanding from your message. That's really the end of the topic, you'll see for yourselves from there.

 

Is there a more different thread to ask?

zull.kzn:

Hi all

this is my first time running mt, need it for data analysis and plotting

i created a symbol, loaded bars from csv, i have a thick data file in my insta directory

Symbol activated, in market watch

Do not show chart - "Waiting for update


Did i miss something?

i tried it in both mt4 and mt5 - everything is the same

demo charts - run jumping

 
zull.kzn:

should I ask in some other thread?

Try here https://www.mql5.com/ru/forum/133408
Клуб Телепатов
Клуб Телепатов
  • 2011.05.08
  • www.mql5.com
Клуб телепатов Вас послали сюда? Тогда давайте знакомиться! Как же такое могло случиться со мной...
 


<img src="https://c.mql5.com/3/283/2.jpg">

the picture is not inserted and there is no button

Files:
2.jpg  353 kb
 
zull.kzn:


<img src="https://c.mql5.com/3/283/2.jpg">

the picture won't fit and there's no button

How can there be no button? There's a row of buttons at the top of the post editing window. There's even a tooltip that says "Picture (Alt + I)".

Who will press the OK button in the csv file selection dialog box?

 
Slava:

How is there no button? There's a row of buttons at the top of the post editing window. There even pops up a tooltip "Picture (Alt + I)"

Button OK in the dialogue to select the csv-file who will press?

there is no button, see the screenshot - the tooltip has a picture button, but not in the current window, alt + i does not work, the browser chrome

in mt all ok of course pressed

bars appear both in the right and left windows

and OK is pressed there too

the situation is described precisely in the performance of all these actions

Files:
3.jpg  51 kb
 
zull.kzn:

in mt all the ok's are clicked of course

the bars appear both in the right and left window

and the OK is clicked there as well.

the situation is described precisely in the performance of all these actions

Describe step by step and with screenshots of what you do.

In the previous screenshot, you can see that you got to the file selection dialog and that the entries in the file are recognized, but it is not clear whether you clicked on OK or not. Probably not, because the input focus is on the file name.

 
Slava:

Describe step by step and with screenshots what you are doing.

In the previous screenshot, you can see that you got to the file selection dialog box and that the entries in the file are recognized, but it is not clear whether you clicked on OK or not. Probably not, as the input focus is on the file name.

pressed ok.

the right window has closed

Bars appeared in the left window.

Pressed oK.

left window closed.

The result is a black window with this message

Files:
1.gif  5323 kb
 

Bug 23.

Imported ticks are killing the ones probed for CopyTicks-functions.

#define  PRINT(A) Print(#A + " = " + (string)(A))

#define  SIZE 100

void OnStart()
{
  MathSrand((uint)TimeLocal());
  const string Name = _Symbol + (string)MathRand();
  
  MqlTick Ticks[];
  PRINT(CustomSymbolCreate(Name, NULL, _Symbol)); // Создали символ.
  PRINT(SymbolSelect(Name, true)); // Поместили в Обзор рынка
  PRINT(CopyTicksRange(_Symbol, Ticks, COPY_TICKS_INFO, D'2019.06.01' * 1000)); // Взяли тики
  
  PRINT(ArrayResize(Ticks, SIZE));    // Оставили только SIZE-тиков
  PRINT(CustomTicksAdd(Name, Ticks)); // Пробросили их все
  PRINT(CopyTicksRange(Name, Ticks)); // Убедились, что тиков в истории именно столько.

  MqlTick NewTicks[];  
  PRINT(ArrayCopy(NewTicks, Ticks, 0, 30, 10)); // Взяли 10 тиков с индексами 30-39.

  PRINT(CustomTicksReplace(Name, NewTicks[0].time_msc, LONG_MAX, NewTicks)); // Записали их так, чтобы они были с правого края.
   
  PRINT(CopyTicksRange(Name, Ticks)); // Убедились, что тиков в истории 40.
}


Result

CustomSymbolCreate(Name,NULL,_Symbol) = true
SymbolSelect(Name,true) = true
CopyTicksRange(_Symbol,Ticks,COPY_TICKS_INFO,D'2019.06.01'*1000) = 1096621
ArrayResize(Ticks,100) = 100
CustomTicksAdd(Name,Ticks) = 100
CopyTicksRange(Name,Ticks) = 100
ArrayCopy(NewTicks,Ticks,0,30,10) = 10
CustomTicksReplace(Name,NewTicks[0].time_msc,LONG_MAX,NewTicks) = 10
CopyTicksRange(Name,Ticks) = 10
 
zull.kzn:

pressed oK

right window closed.

the bars appeared in the left window

Pressed ok there too.

left window closed

The result is a black window with this text

It is not playing. An empty chart is refreshed immediately after importing bars.

What happens if I do not open the chart? Open chart after importing bars.

Or close and open the chart.

Or refresh the graph from the graph context menu.

Reason: