I am trying to add an additional orders on top of an additonal order if conditions are met but no matter how I try , its not working for my back testing strategy. Can you help.
if (Position.MarketPosition != MarketPosition.Long)
{
if (condition3)
{
EnterLong(1, "Long");
}
}
else // If already in a long position
{
if (condition77) // Place additional order if condition met
{
EnterLong(1, "Long");
}
if (condition4) // Exit long position if condition met
{
ExitLong("Long", "Long");
}
Comment