Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

Gain/Loss Computation for Amibroker (AFL)
almost 7 years ago
Amibroker (AFL)

4 / 5 (Votes 8)

How to use/activate. Example:
1.Double-click any bar from last Month (this will set the begining of a range)
*Vertical line and horizontal line will appear.
*New info will appear on your chart, left-side.
2.Single-click OR Double-click any bar from this Month (this will set the end of a range).

How to deactivate:
1.Double-click anywhere on your chart (the vertical line will disappear).
*if your double-click created another line then double-click again.

Indicator / Formula

Copy & Paste Friendly
if (BeginValue(BarIndex()) != 0 ) 
Lvl = ParamField("PriceField", field = 3 ); 
FirstBar = BeginValue(BarIndex());
Linya  = IIf(BarIndex() >= FIRstbar, EndValue(Lvl),Null); 
Range = BarIndex()-BeginValue(BarIndex());
Title += EncodeColor(colorLightGrey)+StrFormat("\n\nBars.....%g ", range)
+"\nDays...."+ WriteVal( DaysSince1900() - BeginValue( DaysSince1900()),1)
+ WriteIf(DaysSince1900() - BeginValue( DaysSince1900())>30,
     "  (" + WriteVal( (DaysSince1900() - BeginValue( DaysSince1900()))/30,1.2) 
+ WriteIf(  ((DaysSince1900() - BeginValue(DaysSince1900()))/30)>=2,"months)","month)"),"")
+"\nG/L......." +WriteVal((C - BeginValue(C))/BeginValue(C)*100,1.2 ) + "% ";


1. ghost2k

Very useful, thanks a lot.

2. actais

Welcome, ghost2k! :-)

Leave Comment

Please login here to leave a comment.