Is it possible to create 2 exit conditions with an esle if statement within NT8?
For example, I want the trades to exit on the first exit statement. But IF the second exit statement happens before the first exit statement; exit on the second statement. I hope im explaining this correctly. Also if this is the appopriate way to do this, is there a way to complete this in strategy builder or manually coding is the only option for an else if statement.
if (CrossBelow(DEMA1, SMA1, 1))
{
EnterLong(Convert.ToInt32(DefaultQuantity), "", @"enterLong1");
}
If (CrossAbove(DEMA1, SMA1,1))
{
ExitLong(Convert.ToInt32(DefaultQuantity), "", @"enterLong1");
}
else if (CrossAbove(DEMA2,SMA2,1))
{
ExitLong(Convert.ToInt32(DefaultQuantity), "", @"enterLong1");
Comment