Elevare a potenza

Collapse
X
 
  • Ora
  • Show
Clear All
new posts
  • Ismael
    Senior Member

    • Jan 2011
    • 240

    #1

    Elevare a potenza

    Se scrivo:


    INPUTS: @price(CLOSE), @periods(70), @lev1(-65), @lev2(-35),@mav(5),@vola(1),@exp(1)

    SET v = Variance(@price, @periods, @mav)

    set a = (Oscillator(v, @periods))^2

    set plot1 = a


    Il plot1 restituisce no value, mentre

    set a = 2^2

    restituisce 4

    Dove sbaglio?

    grazie
    E' difficile vedere un gatto nero in una stanza buia, specialmente se non c'è.
  • fnet
    Senior Member
    • Aug 2010
    • 738

    #2
    Originariamente Scritto da Ismael
    set a = (Oscillator(v, @periods))^2

    set plot1 = a


    grazie
    set a = (Oscillator(v, @periods))
    set plot1 = a

    potresti verificare senza ^2 che valori Ti restituisce ....
    "Tempus omnia medetur" .... e fà guadagnare di Theta

    Comment

    • Ismael
      Senior Member

      • Jan 2011
      • 240

      #3
      Grazie fnet, ho risolto con la funzione pow()
      E' difficile vedere un gatto nero in una stanza buia, specialmente se non c'è.

      Comment

      Working...