PureBytes Links
Trading Reference Links
|
why not just code it
StopLong = cross( valuewhen(buy,L-0.0002), L );
Sell = OtherConditions or StopLong;
StopShrt = cross( H, valuewhen(buy,H+0.0002) );
Cover = OtherConditions or StopShrt;
--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm
On 10/28/05, crasher_fl <kivanov@xxxxxxxxx> wrote:
> Ok, here is what I am doing. I am backtesting a system using Forex.
> When the buy signal is triggered entry is the close of bar. The stop I
> would like to heve set immediately is the low of the entry bar - 2
> pip. Reversed is applied when selling short, like the stop will be the
> high of the entry bar + 2 pips.
>
> I am having trouble setting such a stop using the function ApplyStop.
>
> Could anybode shed some light here or perhaps show some
> immplementation that does what i have described above. This is very
> easy to do using the MetaTrader backtester but seams hard in AmiBroker
> where I do most of my testing before I move it to the experd
> autotrader in MetaTrader.
>
> Thanks again,
> Kris
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/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/
|