Login Page - Create Account

Support Board


Date/Time: Thu, 28 Nov 2024 00:25:47 +0000



[User Discussion] - Is there a simple method (without ASCIL) to draw a marker on 2 studies cross?

View Count: 1155

[2014-04-04 14:28:17]
maxima120 - Posts: 144
say I have 2 studies in region 2 and I want to draw a marker at the Last price in region 1..

can it be done without custom study writing?

(note the 2 studies in question are overlays from another chart if that make any difference).

thank you
[2014-04-05 00:53:48]
vegasfoster - Posts: 444
Yes, using the color bar based upon alert condition study. Assume you added study 1 as ID1, and study 2 as ID2, then in the alerts tab for the color bar based upon alert condition study, enter =CROSSFROMBELOW(ID2.SG1, ID2.SG1) to mark study 1 crossing over study 2, and then in the subgraphs tab change the draw style to whatever you want. Depending on the study, you may need to change SG1 to SG2, etc. If you want to mark all bars then use =ID1.SG1 > ID2.SG1.
[2014-04-07 14:04:40]
maxima120 - Posts: 144
thank you. but this is the most important point - to paint not the whole bar but a level at which the cross occured.. so this is why i asked for a marker not color bar.. any thought?
Date Time Of Last Edit: 2014-04-07 14:24:11
[2014-04-07 23:23:45]
vegasfoster - Posts: 444
IC, try this and let me know. You can mark longs and shorts separately.
attachmentStudyCrossMarker.dll - Attached On 2014-04-07 23:22:33 UTC - Size: 18.5 KB - 468 views
attachmentStudyCrossMarker.cpp - Attached On 2014-04-07 23:23:12 UTC - Size: 2.42 KB - 507 views
[2014-04-12 13:51:18]
maxima120 - Posts: 144
thank you very much. sorry for the delay (was a busy week).. I have tried your code (needed to recompile cpp for some reason - the dll attached didnt work at all)..

the code seems correct but the results doesnt make sense.

let me get to the bottom of the issue and I post the corrected version back here if you want (or send it by PM)..

cheers
[2014-04-13 16:15:26]
vegasfoster - Posts: 444
The DLL may not work if you are on an older version. If you tell me what study are you using as the input, then I can show you what it looks like on mine and we can go from there.
[2014-10-29 14:45:26]
mkata - Posts: 103
vegasfoster,

would you be able to modify your study so that it can use and plot a subgraph value in the subgraph region the same way it does in the main price region?



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

Login

Login Page - Create Account