Need your help in multitimeframe

#1
I watch multiple timeframe 60 minute chart, 30 minute chart and 15 minute chart.
Do you know any afl that can give 60 minute candlestick signal on 30 minute candlestick ?
P.S. I use candlestick chart.
Example: 60 minute chart is green , it prints 60 minute green candle signal on 30 minute chart,I need to write arrow here
Is any afl as this?
(60 minute chart.
Candle is green , my meaning bullish.
When 60 minute has bullish candlestick, it show arrow on 30 minute chart .:confused:)

regards
 
Last edited:

cheap

Active Member
#5
Hey,
I only know about afl
amibroker section right place

Code:
_SECTION_BEGIN("anything");

      TimeframeSet( in30Minute);

    
         Bar =  C>O;
      TimeframeRestore();  
 
      TimeframeSet( in60Minute);
   
        Bar = C>O;
      TimeframeRestore();  



Bar30= TimeFrameExpand( Bar, in30Minute,expandFirst);  
Bar60= TimeFrameExpand( Bar, in60Minute,expandFirst);  

PlotShapes( IIF( Bar30==1 AND Bar60==1, shapeUpArrow , shapeNone ), colorAqua ); 

Plot( C, "Price", colorDefault, styleCandle ); // Just to show on pane
_SECTION_END();
this is not right code, but gonna be something like this, problem is with arrow should be in right place candles and it's not showing ..

I posted same code in your Advance strategy section .
TimeFrameGetPrice (Time Frame functions) - retrieve O, H, L, C, V values from other time frame (AFL 2.5)

even after using it, i do believe , you will get problem regarding right arrow on right candlestick.
 
Last edited:

cheap

Active Member
#6
Hi pasting here , because it's afl
It's wrong .




When you do use expandlast


When you do use expandfirst



It's not right arrows.


I tried with 30 minute and 60minute ,, showing error.
also arrow are not right.
 
Last edited:

trash

Well-Known Member
#7
Hey,
I only know about afl
amibroker section right place

Code:
_SECTION_BEGIN("anything");

      TimeframeSet( in30Minute);

    
         Bar =  C>O;
      TimeframeRestore();  
 
      TimeframeSet( in60Minute);
   
        Bar = C>O;
      TimeframeRestore();  



Bar30= TimeFrameExpand( Bar, in30Minute,expandFirst);  
Bar60= TimeFrameExpand( Bar, in60Minute,expandFirst);  

PlotShapes( IIF( Bar30==1 AND Bar60==1, shapeUpArrow , shapeNone ), colorAqua ); 

Plot( C, "Price", colorDefault, styleCandle ); // Just to show on pane
_SECTION_END();
this is not right code, but gonna be something like this, problem is with arrow should be in right place candles and it's not showing ..

I posted same code in your Advance strategy section .
TimeFrameGetPrice (Time Frame functions) - retrieve O, H, L, C, V values from other time frame (AFL 2.5)

even after using it, i do believe , you will get problem regarding right arrow on right candlestick.

Code:
_SECTION_BEGIN("anything");
/// @link http://www.traderji.com/software/101822-need-your-help-multitimeframe.html#post1156747

TimeframeSet( 2 * in15Minute );
Bar30 =  C > O;
TimeframeRestore();

TimeframeSet( inHourly );
Bar60 = C > O;
TimeframeRestore(); 

expandmode = expandPoint;
Bar30 = TimeFrameExpand( Bar30, 2 * in15Minute, expandmode );
Bar60 = TimeFrameExpand( Bar60, inHourly, expandmode );
 
Plot( C, "Price", colorDefault, styleCandle ); // Just to show on pane
PlotShapes( IIF( Bar30 AND Bar60, shapeUpArrow , shapeNone ), colorAqua ); 

_N( Title = StrFormat( "{{NAME}} - {{INTERVAL}} - {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%), Vol %g {{VALUES}}",
                           O, H, L, C, SelectedValue( ROC( C, 1 ) ), V ) );
_SECTION_END();
 
#8
Code:
_SECTION_BEGIN("anything");
/// @link http://www.traderji.com/software/101822-need-your-help-multitimeframe.html#post1156747

TimeframeSet( 2 * in15Minute );
Bar30 =  C > O;
TimeframeRestore();

TimeframeSet( inHourly );
Bar60 = C > O;
TimeframeRestore(); 

expandmode = expandPoint;
Bar30 = TimeFrameExpand( Bar30, 2 * in15Minute, expandmode );
Bar60 = TimeFrameExpand( Bar60, inHourly, expandmode );
 
Plot( C, "Price", colorDefault, styleCandle ); // Just to show on pane
PlotShapes( IIF( Bar30 AND Bar60, shapeUpArrow , shapeNone ), colorAqua ); 

_N( Title = StrFormat( "{{NAME}} - {{INTERVAL}} - {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%), Vol %g {{VALUES}}",
                           O, H, L, C, SelectedValue( ROC( C, 1 ) ), V ) );
_SECTION_END();
Hello Trash,
thank you , thank you .
Why we didn't used TimeFrameGetPrice?
Is this show arrow on lower timeframe when higher timeframe candle complete?
If i see historical bars.
it will work with other pattern?

just want to say thank you, your pm is full
regards
 
Last edited:
#9
Code:
_SECTION_BEGIN("anything");
/// @link http://www.traderji.com/software/101822-need-your-help-multitimeframe.html#post1156747

TimeframeSet( 2 * in15Minute );
Bar30 =  C > O;
TimeframeRestore();

TimeframeSet( inHourly );
Bar60 = C > O;
TimeframeRestore(); 

expandmode = expandPoint;
Bar30 = TimeFrameExpand( Bar30, 2 * in15Minute, expandmode );
Bar60 = TimeFrameExpand( Bar60, inHourly, expandmode );
 
Plot( C, "Price", colorDefault, styleCandle ); // Just to show on pane
PlotShapes( IIF( Bar30 AND Bar60, shapeUpArrow , shapeNone ), colorAqua ); 

_N( Title = StrFormat( "{{NAME}} - {{INTERVAL}} - {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%), Vol %g {{VALUES}}",
                           O, H, L, C, SelectedValue( ROC( C, 1 ) ), V ) );
_SECTION_END();
Hello Trash,







regards
 

Similar threads