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?
Size:
Color:
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.
Size:
Color:
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.
Size:
Color:
And on a similar note, RiskStopLevel will work the same way with ShortAtMarket and BuyAtStop?
Size:
Color:
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.
Size:
Color: