Rank: Newbie
Groups: Registered, Registered Users Joined: 7/19/2010(UTC) Posts: 4
|
Normal
0
14
false
false
false
IT
X-NONE
X-NONE
MicrosoftInternetExplorer4
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Tabella normale";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin-top:0cm;
mso-para-margin-right:0cm;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0cm;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
[:)]Hello to every body. I need help. I have this formula that plot a semicircle with shift for centered the data. I use in Daily Time Frame:WW:=Input("Length:",7,10000,10);WWW:=WW/6;OF:=Input("Horizontal Shift:",0,10000,0);CC:=Cum(30/WWW);FF:=Frac(LastValue(Cum(1))/WW);OFF:=WW*FF;Abs(Ref(Sin(CC),-LastValue(OFF)-OF))If I want to use in intraday How can modified the formula for fix the bar, without the shift, with this input ???D:=Input("Day of month",1,31,1);M:=Input("Month",1,12,1);Y:=Input("Year",1900,2100,2008);Hr:=Input("Hours [0-23]",0,23,9);Mn:=Input("Minutes [0-59]",0,59,30);Sorry for my bad English.Bye
|
|
|
|
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)
|
The most direct option is to use BarsSince() to count the bars since the date and time entered. This number would take the place of the variable OF in your current formula. Please note that if there is no bar with the exact date and time supplied to the formula, the formula will not plot anything.
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 7/19/2010(UTC) Posts: 4
|
Thanks a lot !!! You can give me an EXAMPLE about the formula ???
|
|
|
|
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)
|
date:= Month() = 6 AND DayofMonth() = 28; OF := LastValue( Barssince( data) );
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 7/19/2010(UTC) Posts: 4
|
Ok I try, but I don't understand 'OF' in the formula posted is the shift, when i plot the semicicrle is not centered at the data !!!
Thanks for the patience [:)]
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 7/19/2010(UTC) Posts: 4
|
I try in this way:
WW:=Input("Length:",7,10000,10); WWW:=WW/6;
date:= Year()= 2011 AND Month()=3 AND DayOfMonth()=16;
OF:=LastValue(BarsSince(date));
CC:=Cum(30/WWW);
FF:=Frac(LastValue(Cum(1))/WW); OFF:=WW*FF;
Abs(Ref(Sin(CC),-LastValue(OFF)-OF));
but don't centered the data !!!! [:)][:)]
|
|
|
|
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.