Executing the following code on a 15 min bar chart returns the same value for
gSite.getArraySize()
arraySize = gSite.GetArraySize(); //returns bars in 15 min chart
AmiVar args[ 1 ];
args[0] = makeAmiVarFloat(3600); //proper amibroker var
gSite.CallFunction(TimeFrameSet,1,args);
arraySize =
Hello
When allocating memory for objects and data in a C++ custom (plugin) DLL, I'm
using AllocArrayResult and Alloc during individual runs, and malloc/free in
the initialization of the plugin. However, is it possible to allocate
additional static/persistent memory during runs and what is
Still struggling with this! Is there an object overview (methods and
properties) available on IB Controller - as with AmiBroker's OLE Automation
Object Model overview?
Best regards
Jens
--- In amibroker@yahoogroups.com, tiedemj h...@... wrote:
Really excellent information Jules - thank you
://www.codeguru.com/cpp/cpp/string/conversions/article.php/c5639/
Most of what you'll need can be found at msdn by just following the links
from one function to another.
Hope that helps a bit.
Jules.
--- In amibroker@yahoogroups.com, tiedemj home@ wrote:
Hello Tomasz
I would be nowhere
@yahoogroups.com, reefbreak_sd reefbreak...@... wrote:
There is a Yahoo! discussion group TWSAPI that talks about the IB TWS
interface.
--- In amibroker@yahoogroups.com, tiedemj home@ wrote:
bump - anybody?
I've seen this question asked before - but can't find any answers. Can
and foremost: why would you like to do that ?? (it is possible,
but why make things harder when you can do this
from AFL?)
Best regards,
Tomasz Janeczko
amibroker.com
On 2010-04-09 19:03, tiedemj wrote:
Tx, but nothing in TWSAPI forum about how to call IB Broker interface
directly from a C
bump - anybody?
I've seen this question asked before - but can't find any answers. Can somebody
just give a hint (if the explanation is not trivial...)
best regards
Jens Tiedemann
--- In amibroker@yahoogroups.com, tiedemj h...@... wrote:
Assume it's possible to call IB Controller directly
Assume it's possible to call IB Controller directly from an AmiBroker c++
plugin. Can anybody show how to do it in native c++?
Best regards
bump - anyone?
--- In amibroker@yahoogroups.com, tiedemj h...@... wrote:
The new dateTimeDiff() function is great - saves a lot of date/time
arithmetic. But is there a simple way to add a timespan (say number of
seconds) to a dateTime value. For instance, I want to use the GTD (Good
The new dateTimeDiff() function is great - saves a lot of date/time arithmetic.
But is there a simple way to add a timespan (say number of seconds) to a
dateTime value. For instance, I want to use the GTD (Good To Date) TimeInForce
value in IBController. So what I need is something like:
Hi, I'm trying to get IB Controller to work from two computers up against TWS
running on another computer. However, I get Error 326 - unable to connect as
the client id is already in use
Is it possible to configure the client id in the same way as it is for the IB
Data plugin. So far, I've
How can I identify which window is running my AFL code. Say I have two chart
windows open - with the same symbol. However, using StaticVarSet/Get (for
automatic trading purposes) does not destinguish between the two windows. I
need something like the following:
chartWindow = xx;
Tx - This is exactly what I need. However, for some reason, the getChartId()
function always return the same value (in my case 1250)...
(I create new charts from the file-default chart menu)
is it just me - or is there something I don't get?
jens
the different chart IDs and also show the execution
order in the AB Log window.
It may help you find you bug. Charts never have the same ChartIDs.
herman
tiedemj wrote:
Tx - This is exactly what I need. However, for some reason, the
getChartId() function always return the same value
--- In amibroker@yahoogroups.com, tiedemj home@ wrote:
bump - still found no resolution on this...
--- In amibroker@yahoogroups.com, tiedemj home@ wrote:
Hello - trying to stop trading activity when portfolio equity
is
below maxEquity by some pct, and resume trading when equity
rises
bump - still found no resolution on this...
--- In amibroker@yahoogroups.com, tiedemj [EMAIL PROTECTED] wrote:
Hello - trying to stop trading activity when portfolio equity is
below maxEquity by some pct, and resume trading when equity rises
above previous maxEquity (where equity
Hello - trying to stop trading activity when portfolio equity is
below maxEquity by some pct, and resume trading when equity rises
above previous maxEquity (where equity is as if trading had not
been suspended)
Using custom backttest as follows:
// first run to collect when to stop/resume
Hello
In order to hedge Forex trading, I'm running two independent trading
systems. One performs well in certain situations, the other
under opposite conditions.
However, the two systems will often provide opposite tradesignals
(long/short), even in the same bar. I still want to take the two
!
ApplyStop()'s Profit Target and Stop Losses are evaluated
INDIVIDUALLY for each open trade and they are NOT exited at the
same time.
Best regards,
Tomasz Janeczko
amibroker.com
- Original Message -
From: tiedemj [EMAIL PROTECTED]
To: amibroker@yahoogroups.com
Sent: Friday, August
Ilhan,
think you are on to something important in the way Amibroker handles
forex trading today. However, after having done some tests on my own,
I think the code below should be modified to use the currency being
traded (first symbol) versus USD instead of base (second symbol) in
a currency
at the
same time.
Best regards,
Tomasz Janeczko
amibroker.com
- Original Message -
From: tiedemj [EMAIL PROTECTED]
To: amibroker@yahoogroups.com
Sent: Friday, August 08, 2008 5:10 PM
Subject: [amibroker] Re: Taking all signals (long/short) with
individual profit/loss target exits
Hello
entered all currencies in Preferences-Currencies (using dynamic)
entered all base currencies in Symbol-Information-Currency(field)
for all symbols
using the following values:
RoundLotSize = 1
MarginDeposit = -2; //due to IB margin requirement of 2%
TickSize = 0.0001; // 0.01 for JPY
Hello
Anybody know how to express a system in AFL, that trades ALL buy and
short signals - holding each trade until a profit or loss target is
reached independent for each individual trade?
I was trying to use sigScaleIn/Out - but as there can be both entry -
and exit signals on each bar - I
( backtestRegularRawMulti );
rgds, Ed
- Original Message -
From: tiedemj
To: amibroker@yahoogroups.com
Sent: Friday, August 08, 2008 1:12 PM
Subject: [amibroker] Taking all signals (long/short) with
individual profit/loss target exits
Hello
Anybody know how
So close, but not yet there... Hi - I've been trying to use Retrieve
() from Quotations in C# using the description found here:
http://groups.google.com/group/microsoft.public.dotnet.framework.inter
op/msg/010238fcb89f94ee
Below is the code. The ole call goes fine - but it only returns the
Hi, is it possible (using the Amibroker Development Kit), or by other
means, to programatically create an amibroker database?
Also, is it possible to programatically add and delete ticker symbols
into an already existing database (incl. intraday databases using IB
plugin)?
regards
Jens
--- In amibroker@yahoogroups.com, Tomasz Janeczko [EMAIL PROTECTED]
wrote:
Hello,
No, by default all .EXE OLE/COM servers use always first running
instance,
and you can not change it.
Best regards,
Tomasz Janeczko
amibroker.com
- Original Message -
From: tiedemj [EMAIL PROTECTED
Hi,
When using the
Type objClassType;
objClassType = Type.GetTypeFromProgID
(Broker.Application);
application = Activator.CreateInstance(objClassType);
interface to access AmiBroker functionality from C# multiple times, it
seems I only get access to one
Hi
If you hold a position, it seems, that if you get both a buy and a
sell signal on the same bar for the symbol in your holding position,
only the sell signal is executed - and the buy signal for that symbol
is ignored in the selection of a new trade, so even if the symbol in
question has
--
Cheers
Graham
AB-Write Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm
On 28/05/06, tiedemj [EMAIL PROTECTED] wrote:
What is the internal format of dates/days in DateTime() numbers.
How
are years, months and days
The Porfolio Backtester Interface Reference Guide - preliminary
documentation (is there a newer version?), gives a good overview of
the methods and facilities available, but no examples. Is there
anybody who can point at a (generic) example for the medium- and low-
level approach that can be
or automated trading.
You don't have to dive in to IO but you can down load the
documentation and see if that helps
Regards
Joe
- Original Message -
From: tiedemj
To: amibroker@yahoogroups.com
Sent: Monday, March 20, 2006 7:58 AM
Subject: [amibroker] Re: Best
Ultimately, a high CAR will give the best results overall - but when
constructiong trade systems using many symbols/stocks - RAR is also
very valuable. However, picking optimization values around an
extremely high RAR might lead to curve fitting (this situation will
never come around again, as
33 matches
Mail list logo