[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trying to write a paintbar for supercharts, from TS2K



PureBytes Links

Trading Reference Links

Hav elerarned from experimenting that you can write codes for superchart
using TS2K. This normally means to avoid longer names than 8 characters and
so, but also to use the correct function calls from TS4, with the syntax
from TS4.

Can not get this code to transfer from TS2k:

Inputs: AvgLen(9),DisplLen(6),HighBCl(Cyan),LowBCl(Red);
Vars: HighMovA(0),LowMovA(0);
HighMovA=Average(High,6);
LowMovA=Average(Low,6);
if close>HighMovA[DisplLen] then
	plotpb(high,low);
if close<LowMovA[DisplLen] then
	plotpb(high,low);

It verifies and exports correctly in TS2K, but arrives unverified to
Superchart. Is there anyone who knows what to change for this to be
acceptable TS4 style?

(Originally I used plotpaintbar, setting higbcl colour in the first if
statement and lowbcl colour in the last if statement. Anyone with TS4 that
knows how to achieve that?

--- Mats ---