Add Hot Key to Menu command

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Add Hot Key to Menu command

Postby xiupingge » Mon Mar 01, 2021 11:20 am

Hello,

Is there any way to define the Hot Key for menu command?
Like F5 -- Update Chart
Can we define the Hot Key for any menu command, even customer defined menu item?
Either by configuration on TradeStation or lua code is OK.

Thanks,
Albert
Attachments
HotKey.jpg
xiupingge
 
Posts: 24
Joined: Thu Jul 28, 2011 1:34 pm

Re: Add Hot Key to Menu command

Postby Apprentice » Tue Mar 02, 2021 5:14 am

What will be the funcion of this command?
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Add Hot Key to Menu command

Postby xiupingge » Tue Mar 02, 2021 9:07 am

Hi Apprentice,

Here attached my command, I expect to add hot keys like ctrl+1 to execute buy command, ctrl+2 to execute sell command, control+3 to execute close command. or use F1, F2, F3, ...

Thanks,
Albert
Attachments
HotKey1.jpg
HotKey1.jpg (10.27 KiB) Viewed 1973 times
xiupingge
 
Posts: 24
Joined: Thu Jul 28, 2011 1:34 pm

Re: Add Hot Key to Menu command

Postby Apprentice » Wed Mar 03, 2021 12:56 pm

Your request is added to the development list.
Development reference 245.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Add Hot Key to Menu command

Postby Apprentice » Thu Mar 04, 2021 12:57 pm

It isn't possible.
One of the problems, how to select position to close.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Add Hot Key to Menu command

Postby xiupingge » Fri Mar 05, 2021 11:10 am

Hi Apprentice,

I only have position for this case. So I can go through all the positions and close in the code.
Just don't know how to add hot keys or capture keystroke event to execute the operation.
If we have way to define the hot key or capture key click event, I need not go to the menu every time.
is there any code example for it?

Thanks,
Albert
xiupingge
 
Posts: 24
Joined: Thu Jul 28, 2011 1:34 pm


Re: Add Hot Key to Menu command

Postby xiupingge » Fri Mar 05, 2021 12:38 pm

yes, just use hot key, like F1 key instead go to the menu every time.
Is that possible?
xiupingge
 
Posts: 24
Joined: Thu Jul 28, 2011 1:34 pm


Re: Add Hot Key to Menu command

Postby xiupingge » Tue Mar 09, 2021 10:55 am

Hi Apprentice,

Thank you for your confirmation.

Best regards,
Albert
xiupingge
 
Posts: 24
Joined: Thu Jul 28, 2011 1:34 pm


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: Bing [Bot] and 11 guests