Hello.
The question is:
Multi-currency expert Advisor. Launched on the chart of the symbol “B”. In the market overview, the BID value for the symbol “A” of the current tick is one, and the resulting SymbolInfoTick for the symbol “A” is another (old). If the EA is moved to the chart of the symbol “A”, then each tick all coincides with the value in the market overview for the symbol”A”.
For a long time I could not understand why the multicurrency is trading incorrectly and I was waiting for such a trick in the last place. This can be solved somehow or multi-currency RIP, do 100500 expert advisors for each symbol? The expert Advisor analyzes ticks and such jambs are not allowed. Maybe you can somehow take the values directly from the market review, since SymbolInfoTick and SymbolInfoDouble give such a jamb?
artmedia70
Only I said about the non-native symbol immediately, and immediately said how to do it correctly, but you decided not to hear.
volokola
Because the glass receives information in a separate stream and does not depend on what chart it is running on.
barabashkakvn
Konstantin Efremov:
Hello.
The question is:
Multi-currency expert Advisor. Launched on the chart of the symbol “B”. In the market overview, the BID value for the symbol “A” of the current tick is one, and the resulting SymbolInfoTick for the symbol “A” is another (old). If the EA is moved to the chart of the symbol “A”, then each tick all coincides with the value in the market overview for the symbol”A”.
For a long time I could not understand why the multicurrency is trading incorrectly and I was waiting for such a trick in the last place. This can be solved somehow or multi-currency RIP, do 100500 expert advisors for each symbol? The expert Advisor analyzes ticks and such jambs are not allowed. Maybe you can somehow take the values directly from the market review, since SymbolInfoTick and SymbolInfoDouble give such a jamb?
Please provide the full code and describe the sequence of actions for playback (how many charts are open, on which server the connection is, on which symbol the expert Advisor is running and from which symbol it is trying to get data …).
leonardo4
What does the glass have to do with it? Once again, if the expert Advisor is on the chart of the instrument for which we take ticks using SymbolInfoTick , then everything is fine. If the expert Advisor is on the chart of another instrument, then a jamb occurs with the receipt of ticks, described above.
That is, it works fine:
SymbolInfoTick(_Symbol,last_tick);
And this is a mess:
SymbolInfoTick(- other character -, last_tick);
volokola
The market what? Is it possible to open glasses using these tools? If there is such a possibility = we take ticks when changing the glass of the desired tool.
leonardo4
Artyom Trishkin:
Code where?
artmedia70
Konstantin Efremov:
Hello.
The question is:
Multi-currency expert Advisor. Launched on the chart of the symbol “B”. In the market overview, the BID value for the symbol “A” of the current tick is one, and the resulting SymbolInfoTick for the symbol “A” is another (old). If the EA is moved to the chart of the symbol “A”, then each tick all coincides with the value in the market overview for the symbol”A”.
For a long time I could not understand why the multicurrency is trading incorrectly and I was waiting for such a trick in the last place. This can be solved somehow or multi-currency RIP, do 100500 expert advisors for each symbol? The expert Advisor analyzes ticks and such jambs are not allowed. Maybe you can somehow take the values directly from the market review, since SymbolInfoTick and SymbolInfoDouble give such a jamb?
Code where?