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

Re: [amibroker] Re: my trades



PureBytes Links

Trading Reference Links

----- Original Message -----
From: Mike
Sent: Sunday, June 01, 2008 10:53 AM
Subject: [amibroker] Re: my trades

Use Study ID "01", "02", "03", etc.
Use Optimization to see results from different lines.

Mike

Risiko = -0.25 ; //risiko auf das depot

RisikoimWert = Ref (H,-1) - Ref (L,-1) ; // risiko im wert

PositionSize = ( Risiko / RisikoimWert) * BuyPrice;

StudyID = Optimize("Study ID", 1, 1, 3, 1);
Buy = Cross (H, Study(StrFormat("%02.0f", StudyID), 1000));

BuyPrice= Ref (H,-1);

Sell = L < Ref (L,-1);

//Sellstop = Ref (L,-1);

SellPrice = Min ( Open, Ref (L,-1));

Buy = ExRem(Buy,Sell);

Sell = ExRem(Sell,Buy);

--- In amibroker@xxxxxxxxxps.com, "kmunnecke" <kmunnecke@x..> wrote:
>
> I draw a line "Study UP"
> do backtest and AB buy correctly
>
> I draw a second line "Study UP"
> do backtest and AB buy just the first line?
>
> i Delete the first line, AB buy the second line?
>
> AB works always with the line i draw first?
> but I would like to work with multiple lines,
> there are my trades and i look for different stopps.
> SetTradeDelays( 0, 0, 0, 0 ); // buydelay, selldelay,shortdelay,
> coverdelay
>
> Risiko = -0.25 ; //risiko auf das depot
>
> RisikoimWert = Ref (H,-1) - Ref (L,-1) ; // risiko im wert
>
> PositionSize = ( Risiko / RisikoimWert) * BuyPrice;
>
> Buy = Cross (H, Study( "UP",1000) );
>
> BuyPrice= Ref (H,-1);
>
> Sell = L < Ref (L,-1);
>
> //Sellstop = Ref (L,-1);
>
> SellPrice = Min ( Open, Ref (L,-1));
>
> Buy = ExRem(Buy,Sell);
>
> Sell = ExRem(Sell,Buy);
>

__._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
Thank you,
but I think this is not my problem.
I buy one worth (Shares) 3 times.
at first my stop if the low yesterday,
now i  look a stop 1 ATR.
the buy time is the same.
 
3 buys in one shares,
then i look different stops
 
i dont look to the different lines,
the buy time is reality.
 
i looks for the best stop of my entrys.
but AB buys only the first line in the chart and i buys 2 or 5.