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

RE: [amibroker] tj's pyramid



PureBytes Links

Trading Reference Links


This is a 
starting point.  However I am sure very few always buy on Monday and 
pyramid on Wednesday each and every time.  We need some way to pyramid3 
days after a buy, not 3 days after Monday.
<FONT color=#000080 
size=2> 
<FONT color=#000080 
size=2>Thanks,
 
<FONT face="Vladimir Script" color=#000080 
size=5>Rick

<FONT face=Tahoma 
size=2>-----Original Message-----From: sidleysh 
[mailto:steves@xxxx]Sent: Wednesday, July 17, 2002 4:54 
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker]tj's 
pyramidthought y'all would be interested in TJ's 
sample pyramid code.Hello,Here is a simple sample of 
pyramiding "emulation":// the example system buys on monday, wednesday 
(increasing pos)// and sells on fridayBuyCond = DayOfWeek()== 
1;Buy2Cond = DayOfWeek() == 3; // pyramidSell = 
DayOfWeek()==5;Buy = BuyCond OR Buy2Cond;PositionSize = IIf( 
Buy2Cond, 2000, 1000 ); // 1000 is first trade 2000 is pyramidedSell = 
Sell OR Buy2Cond;/////////////////Please set trade delays to zero 
in the settings page.Your 
use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service.