PureBytes Links
Trading Reference Links
|
Hi hermann
maybe...
look pretty sophisticate to me
I just want to set the condition3 (just an example "buy when
condition1 or condition2 occur")
"if I am already long(because condition1 was the buy signal), do not
buy even if buycondition2 occurs. If I am flat, buy "
this is literally a market position condition
Thanks to help
Philippe
--- In amibroker@xxxxxxxxxxxxxxx, "Herman van den Bergen"
<psytek@xxxx> wrote:
> Perhaps this is what you are looking for:
>
> delay = 1;
> InLong = ref(Flip(Buy,Sell),-delay);
> InShort = ref(Flip(Short,Cover),-delay);
>
> herman
> -----Original Message-----
> From: reyloufi [mailto:etrel@x...]
> Sent: Monday, July 05, 2004 4:16 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] market position
>
>
> Hi
> Being a TS trader on e-minis futures, I plan to use AB to get
better
> backtesting optimization...
> I have some difficulties to jump from TS to AB
> Having several buy/sellshort entry conditions in my strategy
(ies), I
> use to have a very basic condition to control if you are already
into
> the market
> In EasyLanguage, it is the MarketPosition function
> How does it work in AB?
> Thanks to help
> Philippe
>
>
>
>
>
> Check AmiBroker web page at:
> http://www.amibroker.com/
>
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>
>
>
>
>
> --------------------------------------------------------------------
--------
> --
> Yahoo! Groups Links
>
> a.. To visit your group on the web, go to:
> http://groups.yahoo.com/group/amibroker/
>
> b.. To unsubscribe from this group, send an email to:
> amibroker-unsubscribe@xxxxxxxxxxxxxxx
>
> c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/
|