My Line Order version 2.1
Topic: My Line Order version 2.1
This version has quite a few new feature, most noticeably the multiple orders.
extern string LO_PREFIX="#"; // Name of lines = LO_PREFIX+TicketNumber()+Specialty
extern double LO_LOTS=0.1;
extern double LO_PIPPROFIT=30;
extern double LO_PIPSTOPLOSS=20;
extern double LO_PIPTRAIL=0; // This trail acts like the default MT4 trail, once you are in profit by this much then the trail will start
extern bool LO_AUTO_INCLUDE_SL_TP = 1; // If no values entered then default values used
extern bool LO_CLOSE_ORDER_ON_DELETE = 1; // Close order on deleting the main line else will re-create line next time
extern int LO_ALARM=0; // 0 = No alarm, 1 = Alert, 2 = Email(Not implemented yet), 3 = Send file(Not implemented)
extern bool LO_ECN=0; // Is the broker a ECN?
extern int MAGIC_NUMBER = -1; // Set at -1 to apply to all currently open trades
extern color LO_ORDER_CLR=Gray; // Colour of open price line
extern int LO_ORDER_STYLE=STYLE_DASH; // Style of open price line
extern color LO_STOPLOSS_CLR=Red; // Colour of order's stop loss
extern int LO_STOPLOSS_STYLE=STYLE_DASHDOT; // Style of order's stop loss
extern color LO_MOVE_STOPLOSS_CLR=Teal; // Colour of line which moves stoploss a specified stoploss when hit
extern int LO_MOVE_STOPLOSS_STYLE=STYLE_DASHDOT; // Style of line which moves stoploss a specified stoploss when hit
extern color LO_STOPLOSS_MOVE_CLR=Orange; // Colour of line to which to move stop loss to
extern int LO_STOPLOSS_MOVE_STYLE=STYLE_DASHDOT; // Style of line to which to move stop loss to
extern color LO_STOPLOSS_CLOSE_CLR=Red; // The colour of line which closes at a stop loss
extern int LO_STOPLOSS_CLOSE_STYLE=STYLE_DASHDOT; // The style of line which closes at a stop loss
extern color LO_TAKEPROFIT_CLR=Green; // Colour of the final take profit
extern int LO_TAKEPROFIT_STYLE=STYLE_DASHDOT; // Style of line of final take profit
extern color LO_TAKEPROFIT_MOVE_CLR=Green; // Colour of the move take profit
extern int LO_TAKEPROFIT_MOVE_STYLE=STYLE_DASHDOT; // Style of the move take profit
extern color LO_TAKEPROFIT_CLOSE_CLR=Green; // Colour of the close take profit
extern int LO_TAKEPROFIT_CLOSE_STYLE=STYLE_DASHDOT; // Style of the close take profit