- Accounts & Connection Management
- Data Management & Analysis
- Price Monitoring
- Charting
- Trading
- Scanners
-
Builders
-
Manual Strategy Builder
- Main Concept
- Operand Component
- Algo Elements
-
Use Cases
- How to create a condition on something crossing something
- How to create an indicator based on another indicator
- How to calculate a stop loss based on indicator
- How to submit stop order based on calculated price
- How to calculate a current bar price using a price type from inputs
- How to Use a Closed Bar Price
- Automatic Strategy Builder
-
Manual Strategy Builder
- Autotrading
- FinScript
- Trade Analysis
- Media Feeds
- Logs & Notifications
- UI & UX
How to Submit a Stop Order Based on Calculated Price
Â
Submitting a stop order based on a calculated price involves determining the entry price using specific criteria and then placing the order. Here’s how to achieve this:
Â
Step 1: Calculate the Current Entry Price
Define the Calculation for the Entry Price: Determine the formula for calculating the stop order entry price. For example, a buy stop order could be set at the current bar's close price plus twice the Average True Range (ATR).
- Example Calculation:
- Indicator: Average True Range (ATR)
- Multiplier: 2
- Entry Price Formula: MyEntryPrice = Close + (ATR * 2)
- Indicator: Average True Range (ATR)
Â
Setup the Calculation in MSB:
- Indicator: Define the ATR indicator.
- Parameter: Define the multiplier as an input parameter value (e.g., Multiplier = 2).
- Calculation: Create a local variable or directly compute the entry price using the defined formula.
Â
Step 2: Submit an Order
Submit the Stop Order: Use the calculated entry price to submit a stop order. Ensure the order properties such as action type, order type, and time in force are properly configured.
- Example Order Setup:
- Action: Buy
- Order Type: Stop
- Entry Price: MyEntryPrice
- Additional Properties:
- Comment: Optionally add a comment for reference.
- Time in Force: Set the duration for which the order remains active (e.g., Good Till Cancelled, DAY, Good Till Date).
- Position Size Method: Define how the position size is determined (e.g., fixed contract, fixed fractional)
- Comment: Optionally add a comment for reference.
- Action: Buy
Â
Example Implementation:
-
Calculate Entry Price:
- Indicator: ATR
- Multiplier: 2
- Formula: EntryPrice = Close + (ATR * 2)
-
Submit Stop Order:
- Action: Buy
- Order Type: Stop
- Entry Price: MyEntryPrice
- Comment: "Entry based on Close + 2*ATR"
- Time in Force: Good Till Cancelled
- Position Size Method: Fixed Contract
- Action: Buy
Â
Conclusion
By following these steps, traders can calculate an entry price using indicators and submit stop orders based on this calculated price. This approach allows for dynamic and precise order placement, improving the execution and effectiveness of trading strategies within FinStudio
- Accounts & Connection Management
- Data Management & Analysis
- Price Monitoring
- Charting
- Trading
- Scanners
-
Builders
-
Manual Strategy Builder
- Main Concept
- Operand Component
- Algo Elements
-
Use Cases
- How to create a condition on something crossing something
- How to create an indicator based on another indicator
- How to calculate a stop loss based on indicator
- How to submit stop order based on calculated price
- How to calculate a current bar price using a price type from inputs
- How to Use a Closed Bar Price
- Automatic Strategy Builder
-
Manual Strategy Builder
- Autotrading
- FinScript
- Trade Analysis
- Media Feeds
- Logs & Notifications
- UI & UX