[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Help with Exploration please



PureBytes Links

Trading Reference Links

Greetings All.
 
Here is what I want to do:
 

Test buy signals only, to see what percentage of the time the price is up after 5 days, 10 days, 20 days etc.

 

I want to set a buy condition, for example, a simple crossover,

 

Then create an exploration for 

 

a)     date of buy signal ( first line works)

b)     Value of Open on the next day.(this line gives close of signal day: how to get open of the next day?)

c)     Date for 10 periods from entry. (how to code for this?)

d)     Close value on day 10 after entry.( I am totally lost here).

 

Using code from the help file and yahoo groups …

 

So far I have…

 

F1 = Cross(EMA(C,10), EMA(C,30));

 

Lastbar = BarIndex()==BarCount-1;//what does this mean in english?

 

Condition = F1;

Condition = ExRem(Condition,Lastbar);

Filter = Condition;

 

Buy = F1;

Sell = 0;

 

AddColumn(ValueWhen(F1,DateTime()),"ema Xover",formatDateTime);

AddColumn(ValueWhen(F1,C), "Open next day",1.2);

//AddColumn( BarIndex(5), "date of buy plus 5 days",formatDateTime);

AddColumn(ValueWhen( F1,C, 5),"C @ B +5", 1.2);//returns blank column

 

//AddColumn( ?, "per change from buy",

 

Help or references appreciated

 

TIA

 
Chrisb

		
---------------------------------
Do you Yahoo!?
Shop for Back-to-School deals on Yahoo! Shopping.

[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/