Thanks for the direction.
I've added the Short side to your MultistepBreakeven strategy,
to a new Strategy MultistepBreakevenLongAndShort.
After testing, the chart shows both Long and Short trades,
so it seems it's working as intended.
Screenshot:
Zip code NT8 Export Code attached.
I finally grasped how to nest the multiple if() statements within both the If() Else If() statements structure.
The 1st if() statement's action/scope can/needs to be be treated as an independent scope (without if() statement—
it's if is the Top one/The one from the If() Else if() structure.
If(X)
{
If(Y)
{
If(Z)
{
else if ((Position.MarketPosition == MarketPosition.Flat) && (Close[0] < Open[0]))
{
If(P)
{
{
If(R)
{
I'll tackle next testing the Unmanaged Order approach, then the PositionAccount.Quantity method.
Leave a comment: