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 CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
167 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
88 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
128 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
208 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
185 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
