PureBytes Links
Trading Reference Links
|
quexos0,
Work with these code ideas. They have worked well for me. It is used
with EOD systems which trade next day on an onstop order. Watch out
for errors as some changes made and not tested.
Use it in IB.
Regards
Tony
Buy = Your_Buy_Condition;
Long_Buy_Price = Your_Definition;
BuyPrice = Ref(Long_Buy_Price,-1);
Sell = Your_Sell_Conditions;
Long_Buy_Price = Your_Definition;
SellPrice = Ref(Long_Sell_Price,-1);
ApplyStop(stopTypeLoss,stopModePoint,Point_Definition,1,False,0);
E = Equity(1);
Plot(Close,"",colorGreen,64);
PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorDarkGreen,0,Low);
PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorDarkRed,0,High);
PlotShapes(IIf(Buy,shapeSmallCircle,shapeNone),
colorBlack,0,BuyPrice,0);
PlotShapes(IIf(Sell ,shapeSmallCircle,shapeNone),
colorBlack,0,SellPrice,0);
Plot(Ref(Long_Buy_Price,-1),"Buy Price",colorGreen,1);
Plot(Ref(BuyPrice-Point_Definition,-1),"Apply Stop Price",colorRed,1);
Plot(Ref(Long_Sell_Price,-1),"Sell Price",colorBlue,1);
--- In amibroker@xxxxxxxxxxxxxxx, "quexos0" <quexos0@xxxx> wrote:
>
> How then do I make visualizations of my stops?
> I still have problems making the stop losses and take profits show
> as green/red circles on Price. T_T
>
------------------------ 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/
|