Do you want another Chart/Sheet or a just a panel below the chart?
You can also plot them both on the same Sheet using different scales.
Take a look at the plot() parameters Min and Max or the style styleonwscale.
Anyway, the answer to your question would be: to plot an array in another Chart/Sheet...
1. Just plot the price in one chart and calculate and plot informedVolAD_Ind in another.
Simple as that.
or
2. you can store InformedVolAD_Ind as a static var, so it would be available in all other charts and sheets.
After that, just plot the static array.
Take a look at staticvarset() and staticvarget().
If you are going to use the AFL on multiple symbols simultaneously, I recommend merging the symbol name()+interval()+"InformedValAD_Ind" to name the array.
or
3. If on the other chart you are using another symbol and want to compare them both, besides staticvars you can also use the foreign() or setforeing() functions.
So you would calculate the foreign indicator inside the current chart.
2016-05-05 17:36 GMT-03:00 meanomalist@yahoo.com [amibroker] <amibroker@yahoogroups.com>:
Below is how my code looks:
PlotOHLC( Open, High, Low, Close, "", colorGreen, styleBar |styleThick );
_SECTION_BEGIN("Informed Volume Accumulation / Distribution ");
InformedVolAD_Ind = 0;
InformedVolAD_Ind = Cum( (V * IIf(InformedActivity_S_f == 1, 1, IIf(InformedActivity_S_f == 2, -1, 0 )) ));
Plot(InformedVolAD_Ind,"Informed Volume Accumulation / Distribution", colorBrightGreen);
_SECTION_END();
Now the issue is that both these plots are coming on the same Chart, causing the chart to be meaningless.
I can not have two separate codes to have these two plots. They have to be in same code.
How to Plot seperate chart for each plot?
How to fix this?
Agradeço antecipadamente,
----------------------------------------------------------
João Flávio Machado Derzi
+55 (31) 9 9731-4469
__._,_.___
Posted by: =?UTF-8?Q?Jo=C3=A3o_Fl=C3=A1vio_Machado_Derzi?= <joaoderzi@gmail.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (2) |
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
.
__,_._,___
EmoticonEmoticon