Hey Jonathan,
It's been awhile since I've messaged with complex datapoints but going based on what you're trying to do try: if(eq(1_AutoStart,1),if(eq(4_AutoHealService,1),if(if(eq(3_LatestState,1),0,1),if(lt(2_RunningCount, 0_SampleCount*0.9),1,0),0),0),0)
I looked at old complex datapoints i had to made that were custom and then the documentation here if you havent seen it: https://www.logicmonitor.com/support/logicmodules/datasources/datapoints/complex-datapoints
I tested to see if the complex datapoint gets accepted as valid by just making dummy datapoints with those names, but i cant confirm without actual data.