PureBytes Links
Trading Reference Links
|
Using ts2ki?
When you are exiting Long, use ExitLong, NOT Sell
ExitLong exits a long position
Sell enters a short position, after closing out any existing long.
Ditto the other way around.. use ExitShort to exit a short position, not
Buy.
Abhijit
Thomas J. Festa wrote:
For some reason when I insert the following code into a strategy I end up
getting short on my long exit:
Buy ("Long Entry") This Bar on Close;
BarLow = LOW;
BarHigh = HIGH;
IF MarketPosition = 1 and BarsSinceEntry >= 1 THEN BEGIN
Sell ("Exit Long") BarLow[1] Stop;
=========================================================
Sell ("Short Entry") This Bar on Close;
BarLow = LOW;
BarHigh = HIGH;
IF MarketPosition = -1 and BarsSinceEntry >= 1 THEN BEGIN
Buy ("Exit Short") BarHigh[1] Stop;
=========================================================
Thomas J. Festa, CMT
Technical Analysis Investment Consultant
Proprietary Trader, Equities
Benchmarq Trading, LLC 10003
Cell: (908) 581-8880
Confidentiality Notice: The information contained in this e-mail and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachment for any purpose, nor disclose all
or any part of the contents to any other person.
|