As written before: functionality exists already - you can add your own summary rows using
https://www.amibroker.com/f?addsummaryrows
@Tomasz, I assume that the "median" was not provided for in the AddSummaryRows() function since its calculation in general is slower. In any case, maybe you could reevaluate the OP's request given that today, in general, PCs are much faster than a few years ago.
Anyway, @justintime, if it's very important, you can still include it in the results by adding specific columns to your explorations using the Median() or Percentile() functions with a period equal to the last value of the cumulative count of Status("barinrange").
Thanks summaryRows is able to get average. But can it be expanded to get the Median which IMO is more useful than average for my use. Thanks!
@Tomasz can you share your feedback for this
The code Snippets is not visible while start the amibroker using the com object(OLE) but it is visible in normal start up(manual application start) with amibroker.
Normal Startup:
Start amibroker using Ole
@balakrishnannatesan when you start AB, first set the current working directory to the AB installation folder, then start the process ( ie. Broker.exe )
its because of relative path, you seem to be starting it in the CWD from where your programs/script runs
thank you for support and response
I'd like to have editor shortcuts for increasing and decreasing the line indent of several marked lines.
@fritz: Tab and Shift-Tab will increase/decrease line indent for a block of code.
Thanks. That's funny. All the years I didn't dare to hit Tab, since that usually deletes everything that is marked in an instant.
3 posts were split to a new topic: Using Portfolio PNL in the custom backtester
A couple of small suggestions if I could?
- Analysis tab. The current formula, regarding the drop-down. It would be nice if on a Database level it would have a memory even after AB is closed, so that when we select the right most down arrow, our frequently used scripts will be listed for a quick selection, instead of having to open folders etc.
- When opening the formula editor, having a setting, so that it opens without a new blank code window auto named by incrementing the number in Formula "Formula (Number).afl", because it results in the build up empty files like... "Formula 1.afl, Formula 2.afl, Formula (n).afl" and so on.
- When we drag an indicator script onto a chart the parameters automatically opens, after changing inputs in the pane to see the results redrawn, a user typically wants to "Reset" all the indicator open parameters to the defaults, however that blanks out the parameter window. I think it should reload, but perhaps not reload with everything on the chart, like we would see when we left click on the chart to bring up parameters etc.
Just some thoughts. Happy belated New Year!
Oops, one more..
I know it's difficult to control a separate running instance of AB, but is it possible to Sync the symbol, so that if it is changed in a chart in one instance of a running AB, that it will also change in the other running instance of AB?
Hi Tomasz,
Is it possible to add an option to let user define stopSlip
? From below response, I understand that we can use commissions and add stopSlip there however this would then be applied to all trades.
For my intraday system, I have configured general slippage(say 1%) for opening and closing position by modifying respective buy/sell/short/cover array. However, in cases of stop hits, I'd want 2% slippage.
Currently, I can do this by calculating both stop price and adjustedStopPrice With Slippage and apply them conditionally.
IIf( stopHit, adjustedStopPrice, Close * ( 1 + closeSlippage ) )
.
However, I'd like to use ApplyStop
if stopSlip
can be configured with it. Thanks!
If you want your stops to be executed intra-bar (not at trade price) and simulate slippage, you should use commissions instead (add slippage amount to commission).
Just add slippage to commission. It will be deducted automatically at entry and exit.
Thanks for your comments Tomasz!
If I add slippage to commission say 1%
then it will be applied equally to entry, stop exit, normal time based exit. Is that correct or am I mistaken?
What if I want to configure different slippage like below,
entry - 1 %
normal time based exit - 1.5%
stop out exit - 2.5%
It would be great to be able to have a folder structure for watch lists, so that I can categorize my watchlists and then collapse the category so I don't have to look at all the watchlists all the time.
Please implement an ability to simply drag and drop tickers from one watchlist to another. I don't want to have to have to use to scroll through my multiple watchlists to select the watchlist I want to save it to. Then I have to remove that stock from the current watchlist. And yes, I have set up keyboard shortcuts already. And no, arrangement organiser is not a solution.
This entire process takes 10 seconds. With drag and drop, it takes 1 second. 9 seconds doesn't sound like a lot but when you multiple it by 500 symbols (per week) you get 7.5 minutes of wasted time and wasted clicks on this. Per year, around 6 hours!!!
Please implement this functionality! Please!
Assignment Organizer is exactly for that purpose - to move symbols from one watch list to another quickly. Maybe you are not using multiple selection (hold down SHIFT or CTRL key to multiple select). It makes things a A LOT QUICKER.