- Joined
- 13 June 2007
- Posts
- 838
- Reactions
- 136
When you have multiple buy signals, but not enough cash, amibroker has to make a choice as to which ticker to buy. By default it will go by alphabetical order (giving "A" preference").
Positionscore Random randomises it so it becomes more realistic. If your equity cruve varies too much when you randomise the trades, then your system probably isn't robust enough.
I'm trying to work out why the ATR line (the pinky/teal) one is set at those colours and how to change it. I can't find anything in the code. Is anyone able to help?
Plot(VS, "Vol Stop",IIf(trend==1, 10, 11),styleThick);
I also want to know:
Is it possible to open up a new sheet and then have 2 windows and have:
1. one with a stock's daily chart and one with the same stock's weekly chart? (in the same sheet)
2. One with a stock's daily chart and one with another stock's daily chart? (in the same sheet)
When you have multiple buy signals, but not enough cash, amibroker has to make a choice as to which ticker to buy. By default it will go by alphabetical order (giving "A" preference").
Positionscore Random randomises it so it becomes more realistic. If your equity cruve varies too much when you randomise the trades, then your system probably isn't robust enough.
Yeh but as I said, I had positionsize = -5, and a huge initial equity, which should mean that each and every trigger is bought, so Random() shouldn't make a difference.
Even if I add SetBacktestMode( backtestRegularRaw ), Random() still makes a difference to the curve on each run.
No idea how this happens.
ok but if I remove Positionsize altogether and have:
PositionScore = Random();
SetBacktestMode( backtestRegularRaw );
I still get AB making different decisions on each run. 'Raw' should mean it takes every trade.
Cap I have AA>max positions taken at 1000 already!
Very odd. Are you suggesting positionsize = -.0001 or something similar? I'm feeling like I'm missing something. Raw mode isn't doing what it says it should.
To answer my own question, use styleLeftAxisScale since styleOwnScale scales each EMA independently of the other, therefore the cross bears no relation to when they actually crossed....test an index function using an EMA cross as a trigger but it doesnt appear to be plotting correctly...
thanks cap. Will get Marcin on the blower and report back.
No probs GB. Post the reply from support here as this thread often shows up in google searches for Amibroker related questions and is a useful resource.
Then I used (AA –> Settings –> Report: Detailed log) to analyse more deeply.
Later, I use:
PS = Optimize("PS",1,1,100,1);
PositionScore=Random()*PS;
....for my layman's Monte Carlo analysis.
Hi GB --
I work with Monte Carlo simulation regularly, and my most recent book (Modeling Trading System Performance) is devoted to it. There is a Monte Carlo simulation module written as an Excel add-in on that book's website that you are welcome to download (at no cost) and use.
What I do and what you do may be quite different.
But I do not understand --
How do you use the results of the simulation runs?
What hypothesis are you testing?
What statistical manipulations or tests do you use?
How does what you find aid the development of a trading system?
Thanks,
Howard
Ive never really understood about how to apply a stop loss to a system and hopefully plot it on the chart.
I want to set up a sell condition that would say something like
condition2= If price falls by 2% below entry price - Sell.
or
Condition2=If pricebreaks the low of the entry bar - Sell
I tried this but it doesnt plot. It just plots a line at the bottom of the chart.
ApplyStop(stopTypeLoss,
stopModePercent,
Param( "max. loss stop level", 2, 2, 30, 1 ),
True );
Plot(Sell==4,"ApplyStop Sell",colorRed,1|styleOwnScale);
Is anyone able to help please?
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?