Not logged in
Viewing 2 posts - 1 through 2 (of 2 total)

Forums>StrategyQuant>Application Support>error when adding new parameter to own indicator

  • #255179|
    4 Posts

    HI there,

    I am creating my own indicator following this tutorial:

    The thing is that when adding a parameter to its constructor (I got this parameter from the tutorial so it should be correct):

    @Parameter(name=”Method”, defaultValue=”0″) @Editor(type=Editors.Selection, values=”Simple=0,Exponential=1,Smoothed=2,Linear weighted=3″)
    public int MAMethod;

    And I write this at the constructor:

    @BuildingBlock(name=”(MYIND) MyIndicator”, display=”MyIndicator(#Period#, #MAMethod#)[#Shift#]”, returnType = ReturnTypes.Price)
    @Help(“MyIndicator help text”)
    public class MyIndicator extends IndicatorBlock {


    When executing it at the retester I am having this error and I am not able to solve it:

    09:26:26 Tested 20 09:26:26 Backtest of ‘2’ failed – SQ.Internal.Indicators.MyIndicator(com.strategyquant.datalib.DataSeries, int, int)


    Can anyone help me?




    Mark Fric
    1156 Posts


    I tried to reproduce this problem, but it works for me. This error seems to be related to some problem during compilation.

    When you go to Code editor and click on Recompile all will it recompile without any error?

    StrategyQuant architect

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.