The IFFLogic function is used to conditionally return one of two specified true/false expressions.
IFFLogic(Test, TrueVal, FalseVal)
The true/false value of TrueVal if Test is true; the true/false value of FalseVal if Test is false.
Name | Type | Expression |
Test | TrueFalse | Specifies the conditional expression to check (such as Close> Open). |
TrueVal | TrueFalse | Sets the True/False expression to evaluate if Test condition is true. |
FalseVal | TrueFalse | Sets the True/False expression to evaluate if Test condition is false. |
The IFFLogic function enables you use a Test condition to determine whether to evaluate either a 'True' expression or 'False' expression.
This function is similar to the IFF function, however the second and third inputs are true/false expressions, not numeric values.
Assigns to Value1 the true/false value of the expression Close>Close[1] if Close>Open is true or the true/false value of the expression Open<Open[1] if Close>Open is false.
Value1 = IFFLogic(Close>Open, Close>Close[1], Open<Open[1]);
The IFFLogic function was developed by TradeStation Technologies, Inc.
2. LastBarOnChart(以下是easylanguage的解释):
The LastBarOnChart function is used to determine if the current bar being evaluated is the last bar on the chart.
LastBarOnChart
True if LastBarOnChart is the last charted bar. False if not.
None
In order to play a wave (sound) file only in the last bar of the chart you can write:
If LastBarOnChart Then
Condition1 = PlaySound("C:\window\ding.wav");
This function will return True for all bars on a chart with tick-based interval, which have the same date and time as the last bar of the chart.
1.if
2.islastbar