Trendlines from bar data

Hi all,

Is there a way of coding individual trendlines using bar highs/lows as reference points rather than using X/Y co-ordinates?

I've looked through the forum but haven't found a way

I'm not sure if I understood your question intent correctly, but you may want to have a look at GfxSetCoordsMode AFL function