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

RE: [amibroker] Redefining OHLC Price arrays



PureBytes Links

Trading Reference Links

Yes, it is relatively easy *if I want to control position size*. What 
if I just want AB to decide the position size (as it does now), and 
let it apply my straight dollar stop?

I suspect there is no way to do this - can I access the position size 
that AB has chosen somehow?

Thanks,
Chris 

--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx> 
wrote:
> Hello,
> 
> It is relatively easy:
> 
> Shares = 500;
> PositionSize = Shares * BuyPrice;
> StopPointAmount = 1000 / Shares;
> 
> ApplyStop(stopTypeLoss,stopModePoint, StopPointAmount );
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message ----- 
> From: "cby" <cby1@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Sunday, August 29, 2004 10:48 PM
> Subject: [amibroker] "Dollar Stop" in AB?
> 
> 
> > 
> > Hello.
> > 
> > How would I go about implementing a dollar stop, a la Larry 
Williams 
> > and others (let's say close if loss in an open trade exceeds 
$1000)? 
> > Doesn't seem to be supported by ApplyStop. The answer from 
support 
> > was:
> > 
> > > > > Hello,
> > > > >
> > > > > You can code it with use of ApplyStop() funtion:
> > > > >
> > > > > ApplyStop(stopTypeLoss,stopModePoint,1000);
> > > > >
> > > > > You can also set it up in:
> > > > > Analysis -> Automatic Analysis -> Settings -> Stops (tab)
> > > > > (Maximum Loss Stop, point, enter 1000 in the field)
> > > > >
> > > > > See:
> > > > > http://www.amibroker.com/guide/afl/afl_view.php?applystop
> > 
> > I don't think this is what I want - doesn't this mean the stop is 
> > activated after the stock drops 1000 *points*? That seems to be 
how 
> > StopModePoint works. So on a 500 share trade, that's a loss of 
500K. 
> > 
> > Now I could do it in conjunction with position size, (set Point 
stop 
> > at 2 for 500 shares), but I want to be able to do it 
independently of 
> > position size right now.
> > 
> > Thoughts?
> > 
> > Thanks,
> > Chris
> > 
> > 
> > 
> > 
> > 
> > Check AmiBroker web page at:
> > http://www.amibroker.com/
> > 
> > Check group FAQ at: 
http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> > Yahoo! Groups Links
> > 
> > 
> > 
> >  
> > 
> > 
> > 
> >



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/