With a bool, you can keep a logical value that remains valid from one bar to the next.
What I’d like to do, if possible, is to do roughly the same for a value.
Let’s say I define certain conditions (probably for order entry but not necessarily) and I define a value by
double a = Close[0];
Much obliged in advance with any help with this.
Comment