Login Page - Create Account

Support Board


Date/Time: Tue, 22 Apr 2025 12:54:18 +0000



Post From: possible to attach a control bar button to a particular study?

[2025-01-21 19:11:05]
n8trading - Posts: 44
I'm using ChatGPT to create the code for this button and I've got it to work after several mistakes that ChatGPT was making but ultimately figured out and corrected. Pressing the button sets the trade symbol to MNQ, and releasing the button clears the trade symbol value.

However, I want to add another function to set the order quantity back to 1 when releasing the button and reverting back to NQ. But ChatGPT isn't finding a way to do this. Is there a function in the API that I can point ChatGPT to that can simply ensure that the trade quantity is set back to 1 when switching from MNQ to NQ? I am using the stock order quantity buttons (OrdQty 1 for example) in my control bar. Is it possible to have the code depress that button, or is there a better way to set the order quantity in the trade window back to 1?