A simple function to draw a trend line that is following the price marker ( close ) is reporting an error of Missing Data. I don't see nothing that need to specify witch data in use. Only one instrument on the chart
Once enable in the main indicator, the function is called
Martin
The line from my main indicator
Code: Select all
If ShowPriceline_ = true then showPriceline;
ShowPriceLine
Code: Select all
//Display a line that follow that Price marker
Var:
Intrabarpersist TL (0);
Once begin
tl = Tl_New_BN(Barnumber,close ,barnumber,close );
tl_setextleft(TL,true);
tl_setextright(TL,true);
end;
Value1 = TL_Setbegin_BN(TL, barnumber,close);
//ShowPriceline = 1;