• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 2:35pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 2:35pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Grid - New indicator that replaces chart grid 57 replies

Grid (not grid system) or horizontal lines indicator 6 replies

Grid, Burst Grid, Grid Risk and Grid Profit 1 reply

Double Time Grid and Pip Grid 0 replies

Grid Trading 2 replies

  • Trading Systems
  • /
  • Reply to Thread
  • Subscribe
  • 466
Attachments: Flexy Grid EA (Grid Trading)
Exit Attachments
Tags: Flexy Grid EA (Grid Trading)
Cancel

Flexy Grid EA (Grid Trading)

  • Last Post
  •  
  • Page 1 23456 67
  • Page 1 234 67
  •  
  • Post #1
  • Quote
  • First Post: Edited Jul 19, 2017 1:15am Jul 10, 2017 12:49am | Edited Jul 19, 2017 1:15am
  •  yousername
  • Joined Mar 2017 | Status: Working smart and hard | 2,949 Posts
This thread will be about my EA Flexy Grid.
It's called Flexy because I want it to be Flexible, I can place the buy/sell grid manually or automatically.
Personally I use it manually because I like to have control. I'm smarter than this EA, the EA doesn't take account of other variable i.e. News and what I'm seeing over my eyes and head.

Manual Flexy Grid
Attached Image (click to enlarge)
Click to Enlarge

Name: 1.png
Size: 45 KB


Automatic Flexy Grid. When you click the Manual button and it becomes Automatic button in green color, you should see a screenshot like that below. In order to start the EA to trade automatically, you have to click the "START" button. It will become green when you click it. Basically the start button is a safety trigger.
Attached Image (click to enlarge)
Click to Enlarge

Name: 2.png
Size: 38 KB


The green window on the top right corner contains information regarding the equity, signal etc. I think it's self explanatory, if you don't understand you can ask me.

Anyhow below are the 3 information that might need some explanation while the rest info are self explanatory.
Trading With Line is for Manual trading, it will execute a trade whenever the price crosses the Horizontal line object. In order to place a trade using this method, you have to edit the object name by adding _B or _S.
_B is for buy grid, _S is for sell grid.
Example Buy Grid
Horizontal Line 3951_B

Sell Grid
Horizontal Line 3951_S

Grid Space is the distance between each order. By default it is set to 5 pips space.

Grid is the number of order in a grid. It is depend on the ability the broker's MT4 able to place order. Some broker is able to place 100 orders, some 20, some 50 etc. You can find out by testing it on a demo account or ask their support about the maximum order their MT4 can take.
Example:
If the broker allows you to place 100 Orders, then you should set the grid value to 49 or 50 grid. It will place 49 or 50 trade of Sell/Buy stop and Buy/Sell limit, total 100 order.

I highly suggest you to try this on a demo first. Play around with it first and please give me some of your feedback. I appreciate it.

USER GUIDE (Compiled by OkSHOP)
FLEXY GRID_1.8 (14 - 7 - 2017)
as at 15/7
AUTOMATED
SET A
Alligator - default
ZigZag, 5, 5, 3
RSI, 14
2 EMA (5 and 10) no shift
MANUAL
TRADING WITH LINES INFO:
NAME_1S
or
NAME_1B
1 indicates Grid Style 101
2 indicates Grid Style 111
2 indicates Grid Style 110
B indicates BUY Grid
S indicates SELL Grid.
GRID STYLE (101 / 111 / 110)
Grid style 101, EG BUY GRID VISE VERSA FOR SELL
Sell Stop
Buy
Sell Limit
Buy is the center of the grid
Sell Stop and Sell Limit are the bulk orders above and below the center grid.
So the BUY is meant to be a losing position that got hedged by the Sell orders.
Grid Style 111 EG BUY GRID VISE VERSA FOR SELL
Buy Stop
Buy
Buy Limit
Buy is the center of the grid
Buy Stop and Buy Limit are the bulk orders above and below the center grid.
GRID STYLE 110 BUY VISE VERSA FOR SELL
Buy Stop
Buy
Sell Stop
Buy is the center of the grid
Buy Stop and Sell Stop are the bulk orders above and below the center grid.
PIPS SETTING
5.0 = 5 pip for both (4 & 5 decimal account)

