enter long when: 20 period ma crosses above 100 period ma
exit long when: 20 period ma crosses below 50 period ma
enter short when: 20 period ma crosses below 100 period ma
exit short when: 20 period ma crosses above 50 period ma
when i enter this strategy in the strategy wizard it will enter the position correctly on the "EnterLong" command, however on the "ExitLong" command it will exit the existing position ma but if the 20 period crosses below the 50 period ma again it will ENTER SHORT, this is not correct, i want it to wait again until an entry based on rules above, and only close if there is an active position open.
please help, thank you.

Comment