PureBytes Links
Trading Reference Links
|
To work out the profit you need to filter for the exit bar and then look
back to when you entered
Filter = Sell;
AddColumn(SellPrice - valuewhen(buy,buyprice),"profit",10.2);
--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://www.aflwriting.com
On 03/11/06, thecoolestdude1369 <thecoolestdude1369@xxxxxxxxx> wrote:
>
> for some reason not buying and selling properly which i want it to do
> on the following day opening after meeting criteria. and want it to
> show whether it was a profit or loss but my column isn't working for
> some reason. help
>
> bb = H > O + .05;
>
> ss = Ref(RSI(2),-1) > 60;
>
> ss1 = Low < O - .05;
>
>
>
> Buy = pvfilter AND MAproperorder AND momfilter1 AND momfilter2 AND
> newhighs AND rsi5 AND uptrend AND bb;
>
>
>
> Filter = Buy==True;
>
> AddColumn(C,"Close",10.2);
>
> AddColumn(C,"High",10.2);
>
> AddColumn(L,"LOW",10.2);
>
> AddColumn(Ref(C,-1),"Close -1",10.2);
>
> AddColumn(MA(V,20),"Volume 20Close",10.2);
>
> AddColumn(RSI(2),"RSI",10.2);
>
> AddColumn(BuyPrice-SellPrice,"profit",10.2);
>
>
>
>
>
> Please note that this group is for discussion between users only.
>
> To get 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
>
>
>
>
>
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.27/517 - Release Date: 11/3/2006
|