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?
Keypress Events Sample Code
-
- Posts: 43
- Joined: Mon Feb 08, 2021 5:37 pm
- Been thanked: 1 time
-
- Posts: 548
- Joined: Mon Jul 09, 2018 11:18 am
- Has thanked: 25 times
- Been thanked: 85 times
Re: Keypress Events Sample Code
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.
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.