27 lines
945 B
C#
27 lines
945 B
C#
using System;
|
|
|
|
namespace NT8.Adapters.NinjaTrader
|
|
{
|
|
/// <summary>
|
|
/// Provides NT8OrderAdapter access to NinjaScript execution methods.
|
|
/// Implemented by NT8StrategyBase.
|
|
/// </summary>
|
|
public interface INT8ExecutionBridge
|
|
{
|
|
/// <summary>Submit a long entry with stop and target.</summary>
|
|
void EnterLongManaged(int quantity, string signalName, int stopTicks, int targetTicks, double tickSize);
|
|
|
|
/// <summary>Submit a short entry with stop and target.</summary>
|
|
void EnterShortManaged(int quantity, string signalName, int stopTicks, int targetTicks, double tickSize);
|
|
|
|
/// <summary>Exit all long positions.</summary>
|
|
void ExitLongManaged(string signalName);
|
|
|
|
/// <summary>Exit all short positions.</summary>
|
|
void ExitShortManaged(string signalName);
|
|
|
|
/// <summary>Flatten the full position immediately.</summary>
|
|
void FlattenAll();
|
|
}
|
|
}
|