Incremental pending order creation
-
Hi all,
I have a trade manager that i created and it worked great until the Oanda changed their guide lines.I need to be able to click a button on the chart and place pending orders. The button works and it places pending orders but all the same size.
So 10 orders at 1000 each.
I need to be able to click that same button but for every pending order i want it to increase its lot size.
So if i place 10 pending orders we should get:
1000
1001
1002
1003
and so on.Can anyone give me some insite on how to do this with pending orders?
-
It is feasible, but you will need to create some variables to manage those numbers. Do you have any initial project to begin with?
-
Here is the project. I have alot going on with it. The pending info is on the chart. Right now its a fixed lot size that you create on a constant.
-
@tintman7 Wow, that is a project! I will be honest to you. Looking for the way to embed more variables into your project can be exhausting. I suggest to create a completely new project just dedicated to do what you asked for in your first post and then mayble you will have some ideas to incorporate it into your project. More than that is asking for a lot of free help, I'm afraid!

-
Understood. Yea I do have alot going on there. Here is a lighter version i was working on.
https://fxdreema.com/shared/IuWuk5u3c
I was working with the order gradation but it makes the lot sizes more than i am looking for. Really just wanted it to be in smaller increments to meet the FIFO requirements
1000
1001
1002
1003
and so on.Hope that helps thx for the input tho. Appreciate the help
-
@tintman7 Is that part the only one that doesn't work? Are all those objects on the 'on chart' tab working correctly?
-
@l-andorrà
Yes everything works without a problem and even the gradation works, but cant seem to find a good way to do the lot size i want.Here is an updated version.
-
@tintman7 My suggestions would more or less the following. Now you are using an input parameter to insert the grid volume. I can't see any structure to modify it incrementally. This mean you should create it this way:
- Your INITIAL grid volume can still be used to establish the first value (1000).
- The you should create the incremental calculaing structure on the 'on Trade' tab. There you can choose a 'Closed trade' block so that...
- Every time a trade is closed the whole grid volume is recalculated.
- Then the new value is inserted as a variable (not as a constant like now) in all buy/sell pending order blocks.
And that's a lot or work!

-
Ok i can get ride of the gradation. That was just my attempt to have it change the lot size everytime pending orders were created.
I can do a fixed lot size then maybe a adjust to add to the next lot size?
-
@tintman7 It is a possibility, yes. But please consider to use the 'on Trade' tab as much as possible. I'm not sire if using the 'on chart' tab for ALL your pending orders is the most efficient one.