Skip to main content Skip to footer
Draw Marker

The Draw Marker element enables traders to place visual icons (markers) on the chart at specified bars and prices. This is useful for highlighting significant points or events within a trading strategy, providing a clear visual representation of the strategy's performance.

 

Properties of Draw Marker

 

Several properties can be customized when setting up a Draw Marker:

  1. Price: Specify the price level where the marker should be placed. For example, this could be the bar price with a specific type such as Close, and how many bars back to apply the marker.

  2. Marker Type: Choose the type of marker to be drawn, such as Triangle Up, Arrow Down, or Circle.

  3. Background Color: Set the background color of the marker.

  4. Stroke Color: Set the stroke color of the marker.

  5. Stroke Width and Dash Style: Customize the stroke width and dash style for the marker.

 

Example Use Case

Consider a scenario where a trader wants to draw a Triangle Up marker at the price level equal to SMA + ATR. This setup visually indicates potential buy signals on the chart:

  1. Setup the Element: Place the Draw Marker element in the algo tree.

  2. Define the Properties:

    • Price: Set the price as SMA + ATR.

    • Marker Type: Triangle Up.

    • Background Color: Choose a suitable color for the marker’s background.

    • Stroke Color: Select a stroke color for the marker’s outline.

    • Stroke Width and Dash Style: Adjust the stroke width and dash style to enhance visibility.

 

Print Text to Standard Output

 

The Print Text to Standard Output element allows traders to output text to the standard output, which can be useful for debugging or providing additional information during the strategy’s execution.

 

Properties of Print Text to Standard Output

 

Basic properties for text drawing can be set:

  1. Text: Enter the text to be outputted.

  2. Formatting: Optional properties to format the text output, such as font size and style.

 

Example Use Case

Consider a scenario where a trader wants to log a message every time a trade is executed:

  1. Setup the Element: Place the Print Text to Standard Output element in the algo tree.

  2. Define the Properties:

    • Text: Enter the message, for example, “Trade executed at [time]”.

    • Formatting: Optionally set the font size and style to make the output easily readable.

Steps to Implement Visual Actions

 

  1. Select Visual Element: Choose either Draw Marker or Print Text to Standard Output.

  2. Set Properties: Define the properties such as price, marker type, colors, and text as needed.

  3. Integrate into Strategy: Place the element in the appropriate location within the algo tree to ensure it is triggered under the correct conditions.

 

Conclusion

 

The Visual Actions elements in the MSB, including Draw Marker and Print Text to Standard Output, are powerful tools for enhancing the clarity and usability of trading strategies. By providing clear visual markers and informative text outputs, these elements help traders better analyze and understand their strategies, ultimately leading to more effective and informed trading decisions within FinStudio.

Cookies Notice

We use cookies to improve your experience, personalize content, and analyze our traffic. By clicking "Accept All Cookies," you agree to the storing of cookies on your device. You can manage your cookie preferences at any time by visiting our Cookie Settings.