(1) Suppose my strategy has a code that wants to go Long 100 contracts and after some time wants to go short 120 contracts.
What would be the difference between CASE 1, and CASE 2
---
(a) CASE 1
if (condition1) EnterLong(100);
if (Position.MarketPosition == MarketPosition.Long & condition2)
{
ExitLong(100);
EnterShort(120);
}
---
(b) CASE 2
if (condition1) EnterLong(100);
if (Position.MarketPosition == MarketPosition.Long & condition2) EnterShort(220);
---
(2) A separate question, I searched a bit on this forum, but I couldn't find where can the "string signalName" be useful. Is the primary use for "signalName" for tracking the Order history (say in a collection of Orders) or something like that ?
Comment