You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
it can't be...for example if the slope line is broken. - there is a breakthrough = there is a signal
first of all you need to get rid of all loops, it's written in the OnChartEvent help
First of all you need to get rid of all cycles, it is written in the OnChartEvent help, now you have a tick and then in the cycle it runs a second time
Are you referring to a dedicated loop? If so, that's correct... on every tick I look through all the periods for a signal
Do you mean a dedicated loop? If so, that's correct... on every tick I look through all periods for a signal
This OnChartEvent is dark forest, I forgot it like a bad dream, Anatoly Kazarsky from 648 also fought with it) there are long topics, multisymbol + multitimesframe, I think the chart will stand up if there is a strong movement, unlike OnTick this thing saves the queue
I did it that way ... I did one symbol and one period - that's it!
Forum on trading, automated trading systems & strategy tester
Multicurrency - Multitime Expert Advisor
Vladimir Karputov, 2018.09.12 13:45
Start simple: current timeframe and given, current symbol and given. That is, two timeframes and two symbols - a total of four indicators. Take any indicator.
Plus I have added: noOnChartEvent. In other words, in one file of the Expert Advisor, it is as compact as possible. The minimum of code.
plus added: noOnChartEvent. That is, as compact as possible in a single EA file. A minimum of code.
Vladimir, I don't understand anything here, can you explain?
Vladimir, I don't understand anything here, can you explain?
Here we are: we are working on EURUSD, H1. Second symbol USDJPY, second timeframe H4.
We create four handles (example for Moving Average): MA EURUSD H1, MA EURUSD H4, MA USDJPY H1 and MA USDJPY H4.
In OnTick() we interrogate four indicators.
Given: working on EURUSD, H1. Second symbol USDJPY, second time frame H4.
Create four handles (example for Moving Average): MA EURUSD H1, MA EURUSD H4, MA USDJPY H1 and MA USDJPY H4.
In OnTick() we interrogate four indicators.
This algorithm will analyze, say, several currency pairs, but only on tick events of the chart, on which the EA will be applied. I.e., for example, we threw the EA on EURUSD and wait for the tick.... and at the same time, USDJPY has already passed 5 ticks - how it is here? This is fundamentally wrong!
With such an algorithm we will analyse several currency pairs, but only on the event of a tick in the chart to which the EA will be attached. I.e., for example, we threw our EA on EURUSD and wait for the tick.... and at the same time USDJPY has already passed 5 ticks - how? ***
Yes, that's right. In fact it's a very simple variant without events, agents and the like.
You have to implement such a scheme first.
Yes, that's exactly right. It's actually a very simple option without events, agents and the like.
You have to implement such a scheme first.
Well, it's easy! I do not need such an algorithm and I know how to implement it - I have a different situation... That's why I'm asking for help. What you offer me is primitive, easy and useless in this case).
Well, it's easy, isn't it? This algorithm doesn't suit me and I know how to implement it... I have a different situation... That is why I am asking for help. What you offer me is primitive, easy and useless in this case)
Ah, so it is :)
Then I politely take my leave.