I'm working on backtesting and I am having some trouble. I want to add a bubble on the chart that shows my entry and exits but only when the trade is first enterd. The issue I am having is I want to set up a flag so they when an order is added it will set the flag = 1. Is there any way to do this?
basically
def flag = if add order == yes then 1 else 0
basically
def flag = if add order == yes then 1 else 0