Hi, I am new to Tradestation / EasyLanguage and am trying (unsuccessfully) to code a very simple system. All I want the system to do is the following (on an intraday basis):
Entry - If price goes up 1%, when compared to the day's opening price, then buy (only 1 buy signal per day though)
Exit - If price goes up 3%, when compared to entry price, then place a trailing stop sell or,
- if price goes down 2%, when compared to entry price, then sell at market or,
- if neither of the above happen, sell just before session close
If anyone could point me in the right direction or has done some similar coding, I would greatly appreciate it. I have been spinning my wheels for quite a while!
Entry - If price goes up 1%, when compared to the day's opening price, then buy (only 1 buy signal per day though)
Exit - If price goes up 3%, when compared to entry price, then place a trailing stop sell or,
- if price goes down 2%, when compared to entry price, then sell at market or,
- if neither of the above happen, sell just before session close
If anyone could point me in the right direction or has done some similar coding, I would greatly appreciate it. I have been spinning my wheels for quite a while!