[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] HOLDTILL()



PureBytes Links

Trading Reference Links


From: Dimitris Tsokakis 
[mailto:TSOKAKIS@xxxx]Sent: Sunday, December 02, 2001 8:00 
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] 
HOLDTILL()
<BLOCKQUOTE 
>
I hope that the following will make things more 
clear.
Suppose that I want to hold the Close value, when 

macd() crossed its signal, until the moment 
stochd()
crosses 70 line.
The cross(macd(),signal()) is true at A and 
B.
Which value will be holded until point C, where
cross(70,stochd()) is true?
DT 
<SPAN 
class=510131619-02122001>Dimitris,
<SPAN 
class=510131619-02122001>You right of course.
<SPAN 
class=510131619-02122001>And I understand Flip()exactly as it is in reference 
and in your examples. This means I understand Flip() will be True till the 
second condition will be triggered. So I understand that since Flip() has 
started to be True nothing else could change it into False then the second 
condition - starting this moment Flip() does not care about the first condition 
at all.
<SPAN 
class=510131619-02122001> 
<SPAN 
class=510131619-02122001>Anyway, Flip() is a great function for logical 
formulas, as well Hold().
<SPAN 
class=510131619-02122001>As an example please see my Stops 
Implementation
<SPAN 
class=510131619-02122001>
http://www.amibroker.com/library/detail.php?id=136
<SPAN 
class=510131619-02122001>where Flip() just controls if defined stop is active or 
inactive because activation level has been not reached.
<SPAN 
class=510131619-02122001>Thanks for