I will attach the code for strategy I'm working on and a video of what's happening. Hopefully someone can help me.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Problems with Custom Strategy Buttons
Collapse
X
-
Problems with Custom Strategy Buttons
I have a button template that I'm trying to code to execute orders when clicked. 24 buttons in all, but I'm starting with simple limit and market buys and sells. Well, I have the buys and sells working, however, if I'm long and I click the buy button again, no additional buys are made. Same is true with sells. Another issue is when I enter a trade by clicking buy or sell, and then I click the opposite button to exit the trade, what actually happens is the trade flips to the opposite direction. So instead of going flat, I'm now in the opposite trade. These are the issues I'm hoping someone can help me with at this point. Note that I'm utilizing ATM strategies with these orders meaning I've coded the orders to be managed by the ATM strategy that I have loaded at the time.
I will attach the code for strategy I'm working on and a video of what's happening. Hopefully someone can help me.
Last edited by Trader146; 05-10-2024, 09:20 PM.Tags: None
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
53 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
32 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
195 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
358 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
277 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
