PureBytes Links
Trading Reference Links
|
Hi All,
I have written a small little indicator for the expert commentary that
gives me bar stats on appropriate bars. The problem is formatting what
comes to the commentary box. I can format with extra spaces the commentary
in TS4 but not TS2000i.
Can someone have a look at the code in TS2000i and see what I maybe able to
do? I have attached the ela with this email.
Regards,
Paul
{<><><><><><><> Indicator <><><><><><><>}
{Line #1} Inputs: EntryAdd(1), Decimals(2);
{Line #2} Vars: Risk(0), Target1(0), Target2(0), L_Entry(0), L_Stop(0);
{Line #3} L_Entry = High + EntryAdd;
{Line #4} L_Stop = Lowest(Low,4);
{Line #5} Risk = L_Entry - L_Stop;
{Line #6} Target1 = L_Entry + risk;
{Line #7} Target2 = L_Entry + (2*risk);
{Line #8} Commentary("***************"); Commentary(" ");
Commentary("***************"); Commentary(" ");
Commentary("***************"); Commentary(" ");
Commentary("***************"+Newline);
{Line #9} Commentary("* Entry *"); Commentary(" ");
Commentary("* Stop *"); Commentary(" "); Commentary("
* Target 1 *"); Commentary(" "); Commentary("* Target
2 *"+Newline);
{Line #10} Commentary("***************"); Commentary(" ");
Commentary("***************"); Commentary(" ");
Commentary("***************"); Commentary(" ");
Commentary("***************"+Newline);
{Line #11} Commentary("* "+NumToStr(L_Entry,Decimals)+" *");
Commentary(" ");
Commentary("* "+NumToStr(L_Stop,Decimals)+" *");
Commentary(" ");
Commentary("* "+NumToStr(Target1,Decimals)+" *");
Commentary(" ");
Commentary("* "+NumToStr(Target2,Decimals)+" *"+Newline);
{Line #12} Commentary("***************"); Commentary(" ");
Commentary("***************"); Commentary(" ");
Commentary("***************"); Commentary(" ");
Commentary("***************"+Newline);
Plot1(0,"Zero");
Attachment:
Description: "Paul.ela"
|