거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Facebook에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
Experts

My Line Order version 2.1 - MetaTrader 4용 expert

조회수:
25802
평가:
(5)
게시됨:
2011.10.17 06:02
업데이트됨:
2016.11.22 07:32
\MQL4\Include\
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Introduction

This version has quite a few new feature, most noticeably the multiple orders.

In this version it is only possible to close the order fully but with future versions I hope to add the ability to add into positions and close partial positions at set levels. Also one feature that I'm looking forward to add is the ability to set levels at certain indicator values (hopefully version 3).

Default values

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
Inital line name variables

#buy = Open a buy market trade
#sell = Open a sell market trade
#buypend = Open a buy pending order at that price
#sellpend = Open a sell pending order at that price
Todo: #buytp = Open a buy market trade with the line as take profit
Todo: #buysl = Open a buy market trade with line as stop loss
Todo: #selltp = Open a sell market trade with the line as take profit
Todo: #sellsl = Open a sell market trade with line as stop loss

After trade variables(without quotes)
"sl=" = Stop loss in pips. Can have multiple orders. To have no stop loss use "N"
"tp=" = Stop loss in pips. Can have multiple orders. To have no take profit use "N"
"ts=" = Trailing stop in pips. Can have multiple orders
"lo=" = The lots which are open. (Todo: If changed then order modify the lots in order)
"alarm" = For values view the comment on LO_ALARM

How to use description

The EA will fill out the description with the main order properties automatically depending on your current settings. If you move the horizontal lines then it will update the description with the new values. To make a multiple order, you need separate them using "," and to have it a set level it needs to be in the following format "value in pips@level you want the value to change" without any spaces in. You can make as many lines as you need.

Definite updates

Lot modification features from description and set levels

Stop loss/take profit at indicator values with the ability to add or take away other indicators (I think I know how)

Line alarms (Alarms which have nothing to do with and actual trade)

Possible future updates

Order cancels other orders

Stop loss and take profit based on account size and trade profit


If you have any problems or have any ideas which I can put in version 3 then comment here or PM me,

Thanks.

P.S. This version is by no means the last one, I'm working out bugs and adding new features weekly if not daily. I'll only be posting the latest version to the codebase every so often so if wish to have the latest version or find a bug which may have been fixed in a later version then message me and i'll send you the latest version. To me all feedback is good, tells me where things are going wrong. I'm going to try and make this EA as inclusive as possible and as bug free as possible.

psar bug 6 psar bug 6

An Expert Advisor designed to open and close respective orders at the first parabolic SAR signal.

X bug free version v3.0 X bug free version v3.0

Trades using MA crosses on all timeframes.

Simple tick data collector Simple tick data collector

A simple tick data collector written in MQL4 for you to collect tick data on any symbol you choose.

PSAR alert v2.0 PSAR alert v2.0

Alerts you on every first parabolic SAR signal in a sequence.