PureBytes Links
Trading Reference Links
|
Hello Usergroup!
Can someone please test this code? I want to change timeframe within
my AFL-code, but the result is always "Monthly".
Per example when in 15min timeframe it should change to hourly.
I am running 4.70 Professional Edition.
//**************
before=Interval(2); // before changing timeframe
if (Interval(2)=="1-minute") TimeFrameSet( in5Minute );
if (Interval(2)=="5-minute") TimeFrameSet( in15Minute );
if (Interval(2)=="15-minute") TimeFrameSet( inHourly);
if (Interval(2)=="Hourly") TimeFrameSet( inDaily);
if (Interval(2)=="Daily") TimeFrameSet( inWeekly);
if (Interval(2)=="Weekly") TimeFrameSet( inMonthly);
afterChange=Interval(2);
TimeFrameRestore(); // restore time frame to original
afterRestore=Interval(2);
Title="before : "+before+" after change : "+afterChange+" after
restore : "+afterRestore;
//********************
Thank you in advance
enzo
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~->
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.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/
|