i would like to change a strategy object value from a prior bar
Announcement
Collapse
No announcement yet.
setbar with strategy objects
Collapse
X
-
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
-
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
-
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
Comment