PureBytes Links
Trading Reference Links
|
You can use something like:
PlotShapes(iif( Sell==3, shapeDigit3, shapenone), colorRed, 0, SellStopPrice, 0 )
to plot a digits for all events encoded in the exit signals, exactly where the stop occurred.
ApplyStop return values
Using Equity( 1 ) evaluates stops and writes BACK
signals to sell/cover arrays. Equity(1) also removes
all extra signals.
Depending on kind of the stop various values
are written back to sell/cover array to enable you
to distinguish if given signal was generated by regular
rule or by stop.
1 - regular exit
2 - max. loss
3 - profit target
4 - trailing
5 - ruin stop
6 - n-bar stop
herman
Monday, February 5, 2007, 8:31:34 AM, you wrote:
> Hello,
> Is there a way to plot a shape or something similar when the ApplyStop
> function is triggered? The following code plots a shape at every bar
> because the ApplyStop always returns a "1".
> Stop=ApplyStop(stopTypeNBar,stopModeBars,Barstop,0,False,0);
> PlotShapes(IIf(Stop,shapeHollowDownArrow,shapeNone),colorBlue,5,H,-12);
> With thanks,
> Pavel.
> Please note that this group is for discussion between users only.
> To get support from AmiBroker please send an e-mail directly to
> SUPPORT {at} amibroker.com
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
> For other support material please check also:
> http://www.amibroker.com/support.html
>
> Yahoo! Groups Links
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.26/670 - Release Date: 2/5/2007 2:04 PM
|