[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 149
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
I have the same problem as above emonh
I inserted a line before the start and nothing changes.
Why ?
or rather, even stopped opening positions at all and logged an error 138
Thanks for the tip though - I corrected the code a bit and indeed without the code line below, the EA was opening positions on every tick
and after I pasted the code line = EA opened one position exactly as I had planned.
CME is what?
o_o - CME
It has happened before, I think this is the intrigue of DC so that it would be problematic to test anything.
Well, everything is "supposedly" downloaded from a single server... Also, I thought that in the tester the leverage of the current account has no effect... But some brokerage companies have such street magic... May be some brokerage companies can play with quotes too? (Although all of them probably have problems here)...
Thanks for the tip though - I corrected the code a bit and indeed without the code line below, the EA was opening pips on every tick
and after I pasted the code line = EA opened one position exactly as I had planned.
Well... this is only an apparent correspondence to the planned one. This construction does not take into account the symbol, order type or its magik. I.e., if there is another EA working on the account for another symbol, then this one will not work, because we already have a position. If only this EA works, but there is a Sell position and the Buy position needs to be opened, it will not open it - the position already exists and there are many other possible rules, for example, you have manually opened a position or set a pending order - that is it, the EA has risen...
You need to specifically check: Is there already an open position on such and such a symbol, with such and such a magician, of such and such a type? If not - open.
Well... it's only an apparent match to the planned one. This design does not take into account the symbol, the order type or its magik. This means that if there is another EA working for another symbol in the account, then this one will not work, because there is already a position. If only this EA works, but there is a Sell position and the Buy position needs to be opened, it will not open it - the position already exists and there are many other possible rules, for example, you have manually opened a position or set a pending order - that is it, the EA has risen...
You need to specifically check: Is there already an open position on such and such a symbol, with such and such a magician, of such and such a type? If there is not - open.
only after close of buy position by take. For example if buy position is open and price goes down to
set level, then another buy position is not opened (and should have been opened by TS).
I have prescribed a certain price in the Send order lines - price section, see the code below.
My task is to write the right code in the EA = to open one more buy position after opening buy position,
, if the price goes down to a predefined level - open one more buy position. And so whatever level
the price has not crossed in the code - always open buy position, no matter how many
There are open positions at the moment.
Yes that's right, because this EA only opens bai on the continuation of the move and
only after closing the buy position on the take ....