Tradestation 9.0 Expert Adviser - simple crossover of 2 separate moving averages on Renko chart. Will always "be in the market." Example: I'm long EUR/USD; MA crossover occurs signaling a reversal. Long position will be closed on the opening of next bar and an immediate short position (market order) entered on the same bar. I'm now short. When MA crosses over again, short position will be closed on opening of next bar and an immediate long position (market order) entered on the same bar. If it is easier programming: The closing of the long/short position at crossover can occur on the close of the Renko bar reflecting the crossover and the subsequent entering of the long/short position can be on the opening of the next Renko bar. There must be a true crossover; it is not sufficient for the 2 MAs to touch each other.
When the strategy is turned on, it should enter a long or short position based on the bar color (direction) of the last Renko bar. When I turn off the strategy, it should immediately close out the long/short position.
I also need a "format strategy dialogue box" that allows me to change the settings:
1. Both MAs (Price = high, low, close, open; Length; and Displace).
2. Where I can enter the lot size (e.g., 10,000; 30,000; 100,000; 300,000).
3. An “off/on” setting for the strategy. A zero “0” could be off and one “1” could be on.
Depending on the cost, it should plot a buy/sell on the chart.