I am an experienced C# programmer but new to ninjatrader. I want to add a long and a short button to my ninjatrader. When pressed the button places a buy stop above or below an indicator value. For example, I want it to place a buy stop short order below the most recent zigzag low. Could you give me high-level guidance on how to achieve this? My initial thoughts based on my knowledge of ninjatrader is to create an indicator with two buttons and that also has an instance of the zig zag indicator. When I press the short button, it would loop through the instance of the zig-zag indicator backwards from the current bar and find the most recent zig-zag low and then use that value to place the order? Is that the recommended approach?
Thank you.
Comment