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

Re: [amibroker] BuyPrice



PureBytes Links

Trading Reference Links


Brook,
 
The **price arrays should be used to control 
(change) the price point
at which trade takes place. To generate signals 
you should use usual
O,H,L,C so your formula should look like 
this:
 
 

Buy = <FONT face="Courier New" 
color=#0000ff>Cross<FONT face="Courier New" 
color=#000000>(Close,<FONT face="Courier New" 
color=#0000ff>EMA<FONT face="Courier New" 
color=#000000>(Close,<FONT face="Courier New" 
color=#ff00ff>45<FONT 
size=2>));
// calculate stop based 
on price when buy signal occured
SellStop = ValueWhen( Buy, BuyPrice ) - 
<FONT face="Courier New" 
color=#0000ff>ATR(<FONT 
face="Courier New" color=#ff00ff>45<FONT face="Courier New" 
color=#000000>)/<FONT face="Courier New" 
color=#ff00ff>2<FONT 
size=2>; 
// generate sell signal when stop becomes higher than lowest 
price
Sell = <FONT 
size=2>Cross<FONT 
face="Courier New" color=#000000>( Sellstop, Low ); 
SellPrice = SellStop; // 
make sure selling takes place at stop level
Buy = <FONT 
face="Courier New" color=#0000ff size=2>ExRem<FONT face="Courier New" 
color=#000000>( Buy, Sell );
Sell = <FONT 
face="Courier New" color=#0000ff>ExRem<FONT face="Courier New" 
color=#000000>( Sell, Buy );
Best regards,Tomasz Janeczko===============AmiBroker - the 
comprehensive share manager.<A 
href="">http://www.amibroker.com
<BLOCKQUOTE 
>
----- Original Message ----- 
<DIV 
>From: 
Brook Ewers 

To: <A title=amibroker@xxxxxxxxxxxxx 
href="">amibroker@xxxxxxxxxxxxxxx 
Sent: Friday, October 12, 2001 2:08 
PM
Subject: [amibroker] BuyPrice


Dear TJ,
I'm trying out the new BuyPrice SellPrice 
functions. Can you tell me what is wrong with the following, its not a system 
I'm just trying it out and am trying out a stop.
Can it be used in this way? I think if Amibroker 
can remember the buy price and set stops based on it, and have postion sizing 
based on any user function it's money management would be very much 
improve.
Thanks anyone.
Brook
Buy = <FONT face="Courier New" color=#0000ff 
size=1>Cross<FONT face="Courier New" color=#000000 
size=1>(Close,<FONT face="Courier New" color=#0000ff 
size=1>EMA<FONT face="Courier New" color=#000000 
size=1>(Close,<FONT face="Courier New" color=#ff00ff 
size=1>45));
SellStop = BuyPrice-<FONT face="Courier New" color=#0000ff 
size=1>ATR(<FONT 
face="Courier New" color=#ff00ff size=1>45<FONT face="Courier New" 
color=#000000 size=1>)/<FONT face="Courier New" color=#ff00ff 
size=1>2;
Sell = <FONT face="Courier New" color=#0000ff 
size=1>Cross( 
SellPrice,Sellstop);
Buy = <FONT face="Courier New" color=#0000ff 
size=1>ExRem( Buy, 
Sell );
Sell = <FONT face="Courier New" color=#0000ff 
size=1>ExRem( 
Sell, Buy );Your 
use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service.