help for deploying pending Untill (max_trade) executed
-
Hello,
I've created a robot that places pending orders. If there’s no buy (position or order), it deploys a buy stop order, and similarly, if there’s no sell (position or order), it deploys a sell stop order. When any order (buy or sell) is triggered, all other pending orders are deleted.
The goal is to have once at a time & (Max_trade) orders triggered per day on each side (buy/sell).
However, the issue is that the robot only deploys two pending orders in total, including the deleted ones.I want the robot to keep deploying pending orders until two or (Max_Trade) orders are actually executed on each side (buy/sell).
And obviously onece trade at a single time.Thank you! @jstap @l-andorrà
bellow that link, https://fxdreema.com/shared/w59ffWJuc
-
Is anyone for help??? @jstap @l-andorrà
-
Why are you using a if position block above buy/sell, Surly this prevents any trade from being placed.
-
@jstap can you please suggest me, which block shoud add that can robot to keep deploying pending orders until two or (Max_Trade) orders are actually executed on each side (buy/sell). and order only once at a time.
-
I chenge with No position/ order also not working as wanted
link below
https://fxdreema.com/shared/TKB0SKC5d -
No position will only allow 1 trade, if position works once there is trade, maybe pink blocks pips away to place others, you do not need to count when an order is placed, there are blocks that will do this (you can see them on the left of this picture}:

-
@jstap, sorry, I think am not clear well. profit or loss whatever happened I want only "max_trade" times trigger order. means set a block to keep count of how many trades have been successfully executed then once reached target then stop deploying pending order.
please send a shared link, that can help me to better understand. -
This is placing an order when needed? Do you want other orders to be placed while other orders/trades run, then delete orders when max trades are met?
-
@jstap place a buy and a sell pending order.
If one order trigger, then make delete all pending order.
After completing triggered order then place again buy and sell pending order.Untill 2 buy order and 2 sell order completed.
Note:- If 2 buy order completed then place only sell pending order, until 2 sell order complete.
I mean, I want placing pending order until meet 2 buy and 2 sell order completed.
If reached the meet then close trade. I hope understood the requirement. -
See if what I have done on the on trade tab does what you need: https://fxdreema.com/shared/ckLQyzOAd
-
@jstap thanks for your effort, but my question is, how to used those drawing block below picture that I can get complete 2 buy or sell executed order.

https://fxdreema.com/shared/8b0Go234c please provide link
-
Why have you moved everything onto on trade? on tick does all with occasional necessary actions on trade