Jump to content

Sma


velecasni

Recommended Posts

actually not that difficult to build:

 

Inputs: Price(close), Period(5); 
Variables: PriceSum(0),SSMA(0);

if CurrentBar <= Period then begin
 	PriceSum = Summation(Price, Period); 
 	SSMA = PriceSum/Period; 
end
else begin
SSMA = (SSMA[1]*(Period-1) + Price)/Period;    
Plot1( SSMA, "SSMA" ) ; 
end;

Link to comment
Share on other sites

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...