Is probably the flag state, you want it to only allow the close if DD already considered. You could use a bool variable so you can see the state in a comment.
Posts made by jstap
-
RE: Close trade at X pips profit after it was in Y pips negative DDposted in Questions & Answers
-
RE: Close trade at X pips profit after it was in Y pips negative DDposted in Questions & Answers
This should work fine, is it doing what you need? this needs a trade placed and you want to set the flag back to false, the flag may start false so you may want to reverse, maybe reset flag under the close block.
-
RE: Close trade at X pips profit after it was in Y pips negative DDposted in Questions & Answers
Add a share link so block internals can be seen. This should be in 2 trees for each tree starting with a for each trade block, 3 blocks for each tree.
-
RE: Close trade at X pips profit after it was in Y pips negative DDposted in Questions & Answers
pips away -Y pips from open set flag true, if true and +pips from open close trade
-
RE: Enum Problems*posted in Questions & Answers
Add a shared link to look at, you can add a mixture of these words so I don't know why it's not working, I might see why in the shared link. You cannot use the same word in more than 1 enum in the same project, you either need to use the same enum for different constants, or slightly change the word. ENUM_TIMEFRAMES is a pre-determined enum so only works with the set MT list.
This https://fxdreema.com/shared/uDxrfFQ5e is something I did recently working on a very similar process
-
RE: Help, my EA is not opening tradeposted in General Discussions
You can delete the once-per-tick blocks, as is on the on-tick tab everything will happen every tick.
There doesn't seem to be anything obviously wrong, with finding the block causing no trade to be placed link out blocks, and when working add blocks back in. So use a process of elimination until you find the problem.
-
RE: How to stop entering trade mid way through a candleposted in Questions & Answers
It takes the trade on the 1st tick if you have it under the condition it will take on the 1st tick after the condition is true. you could try once per minute and put Period() in the box, this will use the current chart timeframe to take a trade only at the start of a candle
-
RE: Moving Average Channel Crossposted in Questions & Answers
Probably, backtest and any problems come back here
-
RE: Closing orders upon reaching a profitposted in Questions & Answers
You will need various trees so if trade is in loss close and close all profitable opposite trades, you can backtest this, and add a shared link if it's not doing as you want
-
RE: Closing orders upon reaching a profitposted in Questions & Answers
You probably need check profit (unrealised) - close all
-
RE: candeltimeposted in Questions & Answers
You can see how in here, the principle for the METAGOLD word is the same: https://fxdreema.com/forum/topic/19107/this-is-how-to-create-and-display-a-candle-countdown-timer/9
-
RE: Moving Average Channel Crossposted in Questions & Answers
Unless manually placed (in which case you would need to change settings), the trade count will never be greater than 0...
-
RE: تریلینگ استاپposted in Questions & Answers
Breakven block @ 10 pips BE
Trailing block start @ 10 pips - step @ 10 pips - stop @ 1 pipConnect trail block above break block, but no other in a separate tree and this should do what you want.
-
RE: 关于网格挂单里面没有马丁类型的可以选择posted in General Discussions
Ohh I see, this makes sense now, either is fine now I know... no disrespect meant
-
RE: 关于网格挂单里面没有马丁类型的可以选择posted in General Discussions
Ok but to me, it is not a layer it is a trade with a double lot
-
RE: 关于网格挂单里面没有马丁类型的可以选择posted in General Discussions
If it's single trades it's not really a grid? Add a shared link to show what you have done and say what you are trying to achieve
-
RE: is it possible to create EA to trade with Renko on Fxdreema?posted in Questions & Answers
I don't think so, have seen many people try but never seen it work. Maybe an indicator could work.
-
RE: Buttons Not showingposted in Questions & Answers
What exactly is this doing, and is it live or backtest? And do you mean the button is not visible?