[amibroker] Re: Help - TimeFrameSet, Please

2008-02-22 Thread irek_smaczny
I understand that I don't have any possibility to work on daily bars and get data from intraday. I must work on intraday bars and get data from daily bars. Am I right ? What with value BarCount ? After changing frame with TimeFrameSet this value is not changed. How can I work on bars after TimeFra

[amibroker] Help - TimeFrameSet, Please

2008-02-22 Thread irek_smaczny
Hi, I want to write simple system working on dayily bars. I want to take LONG when price = OPEN+15 or take SHORT when price = OPEN-15. But I have problem: how can I check on historical data what is first: OPEN+15 or OPEN-15. Days bar don't have this information and this is why in those specific day

[amibroker] Re: How can work on day bar with buyprice and shortprice?

2008-02-11 Thread irek_smaczny
Could anybody help me with this ? It is possible to make buy and short on the same bar ? Regards

[amibroker] How can work on day bar with buyprice and shortprice?

2008-02-06 Thread irek_smaczny
Hi, I want to buy and short on the same day bar. I wrote simple afl, AA->Explore working OK and I have buyprice and shortprice. But when I run Scan or Backtest only one price from this day is ok. Could anybody help me with my afl? Regards --- SetBarsRequired(10,10); // require all past

[amibroker] ATR - whats wrong ?

2008-01-13 Thread irek_smaczny
I want to write ATR step by step. I write code: ## num=2; ATR1=ATR(1); ATRNUM=ATR(num); a1=High-Low; a2=abs(High-Ref(Close, -1)); a3=abs(Low-Ref(Close, -1)); MYATR1=Max(a1, Max(a2, a3)); MYATRNUM=0; for( i = 1; i < BarCount; i++ ) { x=0; for (j=1; j <= num; j++

[amibroker] Re: Import signals from file ?

2008-01-08 Thread irek_smaczny
Could you write example in afl ? Regards --- In amibroker@yahoogroups.com, "davemabe2000" <[EMAIL PROTECTED]> wrote: > > Another way is to do what I just recently started doing - I store the > alerts in a csv file and then read the csv file from within my AFL code.

[amibroker] Import signals from file ?

2008-01-06 Thread irek_smaczny
Hi, I want to analyse public system, but I have only buy and sell signals in file: date,time,price,signal where signal is buy or sell. How can I import it to amibroker to show this on chart and run backtest on it ? Regards

[amibroker] Re: When last bar is completed?

2008-01-03 Thread irek_smaczny
Hi, I don't understand your last message :-( Could you explain it again ? I wrote stupid system: RequestTimedRefresh (3, False); SetTradeDelays(0,0,0,0); function GetSecondNum() { // zwraca liczbê sekund z fukcji Now(4) Time = Now(4); Seconds = int(Time%100); Minutes = int(Ti

[amibroker] Re: AlertIf and Say - how to run ?

2007-12-28 Thread irek_smaczny
Now, I know. I must add: RequestTimedRefresh (2, False); Most important is FALSE !!! Now everything is ok, even if Amibroker is minimized.

[amibroker] Re: When last bar is completed?

2007-12-28 Thread irek_smaczny
Your example is very very good :-))) THX a lot! Yes, I'm not interested what time is it, but when bar starts. Now from variable "NewPeriod" I know, when in real-time current bar is ended. But I have example (period 1 Hour): At 9:59:50 I know(if any qutations are in last hour), that time to end

[amibroker] Re: When last bar is completed?

2007-12-28 Thread irek_smaczny
I read it in UKB and read about Now(). But how can gat start time for last bar?

[amibroker] When last bar is completed?

2007-12-27 Thread irek_smaczny
Hi, I want to write system in Ami 4.9 and I have one problem. I want to know, when bar is completed. I found on: http://www.amibroker.com/guide/h_alerts.html that bar is completed when barcomplete = BarIndex() < LastValue(BarIndex()); But I think that is not in 100% true:-( I working on 1-Hours

[amibroker] AlertIf and Say - how to run ?

2007-12-27 Thread irek_smaczny
Hi, I my system I want to use AlertIf and Say. All is OK when Amibroker is open and maximized. But when my Amibroker is minimized then Alertif and Say don't work. Could anybody help me with that ? Regards

[amibroker] Re: Can I use field 'time' from DDE ?

2007-10-02 Thread irek_smaczny
Any help ?? --- In amibroker@yahoogroups.com, "irek_smaczny" <[EMAIL PROTECTED]> wrote: > > Hello, > I'm using DDE with AmiBroker connected to NOL3 (Poland/Bossa.pl) but I > think, that field "Time" in Database Settings->Configure is't

[amibroker] How can I convert AmiBroker tick database to AmiBroker 1-minute data ?

2007-10-02 Thread irek_smaczny
I have big database with intraday 1-sec quoutes. How can I change quotes interval in database to shrink database ? Regards

[amibroker] Re: Need to delete the entire intraday tick data of a particular date

2007-09-24 Thread irek_smaczny
--- In amibroker@yahoogroups.com, "Kapil Marwaha" <[EMAIL PROTECTED]> wrote: > > Friends, > > Can anyone tell me how I can delete the intra-day tick data of a > particular date or a group of dates for all the scrips in my database > or a select number of scrips in my database. > > Can it be done

[amibroker] Can I use field 'time' from DDE ?

2007-09-19 Thread irek_smaczny
Hello, I'm using DDE with AmiBroker connected to NOL3 (Poland/Bossa.pl) but I think, that field "Time" in Database Settings->Configure is't work. In intraday settings when I use DDE with Amibroker "Exchange time" and "Local time" is omited, only time from my local computer is working. Can I chan