PureBytes Links
Trading Reference Links
|
You can have the indicator write it on the screen by
doing this:
Inputs: EntryPr(0), NumContr(0), PtVal(250);
Vars: Profits(0);
Profits = (Close - EntryPr)*NumContr*PtVal;
Plot1(Profits, "Profit/Loss");
Plot2(0, "Breakeven");
If BarNumber = 1 then
value1 = Text_New(date, time, high*1.01,
NumToStr(profits,2))
else begin
value2 = Text_SetLocation(value1, Date, Time,
High*1.01);
value2 = Text_SetString(value1,
NumToStr(profits,2));
end;
--- Jim Johnson <jejohn@xxxxxxxxx> wrote:
> Is there a slick way get TS4 to display position
> profit for trades that
> are not from a system?
>
> For example, an indicator that displays a number on
> the screen? I am
> able to plot an indicator and it works OK but I'm
> looking for something
> prettier.
> --------------------------
> Inputs: EntryPr(0), NumContr(0), PtVal(250);
> Vars: Profits(0);
> Profits = (Close - EntryPr)*NumContr*PtVal;
> Plot1(Profits, "Profit/Loss");
> Plot2(0, "Breakeven");
>
> {check "update every tick"}
> ---------------------------
>
>
>
|