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

Re: [amibroker] Re: ParamField question?



PureBytes Links

Trading Reference Links

Since fields cannot be added to the ParamField() you may need to add a few lines of code to create your own:


PA = ParamList("Price Array","O|H|L|C|(O+H)/2|(O+H+L+C)/4",3);


if(PA == "O" ) PriceArray = O;

else if( PA == "H" ) PriceArray = H;

else if( PA == "L" ) PriceArray = L;

else if( PA == "C" ) PriceArray = C;

else if( PA == "(O+H)/2" ) PriceArray = (O+H)/2;

else if( PA == "(O+H+L+C)/4" ) PriceArray = (O+H+L+C)/4;


Plot(C,"",1,128);

Plot(PriceArray,PA,colorRed,styleLine);


best regards,

herman


For tips on developing Real-Time Auto-Trading systems visit:

http://www.amibroker.org/userkb/


Monday, December 31, 2007, 3:46:54 PM, you wrote:


> I saw that function but don't know how it applies to this topic?


> Bill



>>I don't think you can add fields however you can create your own list

>>using ParamList() and on if().



>>herman


>>Monday, December 31, 2007, 12:49:27 PM, you wrote:



>> Is there a way to add options to the default list of fields for


>> ParamField.?



>> I want to have the average price (H+L)/2 available.



>> I found a workaround by creating a formula that plots (H+L)/2 with the


>> styleNoLine flag and put it on the chart before any indicators but it


>> would be nice to be able to add fields directly to the option list.



>> Bill







> Please note that this group is for discussion between users only.


> To get support from AmiBroker please send an e-mail directly to 

> SUPPORT {at} amibroker.com


> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:

> http://www.amibroker.com/devlog/


> For other support material please check also:

> http://www.amibroker.com/support.html

>  

> Yahoo! Groups Links


> <*> To visit your group on the web, go to:

>     http://groups.yahoo.com/group/amibroker/


> <*> Your email settings:

>     Individual Email | Traditional


> <*> To change settings online go to:

>     http://groups.yahoo.com/group/amibroker/join

>     (Yahoo! ID required)


> <*> To change settings via email:

>     mailto:amibroker-digest@xxxxxxxxxxxxxxx 

>     mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx


> <*> To unsubscribe from this group, send an email to:

>     amibroker-unsubscribe@xxxxxxxxxxxxxxx


> <*> Your use of Yahoo! Groups is subject to:

>     http://docs.yahoo.com/info/terms/

>  

__._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___