Draw Short Line IN Candle

Alain Verleyen  

Yes it's possible but you have to use "Precise time scale"

  • Precise time scale — if this option is disabled, objects are bound to bars along the horizontal scale of a chart. If you enable it, then it is possible to position an object at any point between bars.
Platform Settings - Getting Started - MetaTrader 5
Platform Settings - Getting Started - MetaTrader 5
  • www.metatrader5.com
The trading platform provides multiple settings to help you conveniently customize it. Click " Options" in the Tools menu or press "Ctrl+O". Charts — common settings of price charts and parameters of objects management: object selection straight after creation, immediate object configuration, and docking parameters; Trade — default parameters...
Alain Verleyen  
Alexandre Nakamura:
Thanks Alain for your reply. 

But I think that is possible without Precise time scale. 

No it's not possible with timed objects (Trend lines).
I saw a indicator that make  shorts horizontal lines and shorts vertical lines (like a stair) above or below the candles. 

It's a Hilo Indicator in forms of stair. 
Can be using canvas, but your question was about trend lines.
Ernst Van Der Merwe  
#property strict
#property indicator_chart_window
#property indicator_buffers 3
#property indicator_plots   1
//--- plot Median
#property indicator_label1  "Median"
#property indicator_type1   DRAW_COLOR_HISTOGRAM2
#property indicator_color1  clrRoyalBlue,clrFireBrick
#property indicator_style1  STYLE_SOLID
#property indicator_width1  5
//--- indicator buffers
double Buffer1[];
double Buffer2[];
double Colors[];
//| Custom indicator initialization function                         |
int OnInit()
//--- indicator buffers mapping
//| Custom indicator iteration function                              |
int OnCalculate(const int rates_total,
                const int prev_calculated,
                const datetime &time[],
                const double &open[],
                const double &high[],
                const double &low[],
                const double &close[],
                const long &tick_volume[],
                const long &volume[],
                const int &spread[])
   int begin=rates_total!=prev_calculated?prev_calculated:rates_total-1;
   for(int i=begin;i<rates_total;i++)
//--- return value of prev_calculated for next call
Alain Verleyen  
Ernst Van Der Merwe:
Doesn't really met the requirement.