Jump to content

Recommended Posts

Posted

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;

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...