Price pullback + pending order system
-
Hello guys, I am trying to achieve the following.
I have an indicator which indicates when a double top or double bottom forms (not repainting). When this happens, I want to wait for a pullback to the middle of the structure (see screenshot point 1), to place a pending order (i.e. for double top, place a sell stop at the signal line, see point 2 in screenshot).
The custom indicator is correctly imported as I use it successfully for another system. I tried to do this project, but no orders are placed and no order triggered: https://fxdreema.com/shared/Df2d9HnDdMy approach:
- First group of blocks: When the red candle forms (uniquely identified by value 12 and value 14 of the custom indicator being visible), I store the 4 relevant points in 4 variables via formula and modify variables blocks (entry point at red signal line, SL at upper line, TP (= 1:1 RR), pullback trigger line which is in the middle between the SL line and the signal line).
- The second group of blocks checks at every tick if the price exceeds the pullback trigger line. In case this happens, a pending order is set with the parameters calculated in the first block.
Do you have any idea why the current logic / blocks don't yield the expected results?
Example:

-
@fm2020 Apparetly the logic is correct but I have no idea if this custom indicator's burffers are correctly identified by fxDreema. Can you please upload a screenshot showing you 'My custom indicator' window for it?. Especially for its buffers.
-
Screenshot from the chart window:



-
@fm2020 Ok. That is the problem. None of these colours is identified by fxDReema. This is why the EA doesn't work. You will have to create the manually. At least those you need, not all of them necessarily. In these tutorials you will find out how:
https://fxdreema.com/forum/topic/4208/tutorial-06-my-indicators-in-fxdreema
https://fxdreema.com/forum/topic/9105/tutorial-working-with-ex4-ex5-indicator-file -
Ok, thanks, I had to create a new block for each candle, which was a lot of work but seems to achieve what I wanted.
But I have a new problem:
As the algo reads through 28 FX pairs, I put at the top of each block the "Set Current Market for Next Blocks" block, with a constant consisting of all FX pairs (so I dont have to attach to 28 pairs x2 (as I look at 30M and 1H). What happens now is that if it finds a signal on 1 pair, it will place a trade for this pair. But because I have the "No trade/order" block at the end of each block, it will not place orders for a 2nd, 3rd etc. pair if a new signal is found? How can I restrict the "No trade/order" block to apply only to 1 pair and one direction (i.e. there should be only 1 sell in EUR/USD and 1 buy in EUR/USD, and the same for anyother pair, just not 2x or more a buy or sell in any pair).The project:
https://fxdreema.com/shared/0NeK0t4gbThanks!
-
@fm2020 use this setting:

Also, you can cut 90% of your project by using a loop. Create a variable for the candle ID, increase it by 1 in each loop iteration.
-
Great, thanks! Still testing but this has solved the issue I think.