Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 09:05:50 +0000



Post From: ACSIL trading: checking "last" price and sending order ahead of time

[2015-09-23 21:19:59]
User44052 - Posts: 34
Hello.

I'm a former user of TradeStation and trying to find my way around SierraChart.

1) In TradeStation's EasyLanguage, if I wanted to check if the price has touched, for example, a Moving average, I would use "Close" (e.g: if Close >= MA do something). This would work intrabar, and does NOT wait for the actual closing price of a bar. So, while a bar is building, the last traded price is always referred to as Close, even before the bar has actually closed. What is the equivalent in SierraChart? My attempts to use sc.Close seem to wait for the bar to finish and the closing price of that bar is referred to. How do I check a price level has been reached DURING the building of a bar?

2) Also in Tradestation EasyLanguage, there was a command to send an order on the NEXT bar. So, let's say, if the price touches the Moving Average, I'll send an order that will become active AFTER the current bar has completed. Is there an equivalent in SierraChart?

Thanks in advance.
Date Time Of Last Edit: 2015-09-23 21:20:45