PureBytes Links
Trading Reference Links
|
Instead of
varTDSBuy=IIf(C<Ref(varTDSCompare,-4)
AND Ref(varTDSCompare,-1)<Ref(varTDSCompare,-5)
AND Ref(varTDSCompare,-2)<Ref(varTDSCompare,-6)
AND Ref(varTDSCompare,-3)<Ref(varTDSCompare,-7)
AND Ref(varTDSCompare,-4)<Ref(varTDSCompare,-8)
AND Ref(varTDSCompare,-5)<Ref(varTDSCompare,-9)
AND Ref(varTDSCompare,-6)<Ref(varTDSCompare,-10)
AND Ref(varTDSCompare,-7)<Ref(varTDSCompare,-11)
AND Ref(varTDSCompare,-8)<Ref(varTDSCompare,-12)
AND
you may use
varTDSBuy=IIf(Sum(C<Ref(varTDSCompare,-4),9)==9 AND
with the same result.
--- In amibroker@xxxxxxxxxxxxxxx, "Brian" <brian@xxxx> wrote:
> I am trying to get this so a yellow arrow shows a cancelled buy
> setup. If a post-setup intraday high exceeds the highest close
(from
> during the 9-day setup), the buy is cancelled. I'm not sure how to
> properly pull the highest close from the setup, so that it may be
> compared to the highest high during the post-setup. Any ideas?
>
> Thanks!
>
> Brian
>
> /*
> Tom DeMark's Sequential (TD Sequential)
> */
>
> // Set variables here
> varTDSCompare = C; // default C, may also use H, L, O
> // End set variables
>
> varTDSBuy=IIf(C<Ref(varTDSCompare,-4)
> AND Ref(varTDSCompare,-1)<Ref(varTDSCompare,-5)
> AND Ref(varTDSCompare,-2)<Ref(varTDSCompare,-6)
> AND Ref(varTDSCompare,-3)<Ref(varTDSCompare,-7)
> AND Ref(varTDSCompare,-4)<Ref(varTDSCompare,-8)
> AND Ref(varTDSCompare,-5)<Ref(varTDSCompare,-9)
> AND Ref(varTDSCompare,-6)<Ref(varTDSCompare,-10)
> AND Ref(varTDSCompare,-7)<Ref(varTDSCompare,-11)
> AND Ref(varTDSCompare,-8)<Ref(varTDSCompare,-12)
> AND Ref(varTDSCompare,-9)>=Ref(varTDSCompare,-13)
> AND L<Ref(L,-5),1,0);
>
> Plot(Close, "Close",1,64);
>
> // Setup Cancellation #1
> // Post-setup intraday high exceeds highest close of 10-day setup
> IIf(varTDSBuy>0,varHighestClose = HHV(Close,9),0);
> varTDSBarcount = BarsSince(varTDSBuy>0);
> varTDSCancel_1 = IIf(HHV(High,varTDSBarcount)>varHighestClose,1,0);
>
> IIf(varTDSBuy>0 AND varTDSCancel_1<1,PlotShapes
> (shapeUpArrow*varTDSBuy,colorGreen),0);
> IIf(varTDSBuy>0 AND varTDSCancel_1>0,PlotShapes
> (shapeUpArrow*varTDSBuy,colorYellow),0);
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|