- Joined
- 24 October 2005
- Posts
- 1,302
- Reactions
- 834
Although in your formula you would just use Null and the iif function would return x if a is Null or y if a is not Null.
Cheers Capt.
IIf(a==Isnull(), x,y); Is this correct?
Sorry, I corrected myself in the next post. In your case you would use Null.
ie:
IIf(a == Null, x, y );
Good afternoon, everyone.
I would greatly appreciate someone to help me.
My inglish is very bad and I'm using the google translator.
I have a problem in AmiBroker code. The backtest should buy when you stick the COND1. It does.
The problem is this. When you buy should take the RSIbuy and use it to sell.
If the RSI is less than 10% of RSIbuy or if the RSI is greater than 10% of RSIbuy must sell. Well not sell when that happens.
Someone could tell me what's wrong?.
Thank you.
Buy= Cond1;
RSIbuy=ValueWhen(Buy,RSI(14));
VentaB= 1,10*RSIbuy;
VentaP= 0,90*RSIbuy;
Sell= RSI(14)>VentaB OR RSI(14)<VentaP;
BuyPrice=SellPrice=Open;
Buy=ExRem(Buy,Sell);
Sell=ExRem(Sell,Buy);
Hi
A question plz....I do a walkforward run on a portfolio and generate a report. How then do I analyze the performance of the individual issues so I can eliminate the worst performers and rerun the test? As far as I can tell the standard backtest report generated doesnt show this info.
Excel maybe? its not my strong point.
Thanks in advance!
Hi
I am having problems placing Volume on the main stock chart. When I do it replaces stock chart with the volume data only.
Any help appreciated
Shaker
Do an individual backtest (click AA -> backtest -> indiviudal backtest). Then click cumulative profit column to rank lowest first. This will show the poorest performers. I don't know why you'd want to remove the poorest performers though. Why do you?
Thanks for the advice Gringott, hmmmm why do I?
Well to be perfectly honest, in R/L im a Quarry Manager not a Fund Manager and I'm enjoying the Amibroker journey, it comes natural to me to identify poor performers and if its uneconomical to make the poorest performers perform....then I remove them!
Educate me please, why would I retain them?
Thanks for your time.
In real trading you won't know the poor performers until they have performed poorly. Removing them at that point won't help the bottom line. .
On mine, i just drag the volume chart in the left hand panel and drop it in the main chart window and it adds volume to the chart. If you want volume seperate, right click and choose insert.
Dont wanna sound ungrateful for the advice, but isnt this the point of backtesting/walkforward tests?
Precisely the reason I want to weed out the worst performers in a portfolio is that not all issues perform equally under any given trading system.
Maybe its my newbiness.
Hello and welcome to Aussie Stock Forums!
To gain full access you must register. Registration is free and takes only a few seconds to complete.
Already a member? Log in here.