Keypress Events Sample Code

Custom indicators, trading strategies, data export and recording and more...
rickbarlow
Posts: 43
Joined: Mon Feb 08, 2021 5:37 pm
Been thanked: 1 time

Keypress Events Sample Code

Post by rickbarlow » Thu May 27, 2021 4:54 pm

I would like to be able to toggle on/off the execution of some functionality within my indicator based on a keypress event.

Example: Some event happens, and I want to start monitoring and displaying liquidity added in a specific range. Then, after a certain amount of time, when I'm no longer interested, I want to turn the functionality off.

Do you have any sample code which shows how keypress events can be passed down to my indicator and handled?
 

Andry API support
Posts: 548
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 25 times
Been thanked: 85 times

Re: Keypress Events Sample Code

Post by Andry API support » Fri May 28, 2021 6:57 am

Hi, take a look at my post of Aug 08, 2019 - there is a code example.
https://bookmap.com/forum/viewtopic.php?f=21&t=134#p891
In the example, there is an order placed when some key is pressed but you can perform any action.

Post Reply