Drawing a trendline on the chart

 

Hello, is there a function that will draw a line from the high of one bar1 to the high of another bar2 on the chart? Thanks..

 

ObjectCreate(0,"Resistance",OBJ_TREND,0,HighRightLocation,High, HighRightLocation2, HighRight); This does not work :( 

Documentation on MQL5: Standard Constants, Enumerations and Structures / Objects Constants / Object Types
  • www.mql5.com
Standard Constants, Enumerations and Structures / Objects Constants / Object Types - Documentation on MQL5