_SECTION_BEGIN("test_pivot");
WeekH = TimeFrameGetPrice("H", 2*inWeekly, -1);
WeekL = TimeFrameGetPrice("L", 2*inWeekly, -1);
WeekC = TimeFrameGetPrice("C", 2*inWeekly, -1);
WeekO = TimeFrameGetPrice("O", 2*inWeekly);
// regular pivots
if ( True )
{
PP = (WeekL + WeekH + WeekC)/3 ;
}
Plot(PP, "PP",colorRed,styleLine+styleNoLabel);
_SECTION_END();
On Sat, 24 Apr 2010 16:39:45 +0530 wrote
>
hi,
i have code for weekly pivot point. im trying to work out how to adjust it so
that i can plot the 2week pivot point.
is anyone able to help
this is the code ive got
_SECTION_BEGIN("weekly pivot");
WeekH = TimeFrameGetPrice("H", inWeekly, -1);
WeekL = TimeFrameGetPrice("L", inWeekly, -1);
WeekC = TimeFrameGetPrice("C", inWeekly, -1);
WeekO = TimeFrameGetPrice("O", inWeekly);
// regular pivots
if ( True )
{
PP = (WeekL + WeekH + WeekC)/3 ;
}
Plot(PP, "PP",colorRed,styleLine+styleNoLabel);
_SECTION_END();