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

Re: [amibroker] ESignal Parabolic



PureBytes Links

Trading Reference Links

Rakesh,

Something a bit more complex: 


// -----------------------------------------
// Custom Price Chart - Fib MA Levels
//#include "C:\\program files\amibroker\afl\includes\QP2.afl";

Title = Name() +" -
"+WriteIf(Interval()==86400,"Daily",WriteIf(Interval()==432000,"Weekly",WriteIf(Interval()==2160000,"Monthly","")))
+ " " +WriteVal( DateTime(), formatDateTime )+" - Fibs -"+
" O "+WriteVal(O,1.2)+" "+" H "+WriteVal(H,1.2)+" "+
" L "+WriteVal(L,1.2)+" "+" C "+WriteVal(C,1.2)+
" - Volume:"+WriteVal(V,1);

Plot( Close, Date() +"\n"+ "O: " + WriteVal( Open, 1.2 ) +"\n"+ "H:
"+WriteVal(High, 1.2 ) +"\n"+ "L: " + WriteVal( Low, 1.2 )+"\n"+ "C:
",colorBrightGreen, styleCandle);
//PlotOHLC( O, H, L, C, "Open =" + O + "\n"+"High ="+H + "\n"+"Low ="
+ L +"\n"+"Close ", colorBlack, styleCandle ); 

Plot(MA(C, 13), "13 SMA", colorBrightGreen, styleLine | styleThick);
Plot(MA(C, 21), "21 SMA", colorLightGrey, styleLine | styleThick);
Plot(MA(C, 34), "34 SMA", colorRed, styleLine | styleThick);
Plot(MA(C, 55), "55 SMA", colorBlue, styleLine | styleThick);
Plot(MA(C, 89), "89 SMA", colorAqua, styleLine | styleThick);
Plot(MA(C, 144), "144 SMA", colorYellow, styleLine | styleThick);
Plot(MA(C, 200), "200 SMA", colorLightGrey, styleLine | styleThick);

// Now Plot Week & Month Seperators
Min1=Param("Long Span Min",-0.5,-5,10,0.5);
Min2=Param("Short Span Min",-1,-5,10,0.5);
Max1=Param("Long Span Max",7,0,10,0.5);
Max2=Param("Short Span Max",15,0,100,0.5);

M1=IIf(Year()!=Ref(Year(),-1),1,0);
M2=Null; //Put anything here that you want
W1=IIf(Year()!=Ref(Year(),-1),1,0);
W2=IIf(Month()!=Ref(Month(),-1),1,0);
D1=IIf(Month()!=Ref(Month(),-1),1,0);
D2=IIf(DayOfWeek()<Ref(DayOfWeek(),-1) ,1,0);

INV=Interval();
A1=IIf(INV==86400,D1,IIf(INV==432000,W1,IIf(INV==2160000,M1,Null)));
A2=IIf(INV==86400,D2,IIf(INV==432000,W2,IIf(INV==2160000,M2,Null)));

Plot(A1,"",24,styleHistogram|styleOwnScale|styleNoLabel,Min1,Max1);
Plot(A2,"",39,styleHistogram|styleOwnScale|styleNoLabel,Min2,Max2);

// Scale Vol for spikes
//Vol = Volume / 1000;
//Vol_Avg = Ref(MA(Vol,30),-1);
//PlotColor= IIf(Vol > (2*Vol_Avg),colorYellow,colorIndigo);
//PlotVol = IIf(Vol < (2*Vol_Avg),Vol,(Vol_Avg));
//Plot( PlotVol,"Volume",
Plotcolor,styleHistogram|styleOwnScale|styleNoLabel);
Plot(V,"Vol",colorIndigo,styleHistogram|styleOwnScale|styleNoLabel);
//------------------------------

Phsst

--- In amibroker@xxxxxxxxxxxxxxx, Rakesh Sahgal <rakeshsahgal@xxxx> wrote:
> Jayson,
>  
> Worked like a charm. Thanks for taking the trouble.
>  
> Regards
> 
> 
> Jayson <jcasavant@xxxx> wrote:
> Rakesh,
>  
> you will need to plot a custom price indicator...
>  
>  
> Plot(C,"Price",4,64);
> Plot(MA(C,10),"10 ma",5,1);
> Plot(MA(C,20),"20 ma",6,1);
> Plot(MA(C,30),"30 ma",7,1);
> Title="Open "+O+" High "+H+" Low "+L+" 10 day
"+WriteVal(MA(C,10),1.2)+" 20 day "+WriteVal(MA(C,20),1.2)+" 30 day
"+WriteVal(MA(C,30),1.2);
>  
> adjust the formatting and colors to your liking
>  
> Regards, 
> Jayson 
> -----Original Message-----
> From: Rakesh Sahgal [mailto:rakeshsahgal@x...]
> Sent: Wednesday, March 10, 2004 10:11 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Custom Price Window
> 
> 
> Hi Group,
>  
> I am looking  for a way to do the following:-
>  
> In the main price window:
> 1. Display all the price fields i.e. OHLC and V. and also display
more than the 3 MA's permitted by AB using the preferences route.
>  
> 2. Values of the all price fields and other plots be available
within the main price window rather than only for the current day the
right of the price window.
>  
> Is this possible? If so can someone please help me do this.
>  
> Thanks
>  
> Rakesh
>  
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Search - Find what youre looking for faster. 
> 
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> 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 
> 
> 
> 
> 
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> 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 
> 
> 
> Yahoo! Groups SponsorADVERTISEMENT
> Click Here
> 
> ---------------------------------
> 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 the Yahoo! Terms of Service. 
> 
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Search - Find what you're looking for faster.



Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
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 
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/