PureBytes Links
Trading Reference Links
|
you can use valuewhen to set an exit
This is a simple method to achieve it
Buy = yourbuycondition;
StopExit = Cross(valuewhen(Buy,L),L);
Sell = yoursellconditions or StopExit;
On 6/7/05, Bob Jagow <bjagow@xxxxxxxxxxxxx> wrote:
> Are you trying to calculate a hypothetic max profit, Dean?
>
> Since AB can't know the bar's hi and low until the bar ends, wouldn't it
> have to settle for placing a limit order on the next bar?
>
> Regards,
> Bob
>
>
> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]On
> Behalf Of Dean Hodgins
> Sent: Monday, June 06, 2005 8:10 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Set Stop for Low of Trade Bar
>
>
> There must be a way of setting a stop to equal the low of the bar at
> which a trade signal is given but I can't quite figure out how to put
> the AFL functions together to achieve this.
>
> I'm using "Short = ExRem(Short,Cover);" to restrict the
> number of trade signals given and a normal applystop function that
> limits uses a 1% stop loss:
>
> ApplyStop(stopTypeLoss,stopModePercent,
> Optimize( "Stop Loss ", 1, 1, 2, 1 ),
> True );
>
> How would I set the loss at the value of the high of the bar at which
> the short signal was generated. (or reverse for a buy)
>
>
> As Always - thanks for any suggestions or pointers.
>
>
> Regards to all
>
>
> Dean Hodgins
>
>
>
>
>
>
>
>
>
>
> 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 other support material please check also:
> http://www.amibroker.com/support.html
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
> 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 other support material please check also:
> http://www.amibroker.com/support.html
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
--
Cheers
Graham
http://e-wire.net.au/~eb_kavan/
------------------------ Yahoo! Groups Sponsor --------------------~-->
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~->
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 other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|