PureBytes Links
Trading Reference Links
|
Jim,
you didnīt miss anything, I forgot to shoot the code.
Here is the 3-D trick.
[The Plot argument in Ln16 is *before* the Plot of Line 20 and sends
the bears behind the green curtain...]
Enjoy !!
function IIR2( input, f0, f1, f2 )
{
result[ 0 ] = input[ 0 ];
result[ 1 ] = input[ 1 ];
for( i = 2; i < BarCount; i++ )
{
result[ i ] = f0 * input[ i ] +
f1 * result[ i - 1 ] +
f2 * result[ i - 2 ];
}
return result;
}
RED=IIR2( Close, 0.2, 1.4, -0.6 );
ASC=RED>Ref(RED,-1);
Plot( RED, "Function1", colorRed ,styleThick);
Plot( IIf((ASC),Close,-1E10), "Price", colorBlack, styleCandle );
for
(K=-15;K<15;K=K+1)
{Plot( IIR2( Close, 0.2-0.01*K, 1.4+0.01*K, -0.6 ), "Function2",
5 ); }
Plot( IIf(NOT(ASC),Close,-1E10), "Price", colorBlack, styleCandle );
Title="3D "+Name();
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "jnk1997" <jnk1997@xxxx> wrote:
> >>Jayson,
> there is a 3D trick here.
> When the stock is bullish, the candles are in front of the green
> curtain. When the bears handle the game, the poor candles are
hidden
> [the fear of the decline...]
> I'm not in the office now, I will post the code later.
> Dimitris Tsokakis<<
>
> Dimitris,
> Did you post the code somewhere? I must have missed it.
> Thanks
> Jim
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Free shipping on all inkjet cartridge & refill kit orders to US & Canada. Low prices up to 80% off. We have your brand: HP, Epson, Lexmark & more.
http://www.c1tracking.com/l.asp?cid=5510
http://us.click.yahoo.com/GHXcIA/n.WGAA/ySSFAA/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
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|