Open & Closing Orders Using Lines


Description of EA SendCloseOrder: The EA

draws 4 lines "LINE BUY", "LINE SELL" and two lines "CLOSE".

Your task is to move the lines to where you intend to do a certain action with the order. Accordingly, Buy, Sell, Close.

Orders are placed or closed at the moment when Ask is above the line and Bid is below the corresponding line. Those. there is a crossing at the price of one of the 4 lines. The figure shows an example of trading. The number of lines can be reduced using variables

Title: 3.png Views: 2447 Size: 17.0 KB

PHP code:
DRAW_SELLВ -В рисоватьВ отрезкиВ Sell
DRAW_BUYВ -В рисоватьВ отрезкиВ Buy
DRAW_CLOSE1В -В рисоватьВ отрезкиВ Close1
DRAW_CLOSE2В -В рисоватьВ отрезкиВ Close2В

Additionally introduced external variables lot - lot size and order - the maximum number of orders. CLOSE lines can be used as trailing, placing them at a certain angle.

The EA can be used for testing manual strategies and trading training. To do this, it is enough to put the adviser in the tester and at low speed with visualization by moving the lines, place orders.

2) LineBreak - the EA opens an order after the candle breaks the line


How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Author: Forex Wiki Team
We are a team of highly experienced Forex Traders [2000-2023] who are dedicated to living life on our own terms. Our primary objective is to attain financial independence and freedom, and we have pursued self-education and gained extensive experience in the Forex market as our means to achieve a self-sustainable lifestyle.