PureBytes Links
Trading Reference Links
|
Nice code Joe!
I can be used nicely for stocks with high "roller" potential. Thanks
for posting it!!
Shift: in the code starts the time frame as low as 1 = yesterday,
etc. the period covered in the "Shift Period" has the candles shaded
in blue.
Lookback: 22 is used for 1 month of trading (22 days per month on
average)
Right click on the indicator when pasted into a frame- then move the
parameters of Lookback and Shift and you will see the changes.
Joe, Can you share any of your "Turtle" formulas?
Thanks again for sharing this code!
Brian
--- In amibroker@xxxxxxxxxxxxxxx, "Joe Landry" <jelandry@xxxx> wrote:
> In one of the routines I collected from the forum, I believe you
wrote the following AFL attached below .
>
> I'm wondering if you would present some details on how you would
use the LookBack and Shift
> parameters.
>
> For example a 20 or 22 day look back would be what is said used by
> the Turtle traders, but what effect does changing the SHIFT
parameter have?
>
> I've used this as an algorithm in a trading strategy and optimized
the two parameters,
> but this was brute force approach since I really didn't understand
the interaction of the two
> parameters and the color coding of the price line.
>
> I would appreciate any comments or pointing me to a resource/forum
email where this was
> discussed.
>
> Best regards
> joe landry
>
> PS Thanks for all your contributions. I probably have more DT
code than any other in my indicator window
> and my InfoSelect AFL database.
> // For Indicator Window NAME: Break Outs - DT
>
> // Dimitris Tsokakis
>
> // An Indicator Plots a high and low bar and color codes the price
line for bullish breaks
>
> //
>
> H0=H;
>
> L0=L;
>
> C0=C;
>
> O0=O;
>
> Lookback=Param("LookBack",22,10,50,1); // Default for interday
commodity currency trading
>
> shift=Param("Shift", 11,1,50,1); // ?
>
> x0=LastValue(Cum(1));
>
> x1=x0-shift;
>
> H=Ref(H,-shift+1);
>
> L=Ref(L,-shift+1);
>
> H1=LastValue(Ref(HHV(H,Lookback),-1));
>
> L1=LastValue(Ref(LLV(L,Lookback),-1));
>
> Plot(H1,"H1",colorYellow);
>
> Plot(L1,"L1",colorYellow);
>
> H=H0;L=L0;C=C0;O=O0;
>
> up=Cross(H,H1) AND Cum(1)>x1;
>
> dn=Cross(L1,L) AND Cum(1)>x1;
>
> Plot(C,"Close",IIf(Cum(1)>x1-Lookback AND Cum(1)<=x1,colorBlue,IIf
>
> (Up,colorBrightGreen,IIf( Dn,colorRed,colorBlack))),64);
>
> PlotShapes(shapeDownArrow*(Cum(1)==x1+1),colorBlue);
>
>
> [Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
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/
|