Hosted by Dailymotion. For legal issues report at the Copyright Center, report us on DMC, or use the Instant Removal tool.
QuickTip 75 | Difference between Condition1 = C > O; and If C > O then Condition1 = TRUE;
Description
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.
See https://markplex.com/free-tutorials/tradestation-easylanguage-quicktips/quicktip-75-what-is-the-difference-between-condition1-c-o-if-c-o-then-condition1-true/
More from User
Program 90 | Finding extreme oscillator 'hooks'
Markplex
Tutorial216
Markplex
Tutorial217
Markplex
Tutorial 215 | Alert when MACD crosses a line drawn on chart
Markplex
Tutorial 214 | Draw a rectangle between the high and low of the week
Markplex
Tutorial 212 | Draw a rectangle on a chart each day between the high and low of the PREVIOUS day
Markplex
Related Videos
If |A+B|=|A-B|, then angle between A and B is_If A+B=A-B, then angle between A and B is_If mod of A vector plus B vector is equal to the mod of A vector minus B vector then angle between A and B is
Physics with Akhtiar Ali Bullo
If it's Drama Then It's Best of All and If it's True Then Most Surprising One, MQM Receives Extortion Notices
Kashif Orpids
Bigg Boss 9 _ Day 75 _ Episode 75 _ If You Like it , Then You Should Put a Ring on It
Bollywood News & Songs
Temperature difference between the surface water and bottom water in Manchester lake might be 5 degree centigrade Assuming the surface water to be at 20 degree celsius.What highest efficiency a steam engine could have if it operates between these two tem
Physics with Akhtiar Ali Bullo
fight between Latif Khosa and the judge. | Fierce fight between Latif Khosa and the judge in the Imran Khan case, if the judge cannot decide, then you should not even hear the case. There was a stir
Update Pakistan News
Y’all need to confirm if this is true?! If so then WHAT!!?? 🥸 #twitchstreamer #twitchclips #twitchmoments #pickupline #jokes #twitch #gamergirl #tts
Mikaylah Anne