Announcement

Collapse
No announcement yet.

setbar with strategy objects

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

  • setbar with strategy objects

    i would like to change a strategy object value from a prior bar
    sam

  • #2
    Re: setbar with strategy objects

    sam
    What exactly do you mean with "strategy object value"? You may need to provide a specific example for someone to be able to assist you
    Note that setBar() can only change the value of a returned item or some of the properties of the plot (see the link to the article in the EFS KnowledgeBase for the specifics)
    Alex


    Originally posted by sam.burn
    i would like to change a strategy object value from a prior bar

    Comment


    • #3
      I am trying to change the strategy value(position) on a prior bar
      so if exiting ie strategy.toCover but


      barset(bar.value,-1,Strategy.doCover(nBarIndex + " PfLo "+ nNowPoints, Strategy.LIMIT, Strategy.THISBAR, Strategy.ALL, nTargetPrice));
      sam

      Comment


      • #4
        sam
        The setBar() function only changes the value of an item returned by the efs or the properties of a plot.
        Alex


        Originally posted by sam.burn
        I am trying to change the strategy value(position) on a prior bar
        so if exiting ie strategy.toCover but


        barset(bar.value,-1,Strategy.doCover(nBarIndex + " PfLo "+ nNowPoints, Strategy.LIMIT, Strategy.THISBAR, Strategy.ALL, nTargetPrice));

        Comment


        • #5
          Thanks Alex
          sam

          Comment


          • #6
            sam
            You are most welcome
            Alex


            Originally posted by sam.burn
            Thanks Alex

            Comment

            Working...
            X