logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
sdgms  
#1 Posted : 11 years ago
sdgms

Rank: Newbie

Groups: Registered, Registered Users, Unverified Users
Joined: 12/22/2013(UTC)
Posts: 8

Hi,
I am having my custom indicator in a separate inner window which plots four indicator lines. They are not getting displayed with proper scaling. Then, even on manually changing the scaling to the respective right or left axis, scaling option is getting reset to 'Overlay without Scale'.

Am I missing something here? Any reason for scaling option getting reset to 'Overlay without Scale' even on manually setting them?

Also, Is there any way to assign scaling to the plot in the indicator formula itself?

Regards,
sdg
henry1224  
#2 Posted : 11 years ago
henry1224

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/29/2004(UTC)
Posts: 1,394
Location: Glastonbury, CT

Was thanked: 2 time(s) in 2 post(s)
when you drag the indicator to a new window ,check new scale on left.

it should display correctly. If you still have issues, then post the code.

The scale values should be listed before the last 4 variables so that they will display.
MS Support  
#3 Posted : 11 years ago
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,960

Thanks: 92 times
Was thanked: 155 time(s) in 150 post(s)
One point that can be a bit confusing, the Scaling option will display Overlay each time you go in, even if you chose Merge with scale on right.
sdgms  
#4 Posted : 11 years ago
sdgms

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
Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.