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

[amibroker] Re: need with buy/sell



PureBytes Links

Trading Reference Links

Graham, thanx I miss the comma because I was playing around trying to 
figure out if I needed to put LW1, LW2 or just LW1.
The main problem is all I'm getting is (long buys) with this, 
something is telling me I need to sell at one point. At lease I think 
a due



--- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanag@xxxx> wrote:
> 
> Goldwing01
> I cannot help you with finding a winning system, and I do not know 
what
> the Jurikxxx formulae are. Not every system will return positive
> profits.
> 
> But I can help with one line, it needs a comma :)
> Short = Cross( -100 , Lw1 );
> 
> Cheers,
> Graham
>  
> 
> -----Original Message-----
> From: goldwing01 <goldwing01@xxxx> [mailto:GOLDWING01@x...] 
> Sent: Monday, 24 February 2003 6:21 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] need with buy/sell
> 
> Can some one from Amibroker help me with this formula?
> I'm using back-test with it, and it is showing me I am losing money 
> big time.
> 
> 
> PlotOHLC(1.1*Open, 1.1*High, 1.1*Low, 1.1*Close, "Price chart 
shifted 
> 10% up", colorBlack, styleCandle ); 
> 
> 
> Plot(IIf(Month() !=
> Ref(Month(),-1),1,0),"",colorYellow,styleHistogram|styleOwnScale);
> 
> minimum = LastValue( Lowest( Volume ) );
> maximum = LastValue( Highest( Volume ) );
> JurikJMA( Prefs( 11 ), Prefs( 12 ), Prefs( 13 ) );
> Lw1 = JurikRSX (H,9.1); 
> Lw2 = JurikRSX (L,24.9);
> 
> Plot (LW1 ,"jurikRSX20 ",colorRed,styleLeftAxisScale| styleLine, 
> minimum, maximum ); 
> Plot (LW2 ,"JurikRSX30 ",colorBlue,styleLeftAxisScale| styleLine, 
> minimum, maximum );
> 
> Buy=Cross(Lw1,Lw2);
> Sell=Cross(Lw2,Lw1);
> Short = Cross( -100 Lw1 );
> Cover = Cross( Lw2, -100 );
> 
> 
> /* code removes redundant buy/sell signals*/
> Buy=ExRem(Buy,Sell);
> Sell=ExRem(Sell,Buy);
> PlotShapes( shapeUpArrow * Buy + shapeDownArrow * Sell, IIf( Buy, 
> colorWhite, colorYellow));
> range = 0.5 * Ref( H-L, -1 );
> targetup = O + range;
>  targetdown = O - range;
> 
>  Filter = H >= targetup AND L <= targetdown;
> 
>  AddColumn( O, "O" );
>  AddColumn( H, "H" );
>  AddColumn( L, "L" );
>  AddColumn( range, "range" );
>  AddColumn( targetup, "targetup" );
>  AddColumn( targetdown, "targetdown" );
> 
> 
> 
> 
> 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/


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/