Login Page - Create Account

Support Board


Date/Time: Fri, 31 Oct 2025 12:07:05 +0000



Post From: How to limit the number of open trades

[2018-11-13 23:00:16]
ForgivingComputers.com - Posts: 1150
Try adding parentheses around the two parts of the AND statement:
if ((Quantity == 0) && (sc.CrossOver(Cross_CloseOrLow, LowOfDay) == CROSS_FROM_TOP))

{

Result = (int)sc.BuyOrder(NewBuyOrder);

...

}

and see if that helps. Sometimes the logic isn't always what you want unless you are very explicit.