HORIZONTAL LINE
NAME_TP
NAME_SL
NAME_C
TP = It will take profit (close the grid) when there's profit in the grid
SL = It will stop loss (close the grid) when the grid position is losing
C = It will close the grid
BREAKEVEN FUNCTION
1. Grid opened
2. You clicked the breakeven button to green
3. The grid only has 1 opened position at start
4. Further down the line the market executed some of your pending orders.
5. When you have >=2 order gets executed + breakeven button is green = BREAKEVEN function starts working.
You will also be able to set the breakeven function will be run there are >=X active orders.
SO there will be 3 parameters
Parameter 1) Use Breakeven? (Boolean)
Parameter 2) Breakeven amount (double amount $$$)
Parameter 3) Breakeven triggered after X opened orders (integer)

NEW FIX

Quoting Lopuch
Disliked
{quote} Warning num.2 - when you click Close grid button, EA close ALL OPENED ORDERS IN MT - not only orders opened via this EA - there is error with magic Nr?
Ignored
Version 1.1

Quoting fxwealth
Disliked
Hi yousername, Many thanks for making your EA available. Would it be possible for you to make it trade any lot size. I would prefer trading at 0.1 lots. I am fully aware of the risks of Grid Traders but I believe with sufficient capital 0.1 lots can be traded successfully. Thank you and Best rgds
Ignored
Version 1.2

Quoting yousername
Disliked
{quote} As promised. Ver 1.4 Additional update. The input in the EA setting is more user friendly now or should I say more descriptive {image} Please let me know if you found a bug. If you do, please provide a screenshot of the issue. Thank you, I appreciate it! Best Regards Yousername {file}
Ignored
Quoting yousername
Disliked
{quote} In the EA properties or setting, you have to set the value of "How many stop/limit orders per grid" bigger than 0. If you set to 0 then you will only open an opposite position trade without any stop/limit order thus no hedge. From the screenshot I shared, I accidentally set the value to 0 and maybe that caused the confusion. So here's a better screenshot. Please note that this is just for an example sake {image}
Ignored
Version 1.4 [Version 1.3 is included in the Version 1.4, got skipped. You can find ver 1.3 in page 2 tho]

Version 1.7 [What a jump!] Too many to list. I will update it later.
PLease spend some time scheme through the thread. Thanks

Got lazy updating the front page
Any how you can download latest file by following the screenshot below
Attached Image (click to enlarge)
Click to Enlarge

Name: 24.png
Size: 152 KB

Inserted Video
Attached File(s)
File Type: ex4 FLEXY GRID.ex4   48 KB | 3,171 downloads
File Type: ex4 FLEXY GRID_1.1.ex4   48 KB | 2,225 downloads
File Type: ex4 FLEXY GRID_1.2.ex4   42 KB | 2,145 downloads
File Type: ex4 FLEXY GRID_1.4.ex4   43 KB | 2,526 downloads | Uploaded Jul 11, 2017 1:14am
File Type: ex4 FLEXY GRID_1.7.ex4   70 KB | 10,867 downloads | Uploaded Jul 12, 2017 10:51am
This is not investment/trading advise. Will not hold accountable for loss
  • Post #2
  • Quote
  • Edited 1:47am Jul 10, 2017 1:25am | Edited 1:47am
  •  yousername
  • Joined Mar 2017 | Status: Working smart and hard | 2,949 Posts
#Post 1 update

Trading With Line is for Manual trading, it will execute a trade whenever the price crosses the Horizontal line object. In order to place a trade using this method, you have to edit the object name by adding _B or _S. In order to enable this feature, you have to make sure the "Use Lines" button is green, you can click it to switch back and forth (Red/green)

_B is for buy grid, _S is for sell grid.
Example Buy Grid
Horizontal Line 3951_B

Sell Grid
Horizontal Line 3951_S
This is not investment/trading advise. Will not hold accountable for loss
 
 
  • Post #3
  • Quote
  • Jul 10, 2017 1:36am Jul 10, 2017 1:36am
  •  yousername
  • Joined Mar 2017 | Status: Working smart and hard | 2,949 Posts
#Post 1 Update

