- Joined
- 18 June 2010
- Posts
- 277
- Reactions
- 0
ok amibroker gurus, i would like some help please.
in the following equity line chart in a report in amibroker;
1. how can i get it to plot the y axis on a log scale like the ones in unholy grails?
2. for some reason the x axis scale is not evenly spaced - in whatever afl i use the 2010 / 2011 period always is condsierably wider than other years. could it be that there are just many more trades in that period and each 'tick' is a trade rather than unit of time? in UG they all appar to be evenly spaced.
thanks
View attachment 51879
1. right-click the chart and got to 'Parameters' -'Axes&Grid' and in category 'Type' choose Logarithmic
or if you always want it to show logarithmic by default then add this line
SetChartOptions( 0, chartShowArrows | chartShowDates | chartLogarithmic ); to the code
2. yes, that seems to be the case
thanks for your reply trash.
however, both of those methods only seem to work with the chart shown in the chart window in the main screen, if that makes any sense, not the equity chart in the report produced when you run a backtest.
Change to this line then
SetChartOptions( 1, chartShowArrows | chartShowDates | chartLogarithmic );
in the Portfolio Equity code of the Report Charts folder and logarithmic display will work as default one in report chart also
ok , that works now, thanks v much for your help
No, i did not know that, but now you have pointed it out there are some useful applications
for instance, adding a 'buy and hold' comparison to the equity chart (here represented by XJO)...
View attachment 51889
or comparing the dd to XJO drawdown ..
View attachment 51890
and many more hours of fun to be had....
cheers
I am always happy to help anyone with writing AFL for AB. I am a regular in the AB yahoo group, AB website forum, RC and other places.
Kaveman,
I see you are fairly active on the AmiBroker Yahoo Group and was wondering if you offer programming - I'm pretty sure it would have to use AmiBroker's Low Level Back Testing Approach + / or Custom DLL / Plug-In to do this:
Inputs:
AcctValue-RT $ 500,000
%Leverage 150%
#Strategies 4 Equal Weight
MaxPositions 8 Per Strategy
Portfolio Max%DD 10.0% Stops Hit @ Once (All Strategies & Symbols)
Portfolio Calculations:
BuyingPower $ 750,000(AcctValue-RT*Leverage)
$PerStrategy $ 187,500(BuyPower/#Strategies)
$PerSymbol $ 23,438 ($PerStrategy/MaxPositions Per Strategy)
Strategy Max%DD 2.5% (PortfolioMax%DD/#Strategies)
Ticker Max%DD 0.3% (StrategyMax%DD/#MaxPositions)=BaseFF%Risk
Constrain Symbol Level Position Size to Lesser of:
1) $PerSymbol (Notional Value)
2) Ticker Max%DD (Symbol Fixed Fractional (FF) %Bet Size
Constrain Symbol Exposure so that the "Net" $PerSymbol & "Net" Ticker%DD are Limited (This is similar to Constraining Multiple Signals "in the same direction" by the same Symbol across Multiple Strategies).
*Net = Long-Short
Can this be done with AmiBroker & / or with Custom Add-On Programming?
Can you or anybody you know be hired to help?
Thanks,
Karl
Skype: dental.search
Gmail: rotationfactor
Hi blokes,
my new amibroker 5.63 seems to have the chart background as dark grey now..im use to white..ive tried changing it using preferences but no joy..
does anyone know how to change it back to standard white?
salamat....
Would anyone have a simple scan that i can use for a three bar inside bar pattern? Just interested in scanning my futures data for current patterns where yesterday is the second inside day.
Cheers,
CanOz
Found this link in my library CanOz:
http://www.traders.com/index.php/sa...ps/395-amibroker-three-bar-inside-bar-pattern
Needs a cleanup but should work as a basic scan.
Yup, thats it...i just need to add another condition to make one more inside bar...
Thanks Captain!
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?