Announcement

Collapse
No announcement yet.

Calling parameters of a plot in the -return- statement

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

  • Calling parameters of a plot in the -return- statement

    The following code sets the parameters for the first plot of the "return" statement:

    PHP Code:
    function preMain() {
     
    setPriceStudy(true);
     
    setStudyTitle ("TEST");
     
    setCursorLabelName("Var1"0);
     
    setDefaultBarFgColor(Color.blue0);
     
    setPlotType(PLOTTYPE_LINE,0);
     
    setDefaultBarThickness(1,0);
     } 
    Is there a way to access these parameters in a function kind of like "plot0.BarFgColor"?
    I don't expect so since I have not found anything even close to it

    Thanks,

    Wayne

  • #2
    I'm going to assume no. But it raises an interesting question.

    For all intensive purposes, you could create an array of the values passed in premain and then check/control them as needed.

    In other words store your own "status" data and work with it.
    Brad Matheny
    eSignal Solution Provider since 2000

    Comment


    • #3
      Hi Brad,

      Got your suggestion to work. Thanks for the input.

      Wayne

      Comment

      Working...
      X