hi,
Hoping somone on this list can shed some light on
this.
//// Forex trading using Amibroker using TWS
API
Buy=some_rule; //Not as good as Japanese Forex
Trader
Buy_level=valuewhen(buy,c,1);
exit1=buylevel+exit1_offset;
exit2=Trailingstop of 30 pips with initial stop at
breakeven(Buy_level) ( Initial stop loss set for 30 pips trailing below
entry when long is entered)
If ibc.isconnected()
placeorder( for 2 lots)
sell lot1 at exit1
upon exit1 send order with exit2
condition.
Any ideas on how to do this?.
Thanks.
Cheers,Padhu
__._,_.___
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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
__,_._,___
|