Support Board
Date/Time: Tue, 04 Nov 2025 06:53:22 +0000
Post From: Creating a function within a custom study
|   [2016-10-07 21:47:03]     |  
| bala - Posts: 74 | 
| 
                Objective: Need to draw a marker a few times in a study. Currently writing 10 or so lines for each time I draw. Can I declare a function within the study to draw a marker and call that function? Is the following scenario possible? +++++++++++++++++ #include "sierrachart.h" #include "scstudyfunctions.h" { SCSFExport scsf_Mytest2(SCStudyGraphRef sc) {if (sc.SetDefaults) {} int drawmymarker(parameters) {use sc_tool .... .... return 0; } ++++++++++++++++++++++++++++++++++ //main study if condition { drawmarker(parameters): }  | 
        
