Can someone suggest how I might limit the _total_ number of trades taken per day, using intraday data? I don't mean MaxOpenPositons, which refers to number of...
Hello Keith I think you need to use the Low Level custom backtester. The following code hasn't been tested but should illustrate the principle behind it ...
Hi Bob, Download (save as) directly from the Members Area Library. The library you are accessing is now read only (used to be interactive) - so you have to do...
Hi Alan, With AB there's usually more than one way to skin a cat. I prefer explorations over scans for most purposes as I can display more information about...
also, "result" in the for loop returns only 2 values - 5 or 0. therefore, you will only get 2 colors in the ribbon. ________________________________ From: NW...
Hi Patrick, I love it. Now I have two ways of looking at Advancing and Declining stocks. I will study the code so I can understand how it works. Thanks! I will...
It's a hack. But, assuming that your database is on the same drive as your AmiBroker installation, it will do the job ;) Mike function getDriveLetter() { AB =...
Thank you Mike, I'll try that! Gets rid of one more ParamList() ... herman Mike wrote: It's a hack. But, assuming that your database is on the same drive as...
Hello, I want to compute and plot my own equity (labeled my_equity). In the code below (I skkipped the signal part with buy and sell signal), I wonder why...
DEAR FRIEND I HAVE MOMENTUM AFL WHICH IS COLLECTED FROM LIBRARY , WANT TO PLOT(MARK) DIVERGENCE AGAINST PRICE MOVEMENT ON THIS INDICATOR. SO, PL, HELP ME. ...
The following code will return a 1 when the negative DMI crosses above the positive DMI. mdmi = MDI(13); pdmi = PDI(13); dmicrossing = Cross(mdmi,pdmi); ...
Did you see BarsSince().? ... From: "Alan" <alan@...> To: <amibroker@yahoogroups.com> Sent: Saturday, November 21, 2009 3:51 PM Subject: [amibroker]...
Hi Anthony Thought I read the description of every function but I guess I didn't do a very good job. Thanks for bringing this function to my attention. Alan,...
The problem though is that there's no way to see what the unrealized P/L is for both positions from one symbol to the other in the pair, is there? Like if I...
There is a way to get P/L of each position, see: http://www.amibroker.com/guide/a_custombacktest.html Best regards, Tomasz Janeczko amibroker.com ... From:...
Hi Alan  please try this code it may help serve your purpose ...  //The following code will return a 1 when the negative DMI crosses above the positive...
Yves, Look more closely at your code. Specifically; uptrend= IIf(Result,1,0) ; downtrend= IIf(Result,1,0) ; Notice that you have set uptrend and downtrend to...
Markus, If all you want is a copy of the ~~~Equity that AmiBroker already calculates for you, then there is no need to do any specialized signal/trade...
Hi rvlv: Thanks for your interest in helping me with my problem and for the code. I tried the code with a filtered list of the 100 stocks making up the QQQQ's...
I guess I am still confused. When I do an Exploration over the last 30 days I get the following (I show only a snippit): Ticker Date/Time BUY SELL uptrend...
Hello again, Mike! Nope, I wanted to code my_equity to get a grasp of how CBT actually works. I´m aware that my_equity is the same as ~~~Equity. I later want...