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 NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
54 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
130 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
71 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
44 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|
