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.
-
55:04
Matt Kohrs
3 hours agoThe Volatile Week Ahead || The MK Show
4.63K7 -
26:18
Stephen Gardner
2 hours agoTop Republican UNLOADS on Democrats and Biden's MENTAL HEALTH!!
8.11K16 -
44:30
Michael Franzese
2 days agoCancel Culture Backlash of My UK Tour | Michael Franzese
64.1K36 -
35:12
Island Hopper TV
1 day agoFull Costa Rica Travel Guide 2024
22.9K27 -
4:43
ParisDemers
1 day agoThis Diet Hack Changed My Life! (How To Get Ripped FAST!)
42.8K46 -
46:57
Crime Circus
1 day agoApple River ST*BBING!! Stand Your Ground Interrogation of Man in Wisconsin
51K45 -
9:39
Tactical Advisor
1 day agoHow To Improve Your Shooting For FREE! Mantis Blackbeard X
63.4K13 -
1:00:59
Squaring The Circle w/ Randall Carlson
1 day ago#007 The Real Climate Crisis Noone Is Talking About and Mount Tambora Pt 2
67.3K15 -
13:52
America Uncovered
1 day agoEveryone is WRONG About Trump's Guilty Verdict
45.6K86 -
13:10
Censored TV
1 day agoThe Owen Benjamin vs Jim Goad debate was WILD
54.4K37