@baccicin I use a loop for this, you can adjust to do as you require: link text
You can use single candle conditions to do this but I find this the easiest.
Posts made by jstap
-
RE: range of candlesposted in Questions & Answers
-
RE: Create a pending every new trade at fixed distanceposted in Questions & Answers
@meshii As others have said, you may find that your broker wont allow a pending placed at such a small distance, check your journal for info on this, on the on trade tab you have purple blacks that act only on specific trade information, you also have a trail pending block so if you have to place a further distance away you can at least trail behind price.
-
RE: How to check if the last 30 candles are closed above moving average?posted in Questions & Answers
@zhahz The other examples work but, I prefer to use the loop in this link: link text
This will reset to 0 whenever the condition is false.Hope this helps
-
RE: How to delete pending order after 5 barposted in Questions & Answers
@limited3an Something like this should do as required link text
-
RE: Help convert this indicator to eaposted in Questions & Answers
@ambrogio You may be right but for me I could only get values in 3 buffers and these lined up with the 3 lines.
-
RE: Close pending orders over weekendposted in Questions & Answers
@didymario7 What is in the link will set the variable every time a new order is placed, think will only change if buy is added, as long as the last order placed is the one you want to replace it's all good.
-
RE: Close pending orders over weekendposted in Questions & Answers
@didymario7 The same parameters you used to make the original pending will need to be in the Mon buy/sell block, otherwise you will need a set up like this link text this is how to keep the values for buy in variables and use them, if you have more than 1 it will reset the variables.
-
RE: Close pending orders over weekendposted in Questions & Answers
@didymario7 As I said in my last post, use the same set up as delete but have it set for monday and instead of delete have buy/sell blocks.
-
RE: Close pending orders over weekendposted in Questions & Answers
@didymario7 Don't know how to reopen an exact order but, day block-time block-delete pending orders will remove all on a Friday
Same again with buy/sell pending will replace what you want on Monday.
-
RE: Trailing only profit (after offset) regardless of Stop Loss positionposted in General Discussions
@mohamed80 In your check unrealised it will go from 1 to 2 to 3 but you have it doing nothing if true or false.
For the pink blocks every tick it will modify stops to TP1 then to TP2 then to TP3, so you need a condition before each modify to stop them interfering with each other this is why I separated them, you can have for each trade>condition>modify-from yellow condition another condition>modify and so on so whenever a condition is false it moves onto the next. -
RE: Does "Deinit" ACTIVATE when PC is turned of or forex hours close?posted in Questions & Answers
I am not sure but as it stands for de-initialise and to my knowledge only works when EA is removed from chart, I doubt switching PC off or trading hours closing would have any affect.
-
RE: Trailing only profit (after offset) regardless of Stop Loss positionposted in General Discussions
@mohamed80 As is you have all in line, the logic here is one block has to be true before the next activates, but if block 1 is true it activates 2, but as soon as block 1 becomes false it will stop 2 & 3 activating.
-
RE: WHAT DOES THE LOOP BLOCK DO????posted in Questions & Answers
@bk7 In simple terms this loop just loops the conditions in the blocks surrounding it.
-
RE: Trailing only profit (after offset) regardless of Stop Loss positionposted in General Discussions
@mohamed80 Because they already have what's needed inside of them, not always but generally using blue blocks separate to pink is the preferred route, in this case you would have gained no advantage.
-
RE: ZIG ZAG problem please help im new to fxdreemaposted in Questions & Answers
@scany21 On MT5 automatically viewed indicators is possible but I don't know how, on MT4 you need to save a template that contains all that is required, you can then use the apply template block in FX.
This post should lead you in the right direction for ZZ:
https://fxdreema.com/forum/topic/5060/how-to-use-zigzag-advancedHope this helps
-
RE: Trailing only profit (after offset) regardless of Stop Loss positionposted in General Discussions
@mohamed80 You need to have it set up more like this:

You may need a condition to activate/deactivate modify/breakeven, generally having 1 block to sort many is the way to go.
-
RE: WHAT DOES THE LOOP BLOCK DO????posted in Questions & Answers
It means loop the task, can loop the order if connected with buy/sell block.
-
RE: Help convert this indicator to eaposted in Questions & Answers
@ambrogio By all means @Ebukaitalian can try this, buffer 3 is just the bottom line so no reference to an arrow, put the indicator on the same chart as the EA and you will see that the arrows will rarely line up.
-
RE: How to store a set of conditions as a variableposted in Questions & Answers
Your condition are:
if candle 10 high is higher than the high of candles 1-9
&
if candle 10 high is higher than the high of candles 11-15
then
Save candles 1-15 lowI see no reason why this doesn't work as long ass conditions are met, I would put all results into a comment block so what is needed can be verified
. -
RE: Help convert this indicator to eaposted in Questions & Answers
@ebukaitalian There is no sell buffer, is just visual. the 6 buffers you can see on the picture are buffers I added to see what was there, none of them represent the arrows, this is why D, E, F have the same value.