Help, the condition 6 does not works
-
I need know why the condition 6 does not work, I need when the price reaches my take profit open another operation
-
Becaused of this - https://fxdreema.com/demo/mt4-wrong-closing-rule
"OR" is not needed. -
when I open an operation could not obtain data from this operation, such as opening price, ticket id, group ..... I don´t now how to get this data for all other operations work
I explain, I intend to do is an advanced martingale, doubling lots on every purchase, but not touching the stop lost, all operations are open until the last operation touch the take profit to close all.
which is the right way to get this data?
https://fxdreema.com/shared/0yd94rsoe
thaks for your help
-
In "Buy/Sell now" when you use Martingale and you have currently working trades, it first checks the lot size and profit of the newest of them to decide what will be the lotsize of the next one
Your project looks overcomplicated and it has blocks and settings that are wrong. Like the settings in block 20. I even renamed those "Terminal Variables" to "Terminal Variables (This is NOT for Variables)"
-
if I have some things wrong, attempt in various ways, but do not get the opening price or ticket ID of block 4
-
As these values are obtained
-
http://prntscr.com/aaw07k
https://fxdreema.com/demo/mt4-variables (block 4)http://prntscr.com/aaw116 "(on trade)..." is not to be used under "on Tick". "(in loop)..." is to be used with "For each Trade" block.
https://fxdreema.com/demo/mt4-loop-how-it-works -
ok I understood certain parameters, but can not make it work
you can help me solve this.
That blocks and that parameters are required, please
-
Open Price is a value like 1.2345 (price). Take Profit is a value like 10 (pips). If you do 1.2345 + 10, you get 10.2345. But even if we convert that 10 into 0.0010, what is the point? You will have the price level where Take Profit is. TP can be get directly anyway, without any calculations
-
I'm not calculating the Take Profit, the EA opens another operation depending on the opening price of the first order, adds or subtracts pips from opening price of the first order, to open another order
-
the EA needs the open price of the first order, wait until the price goes up or down to decide the following order
-
I don't understand what is the idea here. "Buy now" creates a new trade with Open Price equal to (or very close to) the Ask price. Let's say that Ask is 1.0020, so then Open Price will be 1.0020.
In "Buy now" you can obviously set Take-Profit in pips, let's say 7.5 pips. Why pips? Because we are all used to it. This value of 7.5 is nowhere recorded. This value is immediately and automatically converted to 0.00075 and added to the open price, so the actual price level for Take-Profit would be 1.00275.
Then, when the trade exists and you want to get Take-Profit, it's value will be 1.00275. It will not be 7.5. There is no need to add 7.5 to the Open Price, because Take-Profit already exists, it can be read and it's value is 1.00275. Take-Profit is one of the properties of each trade or order and it exists as a price level.
-
ok I explain again
the first buy it opens in 1.00200 and has a TP of 75, when get to 1.00275 will close automatically, in that point 1.00275 the EA opens another buy (this buy depends the openprice of the first buy more the sum in this case 75)
How do I get the value of 1.00200? to add 75 or 90 or 100 and when the market price reaches that point open the next buy
How do I get the value of Openprice of the first purchase?, for adding xxx amount and wait for the market price reaches that value and get the signal for the next purchase
-
Try this - https://fxdreema.com/shared/REwhx7Rzb
This gets Open Price of the latest closed trade and check if the price moved N pips away from it.Also you can work with pending orders. There are block named like "Buy pending orders in grid".
But if you don't want to have gap between TP of the old trade and OpenPrice of the new trade, then you can just open that new trade when no trade exists. This is as simple as No trade -> Buy now
-
not work, open an order when the EA start
-
check this and deletes the post after seeing it if not corresponds to forum
changes MaxOrder to 20
-
__not work, open an order when the EA start[/quote:3u5bbkcb]
Yes, obviously. When backtesting you start with 0 trades back in the histry, so then "For each Closed Trade" have no chance to work. For that reason I am creating a single trade to start with something.Now you added Condition. You can add new and new ideas, but I can't show you all the things in a single post. If you add a block, the whole logic may change, it depends. So if you want to know something specific, ask me for it and I will show you very specific case, not a whole complete EA
-
if you testing the DEMO EA, already have a general idea of how to operate the EA
then back to the previous point, as adding or subtracting pips to open price, to compare with the market price and generate another order
This might be the more logical way but does not work, not open a second order
-
Please, take a look at some examples here - https://fxdreema.com/examples/ This is more like tutorial, because those examples are some of the basics + explanation of what is going on.
Especially look at these - "Wrong: Closing rule" and "Custom loop: How it works (with "For each Trade")"
Lately I actually added a new option to make a block wait, for this you can look at the last example.