Login Page - Create Account

Support Board


Date/Time: Fri, 14 Mar 2025 14:20:25 +0000



Post From: Simple... coding?

[2025-02-06 14:03:31]
cmet - Posts: 677
GPT just released o3-mini-high. Designed specifically for coding, reasoning and logic. Very thorough but slower.

DeepSeek is garbage for anything demanding. Not sure why there's so much hype around that. AI lite.

Install VisualStudio and use that compiler within SC.

For example, here's the thinking/reasoning output only from o3-mini-high on basic instructions like you posted above:

"a one minute Candlestick chart. I want you to set a buy market order is the candle is bullish and a sell market order is the candle is bearish. close below the low of previous bar = bearish, close above high of previous bar = bullish."

Creating order logic

I’m developing SierraChart ACSIL code to place buy market orders on a bullish one-minute candlestick and sell market orders on a bearish one-minute candlestick, using ACSIL standalone functions.

Focusing on ACSIL

I’m ensuring the SierraChart ACSIL code, based on C++, is checked for placing buy and sell market orders on one-minute candlestick charts, with a clear focus on the specified bullish and bearish conditions.

Taking a closer look

I’m integrating specific headers and ACSIL macros for SierraChart, ensuring code triggers on each bar update, and considering custom study names and chart study subgraphs as part of the implementation.

Evaluating order timing

I’m thinking through whether to place market orders immediately after a bar closes or at the next bar's open, ensuring the code aligns with the establish bullish or bearish conditions.

Confirming order timing

I’m considering if market orders should be sent immediately after a bar closes or at the next bar's open, while ensuring the condition is met and exploring ACSIL order submission methods.

Crafting order logic

I’m working through the SierraChart ACSIL code, ensuring buy and sell market orders are placed based on bullish and bearish conditions, with a focus on safe order execution per bar.

Implementing key triggers

I’m detailing the SierraChart ACSIL code, emphasizing precise order execution based on validated bullish or bearish conditions, and ensuring that each bar triggers only one order.

Crafting order triggers

I’m refining the SierraChart ACSIL code to ensure buy orders are placed when the current bar closes above the previous bar's high, while avoiding duplicate orders per bar.

Ensuring precise orders

I'm confirming that buy and sell orders are placed based on bullish or bearish conditions without considering open positions, as instructions only mention order creation, not position management.

Implementing market orders

I'm planning to submit market orders using sc.BuyEntry and sc.SellEntry, ensuring that the study allows trading and considering logging for debugging.

Ensuring order precision

I’m ensuring that market orders trigger only when bars close, using strict comparisons to confirm order conditions. This approach maintains precise order execution and prevents premature triggering.

Managing order triggers

OK, let's tackle managing multiple calls per bar using persistent variables. This approach ensures that orders only trigger once per bar, maintaining precise execution.

Guaranteeing single triggers

I’m thinking through how to ensure each bar processes only once using sc.GetPersistentInt() to track the last processed bar and discard redundant triggers.

Ensuring single bar execution

By tracking the last processed bar with sc.GetPersistentInt(), I ensure each bar is processed only once, avoiding redundant orders.

Implementing persistent tracking

I’m setting up persistent tracking with sc.GetPersistentInt() to ensure each bar is processed only once. This helps in precise order management, avoiding redundant triggers.

Ensuring finalization

I’m finalizing the implementation to ensure orders trigger only when a bar is closed. By using sc.GetBarHasClosedStatus(), this avoids premature processing during active market updates.

Ensuring precise execution

I’m refining the script to trigger orders only when the latest bar closes. This ensures book entries are processed accurately, preventing premature orders.

Tracking progress

I’m focusing on storing the last processed bar index to ensure only new entries trigger orders, maintaining precise execution.

Mapping out the script

I’m refining the script to track the last processed bar index, triggering buy or sell orders based on current and previous bar conditions. This ensures precise entry points.

Setting up Sierra Chart

I'm organizing the setup for Sierra Chart, defining the global variable and function within SCSFExport to ensure smooth script execution. This clarity paves the way for more accurate trading signals.

Setting up and managing

I'm setting up a Sierra Chart script to manage buy or sell orders based on candle patterns. This involves setting defaults, checking conditions, and tracking processed bars.

Assessing accuracy

I’m examining the script's accuracy, ensuring it’s standalone without Canvas. It accurately handles defaults and bar closures, and it triggers buy or sell orders based on candle conditions.

Ensuring accuracy

I’m verifying the script's logic to handle multiple orders and confirm it correctly processes complete bars using sc.GetBarHasClosedStatus, aiming for precise execution.

Finalizing the details

I'm wrapping up the script, ensuring it handles multiple orders, utilizes sc.BuyEntry correctly, and compiles standalone for Sierra Chart. This concludes the efficient execution.

Date Time Of Last Edit: 2025-02-06 14:32:27