Before I start… I read this and it is not what I want to do:
- Run my AFL (with IB connection and autotrading) on the PRICE chart - this calculates all my indicators/variables for me based on my parameters I set on the overall AFL.
- From the AFL running on the price chart, I want to INSERT a blank chart, and then plot my variables on that chart UNDER the price chart and sync’d to the price chart for time/range bars.
Can you do this? I searched this forum and I read the manual and don’t see any functions to do this.
I DON’T want to run the same code on a separate chart and switch based on ChartType like this
ChartType = ParamList("Chart Type", "Price Chart|Indicator"); //
if (ChartType == "Price Chart") // Price Chart
if (ChartType == "Indicator") //
Plot(a1, "MyIndicator1", colorRed, styleThick );
Plot(a2, "MyIndicator2", colorGreen, styleThick );
Thanks in advance !