Premium Only Content
QuickTip 75 | Difference between Condition1 = C > O; and If C > O then Condition1 = TRUE;
Quicktip 75 uses a TradeStation EasyLanguage show-me study to demonstrate the difference between:
Condition1 = Close > Open;
//and
If Close > Open then Condition2 = TRUE;
With the first expression (Condition1 = Close > Open;) if close is greater than open (i.e an up bar) the expression evaluates to true and Condition1 is set to TRUE, hence, in our simple example a show me dot is plotted at the high of the bar. If Close is less than or equal to open (i.e a down bar or Doji) then the expression, Close > Open evaluates to FALSE, Condition1 is set to False and the show-me dot is not plotted.
With the second expression, If Close > Open then Condition2 = TRUE; if the close is greater than the open (an ‘up’ bar) then Condition2 is set to true and a show-me dot is plotted at the low of the bar. If on a subsequent bar the close is less than or equal to open (i.e a down bar or Doji) then no change is made to Condition2. Hence once there has been an up bar Condition2 is set to true and remains true for all future bars and a show-me dot would be plotted at the low of these bars. This second expression acts as a sort of ‘ratchet.’
The third example is similar to the second in that if a bar is an ‘up’ bar then Condition3 is set to true, however if the bar becomes or is a down bar or Doji Condition3 is set to false. Therefore the first and third expressions give similar results.
-
1:32
The Dan Bongino Show
2 hours agoDo I have scores to settle on my show? You're damn right
6.37K55 -
14:34
Crowder Bits
1 day agoThis Is Why Democrats Can’t Win Without Open Borders
5.31K6 -
1:30:59
The Attorney Andrew Branca Show
3 hours agoFederal Court: ICE WINS! MN LOSES! PLUS Federal ID Order!
7785 -
1:23:05
MattMorseTV
2 hours ago $19.82 earned🔴The Dems. have a "NEW STRATEGY."🔴
80.3K166 -
13:20
Full Ahead
22 days agoMiami: The City of Tomorrow 4K Walking Tour
3672 -
37:05
hickok45
10 hours agoSunday Shoot-a-Round # 318
2.28K8 -
16:57
MarkHarrison4
1 month ago1 week in the BEST country in the middle EAST - Oman
4012 -
11:50
Stammherz - Fine woodworking, end grain cutting boards & process-driven builds
6 days agoA Timeless Cutting Board
9941 -
19:36
Fit'n Fire
6 hours ago $0.06 earnedThis AK Has a Terrible Reputation -- Here's What Happened
6951 -
17:03
TOMSTC
3 days agoDJI Neo 2 Follow Test… Then It Crashed!
8612