Grid is the number of order in a grid. It is depend on the ability the broker's MT4 able to place order. Some broker is able to place 100 orders, some 20, some 50 etc. You can find out by testing it on a demo account or ask their support about the maximum order their MT4 can take.
Example:
If the broker allows you to place 100 Orders, then you should set the grid value to 49 or 50 grid. It will place 49 or 50 trade of Sell/Buy stop and Buy/Sell limit, total 100 order.
This is not investment/trading advise. Will not hold accountable for loss
 
 
  • Post #4
  • Quote
  • Jul 10, 2017 1:42am Jul 10, 2017 1:42am
  •  yousername
  • Joined Mar 2017 | Status: Working smart and hard | 2,949 Posts
Example of Buy Grid concept. Applicable to the Sell Grid just the opposite.

Attached Image (click to enlarge)
Click to Enlarge

Name: 3.png
Size: 19 KB


In this case the losing position is the "SELL" trade which got hedged with multiple buy orders
This is not investment/trading advise. Will not hold accountable for loss
 
2
  • Post #5
  • Quote
  • Jul 10, 2017 2:01am Jul 10, 2017 2:01am
  •  TudorIoan
  • Joined Dec 2015 | Status: Member | 13,980 Posts
Thank you so much for sharing your work
Grid trading is a very popular trading style. Lotta people had big time trading on that.
Now, please explain every feature in order to figure it out the logic and to make it easy for everyone to pick its own style
Thanks again.
Attached Image (click to enlarge)
Click to Enlarge

Name: zhart_1.jpg
Size: 183 KB
Member
 
 
  • Post #6
  • Quote
  • Edited 2:59am Jul 10, 2017 2:46am | Edited 2:59am
  •  yousername
  • Joined Mar 2017 | Status: Working smart and hard | 2,949 Posts
Quoting TudorIoan
Disliked
Thank you so much for sharing your work Grid trading is a very popular trading style. Lotta people had big time trading on that. Now, please explain every feature in order to figure it out the logic and to make it easy for everyone to pick its own style Thanks again. {image}
Ignored
Thanks for the reply mate. I appreciate it!

GridTradeManually - If it sets to true, means that you will trade manually. It can be override when you click the AUTOMATIC button in the chart.

StartAutomaticTrading - is the safety trigger. When you set gridTradeManually to false and startAutomaticTrading to true, it will trade automatically when you click the Ok button.

ExecuteTradeUsingTrendOrHorizontalLine - It will execute a trade when using the price crosses the Horizontal line. It is use when you trade manually.

backTestMode - is set to true when you want to backtest the automation feature of the EA.

Lots - Is the number of lot per position/order

GridSpace - The grid pips space between each order

maxGrid - Number of stop/limit order. If you set to 20, that mean you will have 20 stop orders and 20 limit orders

TakeProfit - Grid will be close when the profit reaches the take profit amount in term of currency

TradePerDay - This is for automatic grid trading feature. If it set to >1, then per day it will trade as much >1 closed grid. If it set to 0, it will open a grid trade unlimited per day.

startHour - For automatic, at what time do you want the EA to start trigger the trade

endHour - For automatic, at what time do you want the EA to end the grid trading.

stopTradingAfter - For automatic, it will stop trading after it opens several grid trading.
Let say you set it to 5. It will stop trading after the EA closes the 5th grid regardless how many days it takes per grid.
This is not investment/trading advise. Will not hold accountable for loss
 
2
  • Post #7
  • Quote
  • Jul 10, 2017 3:00am Jul 10, 2017 3:00am
  •  yousername
  • Joined Mar 2017 | Status: Working smart and hard | 2,949 Posts
Quoting yousername
Disliked
{quote} Thanks for the reply mate. I appreciate it! GridTradeManually - If it sets to true, means that you will trade manually. It can be override when you click the AUTOMATIC button in the chart. StartAutomaticTrading - is the safety trigger. When you set gridTradeManually to false and startAutomaticTrading to true, it will trade automatically when you click the Ok button. ExecuteTradeUsingTrendOrHorizontalLine - It will execute a trade when using the price crosses the Horizontal line. It is use when you trade manually. backTestMode -...
Ignored
Update

TakeProfit - Grid will be close when the profit reaches the take profit amount in term of currency
This is not investment/trading advise. Will not hold accountable for loss
 
 
  • Post #8
  • Quote
  • Jul 10, 2017 3:01am Jul 10, 2017 3:01am
  •  TudorIoan
  • Joined Dec 2015 | Status: Member | 13,980 Posts
