Creating Trendlines

 

I have built an indicator, call it S, and am trying to draw the path that it takes which should be similar to adding a moving average to a chart.

The chart will be a 5 minute chart. I’ve tried the following but it doesn’t seem to work:

ObjectCreate("Line",22,0,0,S);

ObjectSet("Line",OBJPROP_COLOR,LimeGreen);

ObjectSet("Line",OBJPROP_WIDTH,3);


Any ideas on how to solve? thx

 

ObjectCreate("Line",22,0,0,S);

that creates a Object called "Line", type=22=Arrow, in window nr 0 (main window), at time1=0, at price=S

i suggest you read the docs again describing the object functions ;-)

Reason: