[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Foreign Plot question



PureBytes Links

Trading Reference Links

Thanks William. Forgot to use if condition when IIF didnt work.
 
Regards
 
Prashanth
----- Original Message -----
Sent: Friday, December 10, 2004 9:01 PM
Subject: Re: [amibroker] Foreign Plot question

Hi Prashanth,

I'm not certain what's going with your formula but the following formula
will do what you want.

if ( IsIndex() ) {
Plot(Foreign("~Volume","V"),"Vol",colorAqua, styleHistogram);
}
else {
Plot( Volume,"V", colorBlack, styleHistogram );
}


Regards,
William Peters
www.amitools.com


Friday, December 10, 2004, 9:09:36 AM, you wrote:

 
P> Hello,
P>  
P> I am trying to Plot the overall  volumes in the Index chart.
P> What I have done is create a composite ~Volume and  then try and
P> plot the same only for the Index scrip while not plotting for
P> anyother scrip. The formula I gave was
P>  
P> IIf(IsIndex(),(Plot(Foreign("~Volume","V"),"Vol",colorAqua,
P> styleOwnScale |
P> styleHistogram)),Plot(V,"V",colorBlack,styleOwnScale |
P> styleNoDraw));
P> Though the above formula plots the Composite  Volume, it does
P> so in each and every scrip and not just the scrips marked Index.
P> Could any one here please tell me as to what I am doing wrong.
P> Thanks and Regards
P> Prashanth
P>  




Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html





Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links