- 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
Define the Input Parameter for Price Type:
- Properties:
- Type: Price type
- Name: Price Type
- Code: PriceType
- Description: Add description
- Default Value: Close
- Type: Price type
Â
Step 2: Calculate the Current Price Using a Price Type from Settings
Define the Variable to Calculate the Current Price:
- Properties:
- Name: Current Price
- Code: currentPrice
- Value: Bar price
- Price Type: PriceType (from input parameter)
- Name: Current Price
Â
Conclusion
Â
By following these steps, traders can dynamically calculate the current bar price based on a user-specified price type. This approach allows for flexible and adaptable trading strategies, ensuring that the strategy can respond to different price types as defined by the user 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