Hello,

What is the correct format of using Plot in plugin dll?

 I try this code below, which partially works. But only array,
color,xshift and zorder seems to agree on input. The others seem to
completely ignore them. It puzzles me.

Thanks for you patience and help,
Dimaz


AmiVar VmyPlot( int NumArgs, AmiVar *args ) {

        AmiVar close = gSite.GetVariable( "Close" );
        AmiVar colorYellow = oneValArray( 42 ); //<--- AmiVar array of number 42

        AmiVar plotArg[8];
        plotArg[0] = close;//price
        plotArg[1].string = "my plot";//name string
        plotArg[2] = colorYellow;//color
        plotArg[3].val = 2 ;//style
        plotArg[4].val = 0;//minValue
        plotArg[5].val =  0;//maxValue
        plotArg[6].val = 0; //Xshift
        plotArg[7].val = 0; //zorder
        AmiVar result = gSite.CallFunction( "plot", 8, plotArg );
        return result;

}
FunctionTag gFunctionTable[] = {
        "myPlot", { myPlot, 0, 0, 0, 0, NULL }
};

Reply via email to