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

[amibroker] Forward placed EMA on Price



PureBytes Links

Trading Reference Links

--- In amibroker@xxxxxxxxxxxxxxx, "dingo" <dingo@xxxx> wrote:
> Neat code Graham!
>  
> Now lets say I'd like figure out what price for tomorrow (today in 
the
> composite, right?) would cause a buy signal. How can I initialize 
that
> price and vary it by .01 up or down until I get a buy or another 
signal?
> 
>  
> That would be soooo very neat!!
>  
> d
> 
> -----Original Message-----
> From: Graham [mailto:gkavanag@x...] 
> Sent: Tuesday, February 04, 2003 4:02 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: RE: [amibroker] Creating an artifical security.
> 
> 
> 
> Try this to create composite with the last day just being equal to
> previous close price and zero volume. Quote editor will allow to 
enter
> the numbers.
> 
>  
> 
> // CREATE COMPOSITE WITH LAST DAY NOT ENTERED 
> 
> //USE SCAN BUTTON TO CREATE COMPOSITE, THEN QUOTE EDITOR TO ENTER 
THE
> LAST Day MANUALLY
> 
>  
> 
> O = IIf(DateNum()==LastValue(DateNum()),Ref(C,-1),O);
> 
> H = IIf(DateNum()==LastValue(DateNum()),Ref(C,-1),H);
> 
> L = IIf(DateNum()==LastValue(DateNum()),Ref(C,-1),L);
> 
> C = IIf(DateNum()==LastValue(DateNum()),Ref(C,-1),C);
> 
> V = IIf(DateNum()==LastValue(DateNum()),0,V);
> 
>  
> 
> //Automatic inclusion of ticker code
> 
> xyz =  "~" + Name();
> 
>  
> 
> Buy=0;
> 
> AddToComposite(H,xyz,"H");
> 
> AddToComposite(L,xyz,"L");
> 
> AddToComposite(O,xyz,"O");
> 
> AddToComposite(C,xyz,"C");
> 
> AddToComposite(V,xyz,"V");
> 
>  
> 
>  
> 
> Cheers,
> 
> Graham
> 
>  
> 
>  
> 
> -----Original Message-----
> From: BillBarack <wbarack@xxxx> [mailto:wbarack@x...] 
> Sent: Wednesday, 5 February 2003 4:30 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Creating an artifical security.
> 
>  
> 
> Help! I want to be able to create a security that has all data 
> 
> shifted back in time by one day and then be able to put in my best 
> 
> guess for the final day's data.
> 
>  
> 
> Shifting can be done, I think, using the ref function.
> 
>  
> 
> Dummy = ref(original security,-1)
> 
>  
> 
> But how can I plug in the final days data. I can't quite figure 
that 
> 
> one out. Any great ideas out there?
> 
>  
> 
> Bill
> 
>  
> 
>  
> 
> 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/ 
> 
>  
> 
> 
> Yahoo! Groups Sponsor	
> 
> ADVERTISEMENT
Sometime back there was a discussion on how to advance the  EMA some 
5 units ahead of time, and plot this over a current display of price

The graph0=ema(c,8);
A ref (5)or ref -5 moves the line forward of price

The insert of Price wants to be in the some window to evaluate  



> 
<http://rd.yahoo.com/M=243066.2784922.4151385.1927555/D=egroupweb/S=17
05
> 632198:HM/A=1377501/R=0/*http://www.verisign.com/cgi-bin/go.cgi?
a=b30890
> 113200616000> 	
>  
> <http://us.adserver.yahoo.com/l?
M=243066.2784922.4151385.1927555/D=egrou
> pmail/S=:HM/A=1377501/rand=969001603> 	
> 
> 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 the Yahoo! Terms of Service
> <http://docs.yahoo.com/info/terms/> .


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/