Is there any way I can create code to enter my first position based on an indicator and then place a second trade once price has moved in my favor – similar to pyrmading or scaling into a position?
DEFPARAM CumulateOrders = true
IF not OnMarket and (your conditions) then
Buy 1 contract at market
ENDIF
IF OnMarket and (your conditions) and close > PositionPrice then
Buy 1 contract at market
ENDIF
Something like this?
Above Snippet added, as row 37, to Snippet Link Library