Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 03:54:28 +0000



[Programming Help] - Trading System - Study Subgraph Crossover study

View Count: 1466

[2019-08-17 10:59:59]
jimskin - Posts: 127
Hi,

Is it possible to have Up and Down arrows showing the crossover signals on the chart rather than dots. I changed the 'Draw Style' from 'Point On High/Low' to 'Triangle Up/Down' and 'Arrow Up/Down' but the chart bars disappear.
[2019-08-17 12:54:51]
jimskin - Posts: 127
I can see the 'Swing High and Low' study uses 'Arrow Down' and 'Arrow Up' for signals and also has the option 'Arrow Offset as Percentage'. Can those 'Draw Style' options be added to the 'Trading System - Study Subgraph Crossover' study?
[2019-08-17 13:51:50]
Sawtooth - Posts: 3976
In the Trading System - Study Subgraph Crossover study, you are limited to Draw Styles that do not need a price position:
-Point On High/Low
-Background
-Color Bar
[2019-08-17 15:36:21]
jimskin - Posts: 127
Ok, I see. I'm not using the trading system part of the study. I'm just using the study to display Buy and Sell crossover signals on the chart. Maybe there's a study that does that without the trading system part. I looked but couldn't find one. Might be a good study to add.

I'm assumimg a developer would be able to add the Draw Style 'Arrow Up/Down' and the option 'Arrow Offset as Percentage' to the Trading System - Study Subgraph Crossover study. Can you please confirm that.

I also wanted to add text to the chart so if MA1 > MA2 (on the current real-time bar) the text 'Buy' would be displayed and if MA1 < MA2 then 'Sell' text would be displayed. I'm assuming that could also be added.

Thanks
[2019-08-17 16:07:57]
Sawtooth - Posts: 3976
Use two instances of the Color Bar Based On Alert Condition study:
Buy instance:
-Set the 'Output When Condition True' to 'Use Input Data'
-Set the 'Input Data' to 'Low'
-Set the Draw Style to Text
-Set the Width to 10 or larger
-Enter 'Buy' in the Text to Draw field
-Use this formula: =CROSSFROMBELOW(ID1.SG1,ID1.SG2)

Sell instance:
-Set the 'Output When Condition True' to 'Use Input Data'
-Set the 'Input Data' to 'High'
-Set the Draw Style to Text
-Set the Width to 10 or larger
-Enter 'Sell' in the Text to Draw field
-Use this formula: =CROSSFROMABOVE(ID1.SG1,ID1.SG2)
[2019-08-18 03:20:33]
Sierra Chart Engineering - Posts: 104368
Yes, the study that you need to accomplish all of this is the Color Bar Based on Alert Condition study:
Color Bar Based on Alert Condition
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account