bo = GetBacktesterObject();
st = bo.GetPerformanceStats(0);
The last line gives me error COM/Object handle is null.
Any idea why this is so.
regards
vishal
Hi,
I am writing my first AFL system and as such encountered few
stumbling blocks. If someone can help to clear my roadblocks I will
be very grateful.
I have lines of code -
// here I am trying to find the how many bars I am in trade
// I can only be in long or short at one time.
barsSinceEntry
Hi,
If I want to execute a piece of code in my system only on first bar,
what should be the conditional statement.
Also those variables which I have initialized in that block for first
bar, will they be present for 2nd bar and so on.
Do I need to declare those variables global or there is some ot
Hi,
I am new to amibroker. Can someone pls provide me code examples as to
how to implement exit after specific number of bars. Say I want to exit
after 10 bars from where I got in the trade. My trading position can be
either buy or short.
regards
vishal
Hi,
I got a simple code like
sysruns = Optimize("runs",1,1,4,1);
//code again
then
Buy = functionA(sysruns);
In functionA I write the value of syruns in a specific file. What I
have noticed is that I get 3 times 1 and then rest all the values once.
I dont know the reason for this.
Anybody got a
Hi,
I want my hourly forex bars in amibroker to start at the hour like
15:00, 16:00 etc. What parameter should I alter? At present without any
changes it gets me hourly bars starting at half past the hour like
15;30, 16:30 etc.
vishal
I have got hourly bars in my real time chart. Since bars occur at an
interval of 60 mins, I want my exploration to work once for that new
bar and as quickly as possible after that bar is finished.
I have got the code which shows the buy and sell signal in the
automatic analysis window but the pr
gt;
> Try adding a time condition to your trade conditions
> You can have them both in the same AFL, and have the trade
conditions like
> Buy = Condition1 OR Condition2;
>
>
>
> --
> Cheers
> Graham Kav
> AFL Writing Service
> http://www.aflwriting.com
>
>
Hi,
In my strategy when I get into a position(for e.g long) then there is
a stop order also placed. My exit is after specific number of bars
(for e.g 10).
Can somebody give me code example as to how to club this stop order
and sell order after 'N' bars into one group.
The specific code snippet is
I have enquired from interactive brokers and they say that the program
(amibroker) should be reading the server time and not PC time. They say
that its a problem with the client program. Unfortunately amibroker
guys have gone silent on this issue and I havent received any reply
from them for thi
10 matches
Mail list logo