It's not possible to associate a position close with a given position entry in RightEdge's drag and drop. You will have to use some code for this.
To do so, just remove the "Close Position" actions from your system, but leave all 4 triggers there as well as the position entry actions. Rename your position exit triggers to "CloseLong" and "CloseShort" (which you can do by double-clicking the name in the system designer).
Then, use the following code for your Symbol Script's NewBar method:
public override void NewBar()
// Put your trading code here
if (OpenPositions.Count > 0)
Position pos = OpenPositions;
ITrigger closeLongTrigger = SystemData.Triggers["CloseLong"][Symbol];
ITrigger closeShortTrigger = SystemData.Triggers["CloseShort"][Symbol];
if (pos.Type == PositionType.Long && closeLongTrigger.IsTriggered)
else if (pos.Type == PositionType.Short && closeShortTrigger.IsTriggered)
This code checks to see if any position is open, and then if it does it will close a long position if the CloseLong Drag and Drop trigger is triggered, and it will close a short position if the CloseShort Drag and Drop trigger is triggered.