PureBytes Links
Trading Reference Links
|
ofcourse ..... thanks TJ,
this is how it's done ....
; ----------------------------------
SetTradeDelays(1,0,1,0);
SetBarsRequired(10000,10000);
Buy = C < BBandBot(C, 10, 2);
BuyPrice = Open;
Sell = 0;
ApplyStop(stopTypeProfit,stopModePoint,0.001,ExitAtStop = 0,False,1 );
Equity(1);
SellPrice = Close;
Plot(C,"C",1,64);
Plot(BBandBot(C, 10, 2),"",colorLightBlue,1);
PlotShapes(IIf(Ref(Buy,-1),shapeUpArrow,0),colorWhite, layer = 0, yposition = BuyPrice, offset = 0 );
PlotShapes(IIF(Sell,shapeDownArrow,0),colorYellow, layer = 0, yposition = SellPrice, offset = 0 );
Title=Name()+ ", O: "+WriteVal(O)+ ", H: "+WriteVal(H)+ ", L: "+WriteVal(L)+ ", C: "+WriteVal(C);
; ------------------------------------
----- Original Message -----
From: Tomasz Janeczko
To: amibroker@xxxxxxxxxxxxxxx
Sent: Friday, September 03, 2004 8:14 PM
Subject: Re: [amibroker] Help with entry price?
Hello,
> I want to exit the position whenever the close is above my entry
> price, including the close on the day of entry.
This can be successfully achieved using ApplyStop (profit target stop)
with mode set to point and profit set to small value (0.001)
Best regards,
Tomasz Janeczko
amibroker.com
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.
[Non-text portions of this message have been removed]
------------------------ 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/
|