I wonder whether it is possible to create a clickable button using JavaFX or Java Swing, not on a GUI, but directly on the chart within a custom-written study?
I was able to build a clickable button on a GUI using JavaFX or Java Swing after watching a few YouTube videos. However, the question is how to integrate it within a study and use it directly on the chart, instead of generating a GUI. For example, when a user clicks on the button, it could trigger a customizable action, such as “place a limit buy order, with stop loss placed 1 or 2 ticks below the recent Swing Low and take profit placed 1 tick below the previous Swing High”, or something similar.
I know that we can use predefined keyboard shortcuts or mouse clicks (left/right single or double click, etc.) (Configure / Preferences / Orders / Submission), with a predefined exit strategy, but take profit or stop loss levels based on recent Swing High or Low can only be customized through custom coding.
This could be beneficial and very useful for scalping or day trading.
Any thoughts?
Thanks
I was able to build a clickable button on a GUI using JavaFX or Java Swing after watching a few YouTube videos. However, the question is how to integrate it within a study and use it directly on the chart, instead of generating a GUI. For example, when a user clicks on the button, it could trigger a customizable action, such as “place a limit buy order, with stop loss placed 1 or 2 ticks below the recent Swing Low and take profit placed 1 tick below the previous Swing High”, or something similar.
I know that we can use predefined keyboard shortcuts or mouse clicks (left/right single or double click, etc.) (Configure / Preferences / Orders / Submission), with a predefined exit strategy, but take profit or stop loss levels based on recent Swing High or Low can only be customized through custom coding.
This could be beneficial and very useful for scalping or day trading.
Any thoughts?
Thanks