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.

sakuro666

Members
  • Content Count

    1
  • Joined

  • Last visited

Personal Information

  • First Name
    Frank
  • Last Name
    Korzen
  • Country
    United States

Trading Information

  • Vendor
    No
  1. Hello, who can translate the following Easy Language code in Tradesense for the Tradenavigator? Inputs: Period(66), ATRMultiplication(2.236); Variables: upperBand(0), lowerBand(0), midPrice(0), atr(0), trail(0); midPrice = (High + Low) * 0.50; atr = AvgTrueRange(Period) * ATRMultiplication; upperBand = Highest(midPrice, Period) - atr; lowerBand = Lowest(midPrice, Period) + atr; trail = IFF(Close > trail[1] and Close[1] > trail[1], MaxList(trail[1], lowerBand), IFF(Close < trail[1] and Close[1] < trail[1], MinList(trail[1], upperBand), IFF(Close > trail[1], lowerBand, upperBand))); Plot1(trail); if (Close > trail) then SetPlotColor(1, green) else SetPlotColor(1, red); Thanks
×
×
  • Create New...

Important Information

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