Okay I figured it out. If anyone wants to know I put the -1 there to buy the next bar open after I got the signal. Same with the sell side. AddOrder(OrderType.SELL_TO_CLOSE, exit_long, open[-1], tradeSize, Color.RED, Color.RED);by traderdunn - Trading Discussion
HMM I have some code here but the BuyPrice is still not working BuyPrice = if (your condition) then open[-1] else open[-2] Can any one help?by traderdunn - Trading Discussion
So I want my strategy to buy the next bar open after I get my signal. My report currently is showing buying at the bar that gives the signal but this is skewed because the signal might reverse during this bar. So I want the report to show that I bought at 2287.25 and not 2286.25 in trade number 50. If anyone knows how to do this please let me know! Thanks so much! Image belowby traderdunn - Trading Discussion