Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
Marco You cannot dynamically or programmatically select plotted functions, but you might like to try creating another indicator where you use the Input() function to achieve a similar result: Code:
{user data}
prd1:=Input("MA1 periods",1,500,21);
prd2:=Input("MA2 periods",1,500,15);
data:=Input("Data: 1-O 2-H 3-L 4-C 5-MP 6-Typ",1,6,4);
data:=If(data=1,O,If(data=2,H,If(data=3,L,If(data=4,C,If(data=5,MP(),Typical())))));
{indicators}
ma1:=mov(data,prd1,e);
ma2:=mov(data,prd2,e);
diff:=ma1-ma2;
{plot/return}
0;
diff;
Hope this helps wabbit [:D]
|