Support Board
Date/Time: Sat, 15 Mar 2025 03:00:34 +0000
Post From: Quickly testing multiple conditions for acsil trading custom studies
[2025-02-05 19:23:41] |
User719512 - Posts: 303 |
ChatGPT might be beneficial to you as well User887126. Will help with learning as well as refactoring or updating your code to make it more modular to support this logic. bool allConditionsMet = true; // Assume true, will check conditions if (Input1.GetYesNo() && !IsMovingAverageCrossover(sc)) allConditionsMet = false; if (Input2.GetYesNo() && !IsCloseHigherThanPrevious(sc)) allConditionsMet = false; if (Input3.GetYesNo() && !IsVolumeAboveMovingAverage(sc)) allConditionsMet = false; if (Input4.GetYesNo() && !IsBullishCandle(sc)) allConditionsMet = false; if (Input5.GetYesNo() && !IsRSIAbove50(sc)) allConditionsMet = false; sc.Subgraph[0][sc.Index] = allConditionsMet ? 1.0f : 0.0f; |