How should I write a code to excute order entry just once although
strategy may generate many signals? For example, if I have two moving
average cross strategy, it will generate long or short signal whenever
fast moving average crosses over or below slow moving average. I just
want to take first signal and ignore any signal after first. How should I
code this situation?
Thanks in advance.
Comment