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

Re: [amibroker] Re: IIF statements in Buy Condition



PureBytes Links

Trading Reference Links

John- Thank you for all the formulas and your time. 



--- In amibroker@xxxxxxxxxxxxxxx, "John" <jea55129@xxxx> wrote:
> Dan,
> 
> Like this:
> 
> //Daily Pivot
> TimeFrameSet( inDaily );
> 
> R5=(H/L)*C;
> R4=(((H/L)+1)/2)*C;
> R3=(((H/L)+3)/4)*C;
> R2=(((H/L)+5)/6)*C;
> R1=(((H/L)+10)/11)*C;
> 
> S5=C-(R5-C);
> S4=C-(R4-C);
> S3=C-(R3-C);
> S2=C-(R2-C);
> S1=C-(R1-C);
> 
> TimeFrameRestore();
> 
> 
> DailyS1=TimeFrameExpand(S1,inDaily);
> DailyS2=TimeFrameExpand(S2,inDaily);
> DailyS3=TimeFrameExpand(S3,inDaily);
> DailyS4=TimeFrameExpand(S4,inDaily);
> 
> DailyR1=TimeFrameExpand(R1,inDaily);
> DailyR2=TimeFrameExpand(R2,inDaily);
> DailyR3=TimeFrameExpand(R3,inDaily);
> DailyR4=TimeFrameExpand(R4,inDaily);
> 
> DailyPvt=TimeFrameExpand(R5,inDaily); //expanded
> PlotOHLC( Open, High, Low, Close, "Daily Close", colorIndigo,64 );
> 
> Plot( DailyS1, "DailyS1", 1,1,1.4);
> Plot( DailyS2, "DailyS2", 2,1,1.4);
> Plot( DailyS3, "DailyS3", 3,1,1.4);
> Plot( DailyS4, "DailyS4", 4,1,1.4);
> 
> Plot( DailyR1, "DailyR1",5,1,1.4);
> Plot( DailyR2, "DailyR2",6,1,1.4);
> Plot( DailyR3, "DailyR3",7,1,1.4);
> Plot( DailyR4, "DailyR4",10,1,1.4);
> 
> Plot(DailyPvt, "DailyPvt",9,1,1.4); 
> 
> John
> - In amibroker@xxxxxxxxxxxxxxx, "ashleykateinez" <amarones@xxxx> 
> wrote:
> > I am trying to figure out how to program the daily pivot,support 
> and 
> > resistance levels in indicators which are based on the previous 
> > day's H,L,C on my intraday charts. How can I reference the 
previous 
> > day's H,L, and C from an intraday chart, build an indicator and 
> > project that indicator onto today's entire timeframe, then make 
it 
> > do the same thing day after day? Any help is appreciated.
> >  
> > Thanks,
> >  
> > Dan



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/GHeqlB/TM
---------------------------------------------------------------------~->

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/