![]() |
Guppys MMA applied to RSC |
Post Reply ![]() |
Author | |
Owen ![]() Regular ![]() Joined: 15 Nov 2004 Posts: 97 |
![]() ![]() ![]() ![]() Posted: 31 May 2005 at 4:07pm |
Wow Peter your script is lightening fast! I'll have to remember this trick.
![]() |
|
![]() |
|
Peter ![]() BullCharts Staff ![]() ![]() Joined: 09 Sep 2004 Location: Australia Posts: 241 |
![]() ![]() ![]() ![]() |
Calling one formula from another can sometimes be slow in BullScript.
I've made a faster version by copying the main part of the RSC formula,
then assigning the result to a temporary variable.
symb := inputsymbol("Compare to", "XAO"); {calc RSC manually} tmp := C/LoadSymbol(symb,C); MA(tmp,3,e); MA(tmp,5,e); MA(tmp,8,e); MA(tmp,10,e); MA(tmp,12,e); MA(tmp,15,e); [color=red] MA(tmp,30,e); MA(tmp,35,e); MA(tmp,40,e); MA(tmp,45,e); MA(tmp,50,e); MA(tmp,60,e) |
|
![]() |
|
Owen ![]() Regular ![]() Joined: 15 Nov 2004 Posts: 97 |
![]() ![]() ![]() ![]() |
I applied multiple moving averages to the RSC indicator, but it takes a
long time to load my script. Is there a better way to write it?
My script: MA(fml("Relative Strength Comparison"),3,e); MA(fml("Relative Strength Comparison"),5,e); MA(fml("Relative Strength Comparison"),8,e); MA(fml("Relative Strength Comparison"),10,e); MA(fml("Relative Strength Comparison"),12,e); MA(fml("Relative Strength Comparison"),15,e); [color=red] MA(fml("Relative Strength Comparison"),30,e); MA(fml("Relative Strength Comparison"),35,e); MA(fml("Relative Strength Comparison"),40,e); MA(fml("Relative Strength Comparison"),45,e); MA(fml("Relative Strength Comparison"),50,e); MA(fml("Relative Strength Comparison"),60,e) |
|
![]() |
Post Reply ![]() |
Forum Jump | Forum Permissions ![]() 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 |