PureBytes Links
Trading Reference Links
|
Philippe,
from what I gather once you are in a buy trade program continues until it
gets a sel laction. Program will not pyramid.
Don
-----Original Message-----
From: reyloufi [mailto:etrel@xxxxxxxxx]
Sent: Monday, 5 July 2004 8:11 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: market position
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.
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
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/
|