• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 6:22am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 6:22am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

MT4 Trade Tab font size 3 replies

Chart Event - Drag Order from Trade Tab 1 reply

place trades by Reading data from the Experts tab 4 replies

MT4 News TAB MISSING 3 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 1
Attachments: Getting a handle to open trades in the open trade tab
Exit Attachments
Tags: Getting a handle to open trades in the open trade tab
Cancel

Getting a handle to open trades in the open trade tab

  • Post #1
  • Quote
  • First Post: Aug 27, 2020 9:10am Aug 27, 2020 9:10am
  •  dawsonsg
  • | Joined Oct 2008 | Status: Member | 127 Posts
Hi Guys,

Could someone let me know if what I want to do is possible?

I am creating a Trade Panel (Buttons on the chart) that will allow me to open trades and dynamically set the lot size, tp and sl.

What I want to know is if there are open trades in the order window in terminal (pls see attachment) is it possible to click on the trade so I can get a handle to that particular trade so I can perform functions such as set stop losses to breakeven (for example).

Ive looked through the reference guide but cant see antything.

Thanks
Steve
Attached Image (click to enlarge)
Click to Enlarge

Name: OpenOrderWindow.PNG
Size: 27 KB
  • Post #2
  • Quote
  • Aug 28, 2020 8:19am Aug 28, 2020 8:19am
  •  LoRio
  • | Commercial Member | Joined Oct 2012 | 38 Posts
No , unfortunately you will have to create provisions for the users to choose the trade they want to edit .

You can choose to have a selector with a ticket display (next + previous btns)
or
you can go with a fully fledged table ,allowing multiselection.
 
 
  • Post #3
  • Quote
  • Edited 9:18am Aug 28, 2020 9:07am | Edited 9:18am
  •  tzamo
  • Joined Nov 2017 | Status: Member | 787 Posts
Quoting dawsonsg
Disliked
Hi Guys, Could someone let me know if what I want to do is possible? I am creating a Trade Panel (Buttons on the chart) that will allow me to open trades and dynamically set the lot size, tp and sl. What I want to know is if there are open trades in the order window in terminal (pls see attachment) is it possible to click on the trade so I can get a handle to that particular trade so I can perform functions such as set stop losses to breakeven (for example). Ive looked through the reference guide but cant see antything. Thanks Steve {image}
Ignored
Hi Steve,
It may not be possible to click. However, depending on how the trades were placed you can select them via:
Inserted Code
bool  OrderSelect(
   int     index,            // index or order ticket
   int     select,           // flag
   int     pool=MODE_TRADES  // mode
   );

So if you need to have the functionality for the panel to modify orders, the easiest way is to build it as an EA. Then you can have corresponding buttons to cycle what order is selected and to then carry out the function such as setting B/E. There are probably many other ways of doing this anyways.
Hope that helps ^_^

edit: just thinking if you really wanted to do it like that, you can go with a table as suggested by LoRio (could be expandable with drop down triangle). It could look like the "Trade" window in your example and you will be able to have on mouse click events to make them selectable.

Regards,
Tzamo
"Only you can Make the Future you will be proud to be a part of..." -Me
 
 
  • Post #4
  • Quote
  • Last Post: Aug 28, 2020 7:10pm Aug 28, 2020 7:10pm
  •  dawsonsg
  • | Joined Oct 2008 | Status: Member | 127 Posts
Thanks guys,

I really appreciate the responses. I am building a Trade Panel to automate lot sizes etc and want to automatically set SL' to breakeven etc. This is the last part of the EA so I'll give this ago.

Thanks again for your help.

Steve
 
 
  • Platform Tech
  • /
  • Getting a handle to open trades in the open trade tab
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023