Inside you will see this, test and you can see the difference. When you place a trade with a buy/sell block it is a parent trade, when you modify (change lot size etc) it is a child trade. Every time you modify a new trade is created.
Posts made by jstap
-
RE: hedge without conditionposted in Questions & Answers
-
RE: EA如何实现判断最近的已持有订单盈利某个值时,才允许新的开仓交易posted in Questions & Answers
Get the last trade value in something like bucket of trades, then check this value before adding a new one.
-
RE: Multiple Ordersposted in Tutorials by Users
Add a shared link, project page - projects - create a shared link - open in a web page - copy address bar and past here
-
RE: Multiple Ordersposted in Tutorials by Users
Have you got a no trade block above all other blocks?
-
RE: I want to add pips with spread and use it for pending order, i need helpposted in Questions & Answers
In what way? This will get the spread value: MarketInfo(Symbol(), MODE_SPREAD)
-
RE: hedge without conditionposted in Questions & Answers
In the pink blocks, you have settings for parent/child trade, a new trade would be a parent, and modifying the existing one would be a child trade.
-
RE: Setting RSI and MA custom indicatorsposted in Questions & Answers
Put a label in the comment box to see what it receives, delete one and put all buffers together
I would set buy/sell in the no position block while testing so as not to limit the actions.
Once you have the values returned you will know if the indicator should work on your project -
RE: Setting RSI and MA custom indicatorsposted in Questions & Answers
This is why we say to create a new question not add to someone else's, start a new question and I'll have a look.
-
RE: Setting RSI and MA custom indicatorsposted in Questions & Answers
On the on trade tab I mean something like the picture, only placing a trade rather than BE:

-
ZigZag directionposted in Tutorials by Users
I was thinking how to get the current ZigZag direction, and I thought if the value is checked every tick then the reaction time would be the quickest it can be. So I worked out how to achieve this without any custom code.
The following project is how I've managed it:
-
RE: stoch rsi indicatir parameters setting in fxdreemaposted in Tutorials by Users
Ask this in questions, but stoch rsi is a custom indicator, start by getting this in your FX, and then you will have the values to work with.
-
RE: Pls help me, the remote destop window update so i want the ea run as the previous latest value wasposted in Questions & Answers
Above will likely work but should have a for each trade above. Personally, I would save and read to/from a global terminal variable.
-
RE: no trade/order nearby problemposted in Questions & Answers
Probably because you need a no trade above the no trade nearby.
-
RE: hedge without conditionposted in Questions & Answers
on chart tab, purple trade closed - pink for each trade - buy/sell with the just closed values in a loop. Set the group to all and will work from manual trades.
-
RE: Time bomb block reliabilityposted in Questions & Answers
This is a good question, and I think it is just the luck of the draw, sometimes whether broker, market or something else the time is missed at that particular (micro) second. Possibly your setup, it can be looked at if you share the link but may make no difference.
-
RE: Close First and Last positionposted in Questions & Answers
Pink blocks, for each position newest to oldest is the last, oldest to newest is the first
