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

[amibroker] Re: Problem with Equity Plot and Calculation - Tomasz



PureBytes Links

Trading Reference Links




Hi CS,
 
Thanks for trying to help, but I don't think that is the 
problem. The settings in AA are Long and Short. The arrows you noted in my first 
post were ones I placed upon a separate plot for illustration, not the ones that 
AA will place on the price chart. The code has Cover and Short defined from Buy 
and Sell, and, in fact the "official" arrow plot on the price chart shows all 
the arrows (see attached). Still no trade is entered at the start of the period, 
2/23/01, and the result shown in the results window in AA also seems wrong 
because of being out of the market until the subsequent buy.
 
I thought that maybe I had messed up some of my files somehow, 
and installed a brand new version of AB on a separate drive. This version has 
all the virgin files and settings AB comes with, and when I pasted the 
code  
<FONT 
size=2>--------------------------------------------------------------------------------------------------

SetTradeDelays<FONT color=#888888 
size=3>(0<FONT color=#888888 
size=3>,0<FONT color=#888888 
size=3>,0<FONT color=#888888 
size=3>,0<FONT color=#888888 
size=3>);
ApplyStop<FONT color=#888888 
size=3>(0<FONT color=#888888 
size=3>,0<FONT color=#888888 
size=3>,0<FONT color=#888888 
size=3>,0); 
ApplyStop<FONT color=#888888 
size=3>(1<FONT color=#888888 
size=3>,0<FONT color=#888888 
size=3>,0<FONT color=#888888 
size=3>,0); 
ApplyStop<FONT color=#888888 
size=3>(2<FONT color=#888888 
size=3>,0<FONT color=#888888 
size=3>,0<FONT color=#888888 
size=3>,0<FONT color=#888888 
size=3>);
BuyPrice<FONT color=#888888 
size=3>=SellPrice<FONT color=#888888 
size=3>=ShortPrice<FONT color=#888888 
size=3>=CoverPrice<FONT color=#888888 
size=3>=C<FONT color=#888888 
size=3>;
Buy = 
Cross<FONT color=#888888 
size=3>(Close, 
(1 + 
0.002<FONT color=#888888 
size=3>)*EMA<FONT color=#888888 
size=3>(Close, 
40<FONT color=#888888 
size=3>));
Sell = 
Cross<FONT color=#888888 
size=3>((1 - 
0.002<FONT color=#888888 
size=3>)*EMA<FONT color=#888888 
size=3>(Close, 
40), 
Close<FONT color=#888888 
size=3>);

Short = 
Sell; <FONT 
size=3>Cover = <FONT 
size=3>Buy;
Buy = <FONT 
color=#0000ff size=3>ExRem(<FONT 
size=3>Buy,<FONT 
size=3>Sell); <FONT 
size=3>Sell = <FONT color=#0000ff 
size=3>ExRem(<FONT 
size=3>Sell, <FONT 
size=3>Buy); 
Short = 
ExRem<FONT color=#888888 
size=3>(Short, 
Cover); <FONT 
size=3>Cover = <FONT color=#0000ff 
size=3>ExRem(<FONT 
size=3>Cover, <FONT 
size=3>Short);
<FONT 
color=#888888>-----------------------------------------------------------------------------------------------------------------
into the AA window, 
checked the settings, and ran it, the result was the same.
<FONT color=#000000 
size=2> 
I would surely appreciate it 
if someone would try this code and see if the results are different from 
mine.
Thanks, 
Bill






Yahoo! Groups Sponsor


  ADVERTISEMENT 









Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



Attachment:
Arrows.GIF

Attachment: Description: "Description: GIF image"