Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

gtnicosia

Members
  • Content Count

    3
  • Joined

  • Last visited

Posts posted by gtnicosia


  1. I am trying to create a condition using time and indicator value counters.

    It's not working :haha:

     

     

    What I want to do is set a condition that states price has been below the VWAP for N% of the trading session. (from today's session open until current time)

     

     

    If someone could help with this, I would be very greatful.

     

    thanks


  2. 2 functions verify no problem.

     

    Function: haOpen

    haOpen = 0.5 * ( AvgPrice + haOpen[1] ) ;

     

    Function: haC

    haC = 0.25 * ( AvgPrice + haOpen +

    MaxList( High, haOpen )+ Minlist( Low, haOpen ) ) ;

     

    Then I try

     

    Indicator: Zero-Lagging TMA

     

    inputs:

    Price( TypicalPrice ),

    Period( 55 ) ;

    variables:

    TMA1( 0 ),

    TMA2( 0 ),

    Difference( 0 ),

    ZeroLagTMA( 0 ) ;

    TMA1 = TEMA( Price, Period ) ;

    TMA2 = TEMA( TMA1, Period ) ;

    Difference = TMA1 - TMA2 ;

    ZeroLagTMA = TMA1 + Difference ;

    if CurrentBar > 4 * Period then

    Plot1( ZeroLagTMA, "ZeroLagTMA" ) ;

     

     

     

    TEMA ,word not recognized by TS.

     

    Anyone have any ideas

     

     

    Many Thanks

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.