Quoting yousername
Disliked
{quote} Thanks for the reply mate. I appreciate it! GridTradeManually - If it sets to true, means that you will trade manually. It can be override when you click the AUTOMATIC button in the chart. StartAutomaticTrading - is the safety trigger. When you set gridTradeManually to false and startAutomaticTrading to true, it will trade automatically when you click the Ok button. ExecuteTradeUsingTrendOrHorizontalLine - It will execute a trade when using the price crosses the Horizontal line. It is use when you trade manually. backTestMode -...
Ignored
That's what I'm talking about (you can update it in time making it more clearer and effective)
Now it's more easy, simple, clear.
Great job yousername, thx!
Grid trading can be very successful, people! (of course, you must know what you're doing, not trading blindly)
Enjoy everybody, good trading!
Member
 
1
  • Post #9
  • Quote
  • Jul 10, 2017 3:43am Jul 10, 2017 3:43am
  •  yousername
  • Joined Mar 2017 | Status: Working smart and hard | 2,949 Posts
Quoting TudorIoan
Disliked
{quote} That's what I'm talking about (you can update it in time making it more clearer and effective) Now it's more easy, simple, clear. Great job yousername, thx! Grid trading can be very successful, people! (of course, you must know what you're doing, not trading blindly) Enjoy everybody, good trading!
Ignored
Thanks mate for the question.
I was too lazy to explain it by my self until some one like you show up show some interest and ask question. Then I'll be happy to explain things and fix things if there's issue. I wish you the best with your trade and let me know if you find anything with this EA.
This is not investment/trading advise. Will not hold accountable for loss
 
1
  • Post #10
  • Quote
  • Jul 10, 2017 4:15am Jul 10, 2017 4:15am
  •  TraderTero
  • Joined Apr 2017 | Status: Member | 1,247 Posts
It seems to be working only with 0.01 lots. Changing Lots to for example 0.1 returns an order send error.
 
 
  • Post #11
  • Quote
  • Jul 10, 2017 4:18am Jul 10, 2017 4:18am
  •  suneth2
  • Joined Sep 2015 | Status: Learning Price Action & Discipline | 325 Posts
With your manual trading experience can you suggest a good values for GridSpace, maxGrid for EURO USD please, back testing shows good results
Failure is not failure if you learn from it...
 
 
  • Post #12
  • Quote
  • Jul 10, 2017 4:34am Jul 10, 2017 4:34am
  •  yousername
  • Joined Mar 2017 | Status: Working smart and hard | 2,949 Posts
Quoting suneth2
Disliked
With your manual trading experience can you suggest a good values for GridSpace, maxGrid for EURO USD please, back testing shows good results
Ignored
Thanks for the question and using the EA!
Personally I like to use as maximum maxGrid as I can and as tight GridSpace as the broker can.
So it depends on the broker.
If the broker allows you to place 1000 orders, then i'd love to place total of 1000 orders in a grid.

It is best to use this EA on a single pair. Try not to use it on multiple pair because there could be issue with order placement. For instance when the order has been used on one pair. And the other pair wanted to place a grid order, it will have difficulty because there's no space left to place an order. I hope you can understand what I mean.

For the gridSpace, I usually set to 5 pips.
If I set lower than that, usually there's order issue in the center of the grid because the first stop/limit order is too close to the current price. You can try see it for your self on your demo account and set the EA to manual trading. You will see a missing limit/stop order when you set the gridSpace too low/small.
This is not investment/trading advise. Will not hold accountable for loss
 
 
  • Post #13
  • Quote
  • Edited 5:10am Jul 10, 2017 4:37am | Edited 5:10am
  •  yousername
  • Joined Mar 2017 | Status: Working smart and hard | 2,949 Posts
Warning: There's no stop loss in this Grid Trading. However you can close the grid by clicking the "Close grid" button when you set the trading mode to Manual trading.
This is not investment/trading advise. Will not hold accountable for loss
 
 
  • Post #14
  • Quote
  • Jul 10, 2017 9:08am Jul 10, 2017 9:08am
  •  Lopuch
  • | Joined Aug 2006 | Status: Member | 155 Posts
