I'm hoping somebody can help me with coding simple strategy in Tradestation:
MACD histogram (12, 26 and 9 based on close prices) that gives signals when changes direction. I want to go long when the histogram has been going down and turns up, and short when the histogram has been going up and turns down. And only 1 trade pre day.
Also, can I code n Tradestation position sizing? I would like to use 1% as a stop and 1% as a target/exit and calculate amount of shares based on $100 potential loss. For example, if MACD gives me entry signal at $50, then stop would be at $49.50 and target at $50.50. And I need to buy 200 shares. Time frame is 5 min.
I would really appreciate if somebody can help me to automate my strategy in Tradestation.
Tank you in advance.
MACD histogram (12, 26 and 9 based on close prices) that gives signals when changes direction. I want to go long when the histogram has been going down and turns up, and short when the histogram has been going up and turns down. And only 1 trade pre day.
Also, can I code n Tradestation position sizing? I would like to use 1% as a stop and 1% as a target/exit and calculate amount of shares based on $100 potential loss. For example, if MACD gives me entry signal at $50, then stop would be at $49.50 and target at $50.50. And I need to buy 200 shares. Time frame is 5 min.
I would really appreciate if somebody can help me to automate my strategy in Tradestation.
Tank you in advance.