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

[amibroker] Re: Enter position once?



PureBytes Links

Trading Reference Links

I'm sorry but I see the arrows twice although I'm using version 4.8.01
(build 14. April).

When doing the steps you told me (parameters-> show arrows) no arrows
appear at all.




--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxx> wrote:
>
> Hello,
> 
> If you see two arrows it means that you are using old version.
> But this is only display quirk not affecting the backtest.
>  
> You should simply either upgrade to 4.80.1 or remove this chart and
add new one
> via drag-and-drop not forgetting to enable "show trade arrows"
option in parameters window.
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
>   ----- Original Message ----- 
>   From: csvirtual 
>   To: amibroker@xxxxxxxxxxxxxxx 
>   Sent: Saturday, May 06, 2006 11:41 PM
>   Subject: [amibroker] Re: Enter position once?
> 
> 
>   Max Positions is 1 and Limit trade size as % is 0!
> 
>   I see two uparrows on my chart before a square is in between. So this
>   means that there is a BUY although a Long position is still open?!
> 
> 
>   --- In amibroker@xxxxxxxxxxxxxxx, "Terry" <MagicTH@> wrote:
>   >
>   > I tried your code. It works as it should.
>   > 
>   >  
>   > 
>   > Possibilities:
>   > 
>   > You have Max Open Positions > 1 AND you have Limit trade size as
% of
>   > entry bar set (which you should IMHO).
>   > 
>   > What this can do is buy a position using LESS than your full equity
>   > because of the volume limit. Then it will continue to buy
stocks, up to
>   > Max Open Positions, until 100% of your equity is invested.
However, it
>   > will NOT buy the same stock again if it already has a position
in it. It
>   > can/will buy the same stock again AFTER it has been sold and it gets
>   > another Buy signal.
>   > 
>   > --
>   > 
>   > Terry
>   > 
>   > -----Original Message-----
>   > From: amibroker@xxxxxxxxxxxxxxx
[mailto:amibroker@xxxxxxxxxxxxxxx] On
>   > Behalf Of Tomasz Janeczko
>   > Sent: Saturday, May 06, 2006 07:25
>   > To: amibroker@xxxxxxxxxxxxxxx
>   > Subject: Re: [amibroker] Re: Enter position once?
>   > 
>   >  
>   > 
>   > Hello,
>   > 
>   >  
>   > 
>   > This code does not pyramid trades.
>   > 
>   > If it did you would see that in the last column of backtest
result list
>   > - it would list Scale In/Scale Out different than 0/0
>   > 
>   > 
>   > Best regards,
>   > Tomasz Janeczko
>   > amibroker.com
>   > 
>   > ----- Original Message ----- 
>   > 
>   > From: csvirtual <mailto:csvirtual@>  
>   > 
>   > To: amibroker@xxxxxxxxxxxxxxx 
>   > 
>   > Sent: Saturday, May 06, 2006 2:19 PM
>   > 
>   > Subject: [amibroker] Re: Enter position once?
>   > 
>   >  
>   > 
>   > Hello Tomasz,
>   > 
>   > my code:
>   > 
>   > SetPositionSize( 100, spsPercentOfEquity ); 
>   > 
>   > SetTradeDelays(1,1,1,1);
>   > 
>   > //SetOption("initialequity",25000);
>   > 
>   > bdelay = Status("buydelay");
>   > 
>   > sdelay = Status("sdelay");
>   > 
>   > period1=28;// Optimize("MFI Period",28,15,45,1);
>   > 
>   > period2=100;//Optimize("ATR Period",100,10,200,2);
>   > 
>   > period3=34;//Optimize("MA Period",34,10,60,1);
>   > 
>   > period4=25;//Optimize("BBand Period", 25,15,50,1);
>   > 
>   > width=1.5;//Optimize("BBand Width",1.5,1,2.5,0.1);
>   > 
>   > 
>   > 
>   > indi=MFI(period1)-ATR(period2); //my indicator
>   > 
>   > 
>   > 
>   > indientry = ValueWhen(Cross(Close,BBandTop(Close,period4,width)) AND
>   > indi<Ref(indi,-1),indi);
>   > 
>   > Buy = Cross(Close,BBandTop(C,period4,width)) AND indi<Ref(indi,-1);
>   > 
>   > Sell = Cross(MA(Close,period3),Close); //Cross(indi,indientry) OR
>   > 
>   > Plot (C,"",ParamColor("Price Color",colorBlack),styleCandle);
>   > 
>   > Plot(MA(Close, period3),"MA", colorOrange, styleLine);
>   > 
>   > Plot(BBandTop(C,period4,width),"BB Top", colorBlue, styleLine);
>   > 
>   > Plot(BBandBot(C,period4,width),"BB Bottom", colorBlue, styleLine);
>   > 
>   > PlotShapes(shapeUpArrow*Buy,colorGreen,0,L);
>   > 
>   > //PlotShapes(shapeDownArrow*Short, colorRed,0,H);
>   > 
>   > PlotShapes(shapeSmallSquare*Sell, colorGreen,0,H);
>   > 
>   > //PlotShapes(shapeSmallSquare*Cover, colorRed,0,L);
>   > 
>   > //Graph0=Equity(1);
>   > 
>   > //Graph0Style=1;
>   > 
>   > 
>   > 
>   > I can't figure out where I do pyramiding?
>   > 
>   > cheers,
>   > 
>   > Christian
>   > 
>   > 
>   > 
>   > 
>   > 
>   > 
>   > --- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@>
>   > wrote:
>   > >
>   > > Hello,
>   > > 
>   > > It will open just one position per symbol BY DEFAULT (if you use 1
>   > or True in buy array).
>   > > 
>   > > If it is pyramiding it means that you told it to do so by
specifying
>   > sigScaleIn in buy array.
>   > > 
>   > > Best regards,
>   > > Tomasz Janeczko
>   > > amibroker.com
>   > >   ----- Original Message ----- 
>   > >   From: csvirtual 
>   > >   To: amibroker@xxxxxxxxxxxxxxx 
>   > >   Sent: Saturday, May 06, 2006 3:17 AM
>   > >   Subject: [amibroker] Enter position once?
>   > > 
>   > > 
>   > >   Hello,
>   > > 
>   > >   my problem with backtesting is that a trade is entered when the
>   > signal
>   > >   is given although an earlier signal provided the entry! So it is
>   > >   pyramiding.
>   > > 
>   > >   I just want to enter with 100% of equity and first after a
sell go
>   > >   long again, not during an open trade. How can I code this?
>   > >   I use SetPositionSize( 100, spsPercentOfEquity ) and
>   > >   SetOption("initialequity",25000)
>   > > 
>   > >   Any help appreciated
>   > > 
>   > >   thanks
>   > > 
>   > > 
>   > > 
>   > > 
>   > > 
>   > > 
>   > >   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 other support material please check also:
>   > >   http://www.amibroker.com/support.html
>   > > 
>   > > 
>   > > 
>   > > 
>   > > 
>   > >   SPONSORED LINKS Investment management software  Real estate
>   > investment software  Investment property software  
>   > >         Software support  Real estate investment analysis
software 
>   > Investment software  
>   > > 
>   > > 
>   > >
>   >
------------------------------------------------------------------------
>   > ------
>   > >   YAHOO! GROUPS LINKS 
>   > > 
>   > >     a..  Visit your group "amibroker" on the web.
>   > >       
>   > >     b..  To unsubscribe from this group, send an email to:
>   > >      amibroker-unsubscribe@xxxxxxxxxxxxxxx
>   > >       
>   > >     c..  Your use of Yahoo! Groups is subject to the Yahoo!
Terms of
>   > Service. 
>   > > 
>   > > 
>   > >
>   >
------------------------------------------------------------------------
>   > ------
>   > >
>   > 
>   > 
>   > 
>   > 
>   > 
>   > 
>   > 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 other support material please check also:
>   > http://www.amibroker.com/support.html
>   > 
>   > 
>   > 
>   > 
>   > 
>   > 
>   > SPONSORED LINKS 
>   > 
>   > 
>   > Investment
>   >
<http://groups.yahoo.com/gads?t=ms&k=Investment+management+software&w1=I
>   >
nvestment+management+software&w2=Real+estate+investment+software&w3=Inve
>   >
stment+property+software&w4=Software+support&w5=Real+estate+investment+a
>   >
nalysis+software&w6=Investment+software&c=6&s=200&.sig=_XXUzbE9l5lGlZNcM
>   > u4KNQ>  management software 
>   > 
>   > Real
>   >
<http://groups.yahoo.com/gads?t=ms&k=Real+estate+investment+software&w1=
>   >
Investment+management+software&w2=Real+estate+investment+software&w3=Inv
>   >
estment+property+software&w4=Software+support&w5=Real+estate+investment+
>   >
analysis+software&w6=Investment+software&c=6&s=200&.sig=5_sgDczz3ArKGMtJ
>   > 9tFSJA>  estate investment software 
>   > 
>   > Investment
>   >
<http://groups.yahoo.com/gads?t=ms&k=Investment+property+software&w1=Inv
>   >
estment+management+software&w2=Real+estate+investment+software&w3=Invest
>   >
ment+property+software&w4=Software+support&w5=Real+estate+investment+ana
>   >
lysis+software&w6=Investment+software&c=6&s=200&.sig=_N6zcwefgp4eg5n6oX5
>   > WZw>  property software 
>   > 
>   > 
>   > Software
>   >
<http://groups.yahoo.com/gads?t=ms&k=Software+support&w1=Investment+mana
>   >
gement+software&w2=Real+estate+investment+software&w3=Investment+propert
>   >
y+software&w4=Software+support&w5=Real+estate+investment+analysis+softwa
>   > re&w6=Investment+software&c=6&s=200&.sig=MJ2jP31F3n64RDZkDadU8w>
>   > support 
>   > 
>   > Real
>   >
<http://groups.yahoo.com/gads?t=ms&k=Real+estate+investment+analysis+sof
>   >
tware&w1=Investment+management+software&w2=Real+estate+investment+softwa
>   >
re&w3=Investment+property+software&w4=Software+support&w5=Real+estate+in
>   >
vestment+analysis+software&w6=Investment+software&c=6&s=200&.sig=GmF8PlA
>   > JASx0wrSaX5-Zlw>  estate investment analysis software 
>   > 
>   > Investment
>   >
<http://groups.yahoo.com/gads?t=ms&k=Investment+software&w1=Investment+m
>   >
anagement+software&w2=Real+estate+investment+software&w3=Investment+prop
>   >
erty+software&w4=Software+support&w5=Real+estate+investment+analysis+sof
>   > tware&w6=Investment+software&c=6&s=200&.sig=aMgGsKT4w29dMAYUzQUKzg>
>   > software 
>   > 
>   >  
>   > 
>   > 
>   >   _____  
>   > 
>   > 
>   > YAHOO! GROUPS LINKS 
>   > 
>   >  
>   > 
>   > *    Visit your group "amibroker
>   > <http://groups.yahoo.com/group/amibroker> " on the web.
>   >   
>   > 
>   > *    To unsubscribe from this group, send an email to:
>   >  amibroker-unsubscribe@xxxxxxxxxxxxxxx
>   > <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe> 
>   >   
>   > 
>   > *    Your use of Yahoo! Groups is subject to the Yahoo!
>   > <http://docs.yahoo.com/info/terms/>  Terms of Service. 
>   > 
>   >  
>   > 
>   > 
>   >   _____
>   >
> 
> 
> 
> 
> 
> 
> 
>   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 other support material please check also:
>   http://www.amibroker.com/support.html
> 
> 
> 
> 
> 
>   SPONSORED LINKS Investment management software  Real estate
investment software  Investment property software  
>         Software support  Real estate investment analysis software 
Investment software  
> 
> 
>
------------------------------------------------------------------------------
>   YAHOO! GROUPS LINKS 
> 
>     a..  Visit your group "amibroker" on the web.
>       
>     b..  To unsubscribe from this group, send an email to:
>      amibroker-unsubscribe@xxxxxxxxxxxxxxx
>       
>     c..  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service. 
> 
> 
>
------------------------------------------------------------------------------
>







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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 other support material please check also:
http://www.amibroker.com/support.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/