I need to evaluate the following indicators and make judgments, please tell me how to write a formula that can be used for strategic conditions.

Author: hope, Created: 2022-10-17 22:31:57, Updated: 2022-10-23 12:20:34

I need to evaluate and make judgments on the following indicators, please tell me how to write the conditions that can be used for the strategy.

//指标取值
// varip HVchmthresholdExtraHigh = chmthresholdExtraHigh == chm1
// varip HVchmthresholdHigh = chmthresholdHigh == chm2
var bool HVconditionExtraHigh = conditionExtraHigh
var bool HVconditionHigh = conditionHigh

//判断阳线或阴线
var bool kbar = na
kbar := close > open
hbar = kbar ? "阳线" : "阴线"                    //hbar 阳线
lbar = not kbar ? "阴线" : "阳线"                //lbar 阴线

Two things need to be changed:

The first condition for the strategy is: Kaido: The quantum energy column corresponding to the solar K line is shown in red Open space: the quantum energy column corresponding to the K line is shown in red

2 判断阳光或阴线 variable definition: var bool kbar = na, definition type has problems, needs modification, or needs new correct spelling. An argument of series string type was used but a series bool is expected). An argument of series string type was used but a series bool is expected).

Long = hbar == HVconditionExtraHigh and HVconditionHigh Short = lbar == HVconditionExtraHigh and HVconditionHigh

I can only write the conditions above, but this is definitely not correct, if combined with other indicator values, there will definitely be a problem, please guide me, write the conditions needed for the policy, thank you.

Note: ((I loaded the test indicator above and it doesn't work well on FMZ, it needs to be loaded on tradingview to get a good indicator display))


More

The Little DreamHello, write multiple indicators in one policy, you have to pay attention to whether there is a duplicate variable with the same name defined when multiple indicator calculations are implemented, if there is a definite difference to modify. Otherwise, one indicator defines a, the other indicator also has this variable, when they run separately is fine, put together they affect each other. Judging the sun ray and the iris is simple: close > open sun ray, close < open iris.