I would like someone to write the EasyLanguage code for an automated TradeStation strategy.
It is very simple. Only 5 inputs: EquitySymbol1 and shares, EquitySymbol2 and shares, exitnetprofit%.
Enter Market order to open each position at market open (9:30).
If net profit on the 2 positions is greater than exitnetprofit% then close both positions at market.
If positions are still open at market close time - 15 minutes, then send market on close orders for both positions.
That's it. Must use intra-bar order generation.
Thank you for looking