Announcement

Collapse
No announcement yet.

No Value - offsetSeries / getSeries of a variable

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • No Value - offsetSeries / getSeries of a variable

    Hi,

    I get no value (<None>) in the chart, if I use my code:

    PHP Code:
    var myStudy1 null

    function 
    main() { 
    var 
    myVar1;
    var 
    sma3V

       
    sma3V = ( (sma(8)+sma(3)) /+ (sma(9)+sma(4)) /+ (sma(10)+sma(5)) /) /3;

       
    myStudy1 offsetSeriesgetSeries(sma3V), -); 
       
    myVar1 myStudy1.getValue(0); 

       return 
    myVar1;

    I cant see the error!


    Warm Regards
    Last edited by franzmey; 12-29-2005, 06:15 AM.
    Franz

  • #2
    franzmey
    sma3v is not a series but a value. See this post for an explanation of what you need to do
    Alex

    Originally posted by franzmey
    Hi,

    I get no value (<None>) in the chart, if I use my code:

    PHP Code:
    var myStudy1 null;

    function 
    main() {
    var 
    myVar1;
    var 
    sma3V;

      
    sma3V = ( (sma(8)+sma(3)) /+ (sma(9)+sma(4)) /+ (sma(10)+sma(5)) /) /3;

      
    myStudy1 offsetSeriesgetSeries(sma3V), -);
      
    myVar1 myStudy1.getValue(0);

      return 
    myVar1;

    I cant see the error!


    Warm Regards

    Comment


    • #3
      Thx a lot for the link, I got it, how it works with the series!
      Franz

      Comment

      Working...
      X