Bull candle time WRONG OUTPUT (use exploration and see it)

Discussion in 'Trading Software' started by fxtraders, Nov 6, 2016.

  1. Merry christmas to all folks ..

    Syntax errors are {,), or comma kind of error.
    There're four brackets ({) properly within function ..

    It shows error in below line.
    return TimeFrameExpand(meme,tf,expandPoint);
     
    #21     Dec 24, 2016
  2. Done !
    No Error ..
    But, It doesn't print range .. !!

    Code:
    SetBarsRequired( -2, -2 );
    Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
    global i;
    function tf_ma(e,d)
    {
    for (i=e; i<d; i++)
    {
      tf = i * in1Minute;
      TimeframeSet(tf);
        meme = MA(C, 15);
       TimeframeRestore();
    }
    return TimeFrameExpand(meme,tf,expandPoint);
    }
    m  = tf_ma(1,9);
    
    for( b = 0; b < BarCount; b++ ) {
          //PlotText(" " , b, L[ b ], colorRed, colorDefault, -12 );
          if(m[b])       PlotText(" "+(i), b, L[b]-1-(i), colorCustom1);
       }
     
    Last edited: Dec 26, 2016
    #22     Dec 26, 2016
  3. Code:
    SetBarsRequired( -2, -2 );
    Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
    
    function tf_ma(e,d)
    {
    global i;
    for (i=e; i<d; i++)
    {
      tf = i * in1Minute;
      TimeframeSet(tf);
        meme =MA(C, 15);
       TimeframeRestore();
    }
    m = TimeFrameExpand(meme,tf,expandPoint);
    for( b = 0; b < BarCount; b++ ) {
          //PlotText(" " , b, L[ b ], colorRed, colorDefault, -12 );
          if(m[b])  PlotText(" "+(i), b, L[b]-1-(i), colorCustom1);
       }
    return;
    }
    tt = tf_ma(1,7);
    
    // if(tt[b])  PlotText(" "+(i), b, L[b]-1-(i), colorCustom1);
    
    ??
    It seems like,
    User defined function can't print range on chart ..
     
    Last edited: Jan 1, 2017
    #23     Jan 1, 2017