Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Fisher Transform is a 'method' ??

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

    Fisher Transform is a 'method' ??

    Greetings,

    I know I get baffled easily, but this one is very annoying ...

    I am setting up doubles in a MTF strategy, and this is the only error that I cant get resolved:

    if(BarsInProgress == 2)
    { // Save prior bars
    for(int i = 0 ; i < 3 ; i++)

    b2_WRC[i] = b2_WRC[i+1];
    //
    b2_FT[i] = b2_FT[i+1];
    }
    b2_WRC[0] = jhlWilliamsPercentR(BarsArray[2], iWRperiod).PercentR[0];
    //
    b2_FT[0] = FisherTransform(BarsArray[2], iFTperiod).FisherTransform[0];

    the silly on me error is:
    Cannot apply indexing with [] to an expression of type 'method group'
    with it referring to the b2_FT[0] column 15

    The other line isnt causing any error (ie: I comment out the b2_FT[0] line && all compiles cleanly) and structually the two sets of doubles are declared the same style/place in the code. Also removing the [0] from the b2_FT[0] still gives the same error.

    Using b23NT7 and the default FisherTransform ..

    Thanks for the help,
    Jon

    #2
    Hi Trader.Jon,

    There's no need to specify .FisherTransform, as this indicator only has one plot.

    b2_FT[0] = FisherTransform(BarsArray[2], iFTperiod)[0];
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Ryan,

      Thanks for the solution ... I wonder why the FisherTransform was throwing out that error, but the Williams%R that also only has 1 plot and was written up thec same way did not throw out an error?

      Jon

      Comment


        #4
        Williams%R - You specified .PercentR as the plot.

        When you used .FisherTransform, it reads this as the indicator, not a plot belonging to the indicator.

        For syntax help with multi plot indicators, the strategy wizard works well for ths:
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        67 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        36 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        60 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X