PureBytes Links
Trading Reference Links
|
Hi,
I am doing a "GAP" research. For example,I would like to find out, for every GapDown, how many days does it take to break up the H of the gap-down bar?
Here is my first attempt. However, this is just to tell me the Close price when the H is violated. My thought is to use ValueWhen to find out the first future day that the Close price is higher than today's High.
This is NOT a correct code because the ValueWhen function will evaluate each subsequent day's C with its H instead of using today's High. Do you have a way to tell ValueWhen to compare future Close price with today's High price (static value) instead of H (an array)?
GapPctThreshold = 10;//% of gap detection threshold MyGapDn = O<Ref(C,-1)*(1-GapPctThreshold/100) AND H<Ref(L,-1);
"With MyGapDn, the 1st H violation is"+IIf(MyGapDn, ValueWhen(C>H,C,-1),Null);
Eski
__._,_.___
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
__,_._,___
|