Same bar stop/buy order
Author: heech
Creation Date: 11/10/2008 11:08 AM
profile picture

heech

#1
Hi,

This is different from my bracketed trade question, asked previously.

If I have a:
BuyAtMarket(bar + 1);

How do I put in a protective stop, before waiting a full bar for the strategy to execute again? I can't do a SellAtStop for bar+1, can I?
profile picture

Cone

#2
After a market order, sure, you can do it for backtesting like this:
CODE:
Please log in to see this code.

For live trading you must add this, and, you must enable the Trading Preference for same bar exits:
CODE:
Please log in to see this code.
profile picture

heech

#3
Cone,

Great, that's exactly what I'm looking for.

Quick question though... the ref for RiskStopLevel says:
QUOTE:
Specifies the initial stop level (price) of the Position. This stop level is used when you select the Maximum Risk Pct Position Sizing option.

Just to clarify, RiskStopLevel will also work in conjunction with same bar exits... even if I'm not using that position sizing option?

And RiskStopLevel won't have any other unintended effects on my trading...?

Thanks.
profile picture

heech

#4
And on a similar note, RiskStopLevel will work the same way with ShortAtMarket and BuyAtStop?
profile picture

Cone

#5
QUOTE:
RiskStopLevel will also work in conjunction with same bar exits... even if I'm not using that position sizing option?
Yes, of course. RiskStopLevel is just another Position property that can be used or not used for all these purposes.

Yes, same for Short.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).