friends,
In this thread let us share some of the AmiBroker Tips or FAQ's. It should help us in the long term.
1st Tip,
You can have multiple Timeframes chart say Daily and Weekly as two section in the same screen for a Scrip.
What you need to do is a create a simple forumla using formula editor and specifty timeframe was Weekly or Daily.
in1Minute = 60
in5Minute = 5 * 60
in15Minute = 15 * 60
inHourly = 3600
inDaily = 24 * 3600
inWeekly = 5 * 24 * 3600 + 1 = 432001
inMonthly = 25 * 24 * 3600 + 1 = 2160001
EXAMPLE TimeFrameSet( in5Minute ); // switch to 5 minute frame
/* MA now operates on 5 minute data, ma5_13 holds time-compressed 13 bar MA of 5min bars */
ma5_13 = MA( C, 13 );
TimeFrameRestore(); // restore time frame to original
TimeFrameSet( inHourly ); // switch now to hourly
mah_9 = EMA( C, 9 ); // 9 bar moving average from hourly data
TimeFrameRestore(); // restore time frame to original
Plot( Close, "Price", colorWhite, styleCandle );
// plot expanded average
Plot( TimeFrameExpand( ma5_13, in5Minute), "13 bar moving average from 5 min bars", colorRed );
Plot( TimeFrameExpand( mah_9, inHourly), "9 bar moving average from hourly bars", colorRed );
And Now Question:
Can we Open two instances of AmiBoker? Each Instance Opening a different Database?
Regards
Satya
In this thread let us share some of the AmiBroker Tips or FAQ's. It should help us in the long term.
1st Tip,
You can have multiple Timeframes chart say Daily and Weekly as two section in the same screen for a Scrip.
What you need to do is a create a simple forumla using formula editor and specifty timeframe was Weekly or Daily.
in1Minute = 60
in5Minute = 5 * 60
in15Minute = 15 * 60
inHourly = 3600
inDaily = 24 * 3600
inWeekly = 5 * 24 * 3600 + 1 = 432001
inMonthly = 25 * 24 * 3600 + 1 = 2160001
EXAMPLE TimeFrameSet( in5Minute ); // switch to 5 minute frame
/* MA now operates on 5 minute data, ma5_13 holds time-compressed 13 bar MA of 5min bars */
ma5_13 = MA( C, 13 );
TimeFrameRestore(); // restore time frame to original
TimeFrameSet( inHourly ); // switch now to hourly
mah_9 = EMA( C, 9 ); // 9 bar moving average from hourly data
TimeFrameRestore(); // restore time frame to original
Plot( Close, "Price", colorWhite, styleCandle );
// plot expanded average
Plot( TimeFrameExpand( ma5_13, in5Minute), "13 bar moving average from 5 min bars", colorRed );
Plot( TimeFrameExpand( mah_9, inHourly), "9 bar moving average from hourly bars", colorRed );
And Now Question:
Can we Open two instances of AmiBoker? Each Instance Opening a different Database?
Regards
Satya
Last edited: