Advanced Settings
Last updated
Was this helpful?
Last updated
Was this helpful?
The Advanced Settings panel in Lune Auto Trader provides users with deeper control over backend connectivity, order behavior, and retry logic when interfacing with NinjaTrader or Tradovate. These configurations are essential for traders who require precision, stability, and reliability when executing automated strategies in live or prop firm environments.
These settings are typically configured during initial setup and can be fine-tuned to suit your network conditions, risk preferences, or execution requirements.
Below is a breakdown of each field available in the Advanced Settings menu:
NinjaTrader Host
Specifies the IP address used to connect to the NinjaTrader interface. Default is 127.0.0.1
, which refers to the local machine.
NinjaTrader Port
The communication port used to connect to NinjaTrader’s AT Interface. This must match the port configured inside NinjaTrader (typically 36973
).
Order Placement Max Retries
The maximum number of attempts the system will make to submit an order if the initial submission fails. Helps prevent execution failures due to transient network or API issues.
Order Placement Retry Delay (seconds)
The delay (in seconds) between retry attempts for order placement. Useful for preventing rapid, repeated failures.
Minimum Contracts
The smallest allowable number of contracts per trade. Ensures all trades meet platform or prop firm rules.
Order Status Max Retries
The number of attempts the system will make to confirm the status of an order after it has been submitted.
Order Status Retry Delay (seconds)
The delay (in seconds) between retry attempts for status checks. Helps manage server load and pacing of status confirmations.
Max Order Resubmissions
Caps the number of times an order can be re-sent in case of execution failures, partial fills, or dropped connections. Helps prevent infinite retry loops.
Use Default Host and Port for Local Use:
Unless deploying across a remote server or custom infrastructure, keep the NinjaTrader Host set to 127.0.0.1
and Port to 36973
, matching your NinjaTrader AT Interface settings.
Set Reasonable Retry Limits:
For most users, 3 retries with a 2-second delay provides a strong balance between stability and responsiveness.
Increase delays slightly in high-latency or unstable environments to avoid overwhelming the interface.
Configure Minimum Contracts to Match Broker Rules: Especially important for prop firms or capital-restricted accounts, ensuring orders don’t violate contract minimums.
Cap Order Resubmissions: To avoid unwanted behavior during unstable API conditions, always define a safe limit for maximum resubmission attempts.