Plotting lines from Signals
We know well, how TradeStation and thus, MultiCharts, have been an evergreen problem for programmers, and it’s 2020 and they still don’t support ABC functionalities needed for programmers.
One of them is plotting from strategy. As it’s not that easy to achieve it, we have to use some extra approaches. One approach is to use
i_setplotvalue function. However, to simplify things, we made a helper indicator, which does that already
You can make your work simpler by using the ready-made helper indicator, which can plot lines from strategies.
- 1) In strategy, use like this:
input: my_plot_id(134); //random id for your plot value my_value= (high+low)/2; i_setplotvalue(my_plot_id * +1, my_value ); //Value: use +1 index i_setplotvalue(my_plot_id * -1, green ); //Color: use -1 index i_setplotvalue(my_plot_id * -2, 3); //Width: use -2 index
- 2) Then attach the
TC__PlotFromStrategyindicator onto chart and set the same ID in first plot (i.e.
134as in above example).
P.S. If you want to apply lines on main chart, go to
Indicator > Format > Scaling and choose
Same as instrument, and also, in Properties, choose