Rank: Newbie
Groups: Registered, Registered Users, Unverified Users Joined: 12/22/2013(UTC) Posts: 8
|
Hello Henry, Thank you for the reply. Please let me know how to put scale values before the 4 variables would be plotted. I could not find any relevant info in the metastock formula primer.
Here is my code: type:=Input("CALL:1, PUT:2, FUTURECALL:3, FUTUREPUT:4",1,4,3); strikeprice:=Input("Strike Price",0000000,111111,0); expirydate:=Input("Expiry Date in YYMMDD format",000001,991231,991231); interestrate:=Input("Interest Rate",0,24,12); dividendrate:=Input("Dividend Rate",0,100,25);
If(type=3,Delta(FC,expirydate,strikeprice,interestrate,dividendrate),0); If(type=3,Gamma(FC,expirydate,strikeprice,interestrate,dividendrate),0); If(type=3,Vega(FC,expirydate,strikeprice,interestrate,dividendrate),0); If(type=3,Theta(FC,expirydate,strikeprice,interestrate,dividendrate),0);
Regards, sdg
|