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

[amibroker] Re: Please Help with Sigscalein/out



PureBytes Links

Trading Reference Links

See if this helps you:

http://amibroker.com/guide/h_pyramid.html

Mike

--- In amibroker@xxxxxxxxxxxxxxx, "KBGlenn" <kbglenn@xxx> wrote:
>
> Please, please help with this...tks in advance
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "KBGlenn" <kbglenn@> wrote:
> >
> > I've read the user's manual and can't figure this out...please 
help
> > with code.
> > 
> > Example of what I want to do...
> > 
> > If C > MA(C,20) Buy with position size 100%
> > If C < MA(C,20) Scale down to 50% of position, but stay long
> > If C > MA(C,20) Scale back up to 100% long position
> > 
> > There is no total out position or total sell/closing of the 
position
> > 
> > I've been able to use an iff statement in the setpositionsize 
function
> > to get me in and out at 50 or 100% on a buy, but the problem is 
I'm
> > using a the Sell function which pulls me totally out which I don't
> > want to go.
> > 
> > PLEASE Help!
> >
>



------------------------------------

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL 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

*********************************
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/