What tab are you running this on?
Can you share the project so we can look at it.
I use "on chart" for my delete pending button and delete objects by name
What tab are you running this on?
Can you share the project so we can look at it.
I use "on chart" for my delete pending button and delete objects by name
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?
@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.
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
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.
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?
Here you go some got cut off. This has a few more updates since the last post
Ok so i got it working. All buttons seem to be good. Gonna keep testing it.
New version
@l-andorrà Ok great thank you for the reply. I am actively tring to fix this tring different things but no good so far. I can run it the back test and it works but not on a real or demo account. Odd
@nacim Back test wont work due to this running on a timer. If you put all the blocks on the TICK tab then it works fine in the back test. Also you can try it on a demo and it works fine. Just having a issue with the close features not closing the oldest trades first. Working on fixing that now.
Ok so after some more testing i cant get the CLOSE ALL buttons or the CLOSE $$$ buttons to work. I get a FIFO violation from both of them. I have the blocks to check for the oldest to newest trades first them a block to close them.
Maybe its the block itself that i am using that is not filtering the trades correctly.
Heres what i am lookin for:
CLOSE ALL- Close all trades running in profit or loss
CLOSE $$$-Close all profitable trades
Hope someone can help with this one.
Here is the recent version:
@l-andorrà Thx my thought was that i did not want to wait for a tick for these to execute, so rather the timer set to 1 second.
Re: [Trade Manager](/forum/topic/7529/trade-mananger
Hello all,
Here is a updated version of the trade manager. Looks like i have it all working correctly. I was testing all weekend and will be running a demo on it today.
Can anyone look this over and give it a shot as well for any tips or ideas that can be added. Let me know anything you think.
Thx,
Tintman7

I tried this way as well
@fxdreema can you take a look at this for me when you have a chance please?
I can get the orders input when DP BUY 1 or DP SELL 1 is pushed. As well as the DELETE PD button works fine. THe second buttons DP BUY2 and DP SELL2 dont unpress when clicked on the screen. The orders stil show up but the button does not reset.
Also the stop loose button dont change the orders on all of them when pushed. Any ides as to why or what i can clean up?
Re: Trade Manager
Here is a updated version of it. Still seems to have a problem tho with random trades not being updated with the new stop loose. Can anyone look at this for me for some pointers?
@l-andorrà
Yes all features work so you can use it, and after more testing i did find that the EA would modify orders that were filled by the EA but not orders that were already filled. I used it today for trading and it worked great.
Good luck using it, hope it works well for you. This was something i could not find on MT4 that worked for me. I am going to add some more buttons to it so it has different SL levels to choose from and some other ideas i have as well.
Let me know how it works for you.
Here is the updated version i am testing now.
Hello,
I am looking for some guidance on a issue with a trade manager i am working on. I have it draw the buttons on the chart as well as it being able to pull pending orders both ways and delete them from the charts. The issue i am having is the modify the stop lose button i have. The button shows it is pressed but it does not change the trades i have going already with stop loses or take profits. I wanted to have 2 buttons to do this. So each could have different settings. Maybe its something with the button settings? Any help would be great.
Thank you
Tintman7