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

[amibroker] Re: Can this code for the Vix be done in amiBroker?



PureBytes Links

Trading Reference Links

You'd have to supply the AMAFunc2 which I believe is a Jurik function.

If it's not locked code then supply the function as well.

--- In amibroker@xxxxxxxxxxxxxxx, "theoldchartreader 
<theoldchartreader@xxxx>" <theoldchartreader@xxxx> wrote:

> Hi everyone,
> 
> Could someone please rewite this for AmiBroker. 
> 
> Thank you in advance,
> Dennis
> 
> TradeStation Code:
> Input: Len1(21),Len2(15),Avg1(12),Avg2(3);
> Vars: Vix(0),Hvol(0), Btest(false);
> 
> Vix = Amafunc2(C of data2,Avg1);
> Hvol = Amafunc2(((StdDev(C,Len1)*Len2)/C)*100,Avg2);
> Btest = Hvol > Hvol[1] and Vix < Vix[1];
> 
> If Hvol crosses above Vix and Btest = true then buy market;
> if Hvol < Hvol[1] and Hvol[1] > Hvol[2] then 
> begin
> 	exitlong;
> 	Btest = false;


Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

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