Now, that you developed your own Indicator it’s time to display it on your private graph. This is exactly why we added ‘SetGraph’ function. SetGraph gets to parameters: Date and a value. When using it in Chart menu, it will draw your new Private Graph below the usual Symbol Chart.
The following code will calculate SMA(2) and will use SetGraph to display it:
# Calc my SMA2
my $SMA2 = ( Close() + Close(1) ) / 2 ;
# Get today date
my $d = Date();
# Creat a Private Graph below the normal Symbol Chart, find it at Chart menu:
SetGraph( $d , $ratio );
Check it at: http://www.strategyseeker.com/strategies/5293/edit/
Stay tuned for additional features.
Meanwhile, enjoy the new functionality and develop even improved strategies.
Have a great trading day,
Strategy Seeker team!