#include "common.mqh"

	string		pf = "";
	int         _tf = Period();


int start()
{
	double      Price_on_Drop 	= WindowPriceOnDropped();
	datetime    time 				= WindowTimeOnDropped();

	SetColors(_tf);


	LevelName = SetLevelName(LevelName,Symbol() ,_tf, pf,"TREND");


	ObjectCreate(LevelName, OBJ_HLINE, 0, time,Price_on_Drop, time+Period()*60*40,Price_on_Drop);
	ObjectSet(LevelName,OBJPROP_RAY,0);//make the lines continue to the right
	ObjectSet(LevelName,OBJPROP_COLOR, LineColor);
	ObjectSet(LevelName,OBJPROP_BACK,0);
	ObjectSet(LevelName,OBJPROP_WIDTH,Width);//the width of the line
	ObjectSet(LevelName,OBJPROP_FONTSIZE,14);
	ObjectSet(LevelName,OBJPROP_TIMEFRAMES,visibility);//the visibility of the line
	//ObjectSetText( LevelName, TF.Text, 0, "", CLR_NONE);
	//GlobalVariableSet(LevelName, 1);
	WindowRedraw();
	//CopyObject(LevelName);
	return(0);
}


