Login Page - Create Account

Support Board


Date/Time: Sat, 06 Sep 2025 23:11:00 +0000



Post From: Quickly testing multiple conditions for acsil trading custom studies

[2025-02-05 19:23:41]
User719512 - Posts: 321
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;