Quoting yousername
Disliked
Warning: There's no stop loss in this Grid Trading. However you can close the grid by clicking the "Close grid" button when you set the trading mode to Manual trading.
Ignored
Warning num.2 - when you click Close grid button, EA close ALL OPENED ORDERS IN MT - not only orders opened via this EA - there is error with magic Nr?
 
2
  • Post #15
  • Quote
  • Jul 10, 2017 9:43am Jul 10, 2017 9:43am
  •  yousername
  • Joined Mar 2017 | Status: Working smart and hard | 2,949 Posts
Quoting Lopuch
Disliked
{quote} Warning num.2 - when you click Close grid button, EA close ALL OPENED ORDERS IN MT - not only orders opened via this EA - there is error with magic Nr?
Ignored
Thanks Lopuch for that. When I test this, I didn't put another pair order into the test.
I'll fix it ASAP
This is not investment/trading advise. Will not hold accountable for loss
 
 
  • Post #16
  • Quote
  • Edited 10:15am Jul 10, 2017 9:46am | Edited 10:15am
  •  yousername
  • Joined Mar 2017 | Status: Working smart and hard | 2,949 Posts
Quoting yousername
Disliked
{quote} Thanks Lopuch for that. When I test this, I didn't put another pair order into the test. I'll fix it ASAP
Ignored
That was embarassing. I missed the magic number check.

OrderSelect(x, SELECT_BY_POS);
if(OrderSymbol()==Symbol() && OrderType()==OP_BUY && closeBuy &&OrderMagicNumber()==MagicNumber)
OrderClose( OrderTicket(), OrderLots(), MarketInfo(OrderSymbol(), MODE_ASK), Slippage, Red );
else if(OrderSymbol()==Symbol() && OrderType()==OP_SELL && closeSell &&OrderMagicNumber()==MagicNumber)
OrderClose( OrderTicket(), OrderLots(), MarketInfo(OrderSymbol(), MODE_BID), Slippage, Red );

I'm testing it on my end.
This is not investment/trading advise. Will not hold accountable for loss
 
 
  • Post #17
  • Quote
  • Jul 10, 2017 9:59am Jul 10, 2017 9:59am
  •  yousername
  • Joined Mar 2017 | Status: Working smart and hard | 2,949 Posts
Quoting Lopuch
Disliked
{quote} Warning num.2 - when you click Close grid button, EA close ALL OPENED ORDERS IN MT - not only orders opened via this EA - there is error with magic Nr?
Ignored
Thank you for letting me know the issue.
I apologize for the inconvenience.

New EA fix

Attachment 2390572
Attached File(s)
File Type: ex4 FLEXY GRID_1.1.ex4   48 KB | 1,744 downloads
This is not investment/trading advise. Will not hold accountable for loss
 
1
  • Post #18
  • Quote
  • Jul 10, 2017 10:04am Jul 10, 2017 10:04am
  •  yousername
  • Joined Mar 2017 | Status: Working smart and hard | 2,949 Posts
Warning 3: When you change time frame, it deletes all objects that isn't related to Flexy Grid

A new version will come soon. But I don't think this is urgent. So I'm gonna finish this tomorrow
This is not investment/trading advise. Will not hold accountable for loss
 
 
  • Post #19
  • Quote
  • Jul 10, 2017 10:11am Jul 10, 2017 10:11am
  •  yousername
  • Joined Mar 2017 | Status: Working smart and hard | 2,949 Posts
If you ask me, why don't I set stop loss or margin stop on this EA is because I never use stop loss and I know when to quit the market.

But if you want to have such feature, please let me know how you want to end the grid when you're in a winning and losing position. Then I will decide which idea is possible to be implemented or can be implemented in few hours.
This is not investment/trading advise. Will not hold accountable for loss
 
 
  • Post #20
  • Quote
  • Jul 10, 2017 10:40am Jul 10, 2017 10:40am
  •  fxwealth
  • | Joined May 2007 | Status: Member | 72 Posts
Hi yousername, Many thanks for making your EA available. Would it be possible for you to make it trade any lot size. I would prefer trading at 0.1 lots. I am fully aware of the risks of Grid Traders but I believe with sufficient capital 0.1 lots can be traded successfully. Thank you and Best rgds
 
 
  • Trading Systems
  • /
  • Flexy Grid EA (Grid Trading)
  • Reply to Thread
    • Page 1 23456 67
    • Page 1 234 67
0 traders viewing now
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023