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

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Demo Forex VS Real Forex 247 replies

Forex Trading: Incorporating Price Behavior into a Forex Trading System 4 replies

Forex Training: What to Look for in a Forex Training Program 1 reply

Stocks vs Forex - Is everyone suited for forex? 18 replies

Forex needs a "Forex Borg" 2 replies

  • Trading Systems
  • /
  • Reply to Thread
  • Subscribe
  • 10
Attachments: Gurumarra Forex
Exit Attachments

Gurumarra Forex

  • Last Post
  •  
  • Page 1 23 4
  • Page 1 23 4
  •  
  • Post #1
  • Quote
  • First Post: Edited Jul 14, 2019 11:46pm May 14, 2019 3:33am | Edited Jul 14, 2019 11:46pm
  •  bryanjaldgm
  • | Joined Jun 2018 | Status: Member | 53 Posts
No longer available - so long and thanks for all the fish.
All that your hand finds to do, do with your very power...
  • Post #2
  • Quote
  • Edited at 5:07am May 14, 2019 4:57am | Edited at 5:07am
  •  bryanjaldgm
  • | Joined Jun 2018 | Status: Member | 53 Posts
As I said in the first post the code is scrappy so there are some inconsistencies in the way the parameter values are configured.

Buy Target/Sell Target
These were originally developed as a single value but I soon realised that the ability to set them separately provided a more "fine-tuned" approach. This parameter has a value between 0 and 1. This is a percentage of the account balance so an example: if you have a $1000 balance and enter 0.10 then the target profit is 10% of your account balance or $100. A value of 1 means you are looking for a 100% ($1000) profit as your target.

Risk %
This is the % of your account free margin you are willing to risk. Depending on the pair i have found values between 2% and 7% are the maximum - above that the DD (draw down) quickly increases to very large levels.

Max Lots
The maximum lot size you are prepared to run at - my broker has a limit of 20 lots but others may have smaller or greater lot size limits

Auto Close
True - the EA will automatically close trades if the exit conditions are met - recommended
False - the EA will send a message to your email and MT4 that a close condition has been met but will NOT close the position

Magic
Should be self explanatory

Max Orders
The maximum number of active orders for this magic number (I recommend leaving at 1)

RSIOMA Min/Max
The minimum and maximum values that the RSIOMA indicator must be before a trade will be triggered. This has to be tested and set for each pair, for each timeframe and each broker the EA is running on. This may need adjustment over time as the market changes so be prepared to conduct confirmation testing on a monthly basis.

Expire in Mins
As noted the EA places Limit orders as a straddle on the trigger bar. This parameter sets the number of minutes after which the orders will expire.

Smoothing Factor
This is the smoothing factor for the OsMA - generally a value of 6 periods seems to work but this too needs to be tested for each pair/tf

Maximum DD (drawdown)
This is the control for catastrophic SL (stop loss). In testing and selecting the best performing pairs I set this to a value of 0.6 (60%). The code will close an order if the DD goes above this value. You should set this based on your intestinal fortitude but lower values lead to a lot of stop outs.

Close After / Close Negative
These parameters work together to control the amount of time that a position will be negative before a theoretical SL will close the position. So for example if you set these as 1 / 0.01 the EA will close the position if (a) the position is more than 1 hour old; AND (b) the maximum loss is less than 1% of the account balance. Play with these to see what works best. In my initial testing I always set the time to 999999 and leave the % at 0.01 meaning it will never trigger. I only tune this after other basic parms (Risk, RSIOMA) have been set.

New Code Activated
This is for testing new code so that I can determine the impact. Once happy that the new code is OK and embedded in the EA this can be turned off - for the coders out there this can be useful. For this first version leave it as "true" as I have not yet performed the clean-up and the code is running OK.

STDDEV Multi
This is essentially experimental - I found that often the OsMA would indicate an exit well away from a better profit. By calculating a standard deviation I have improved the profitability by setting this parameter such that if the profit was 'x' standard deviations away from the median then the EA would close the position and capture the profit - a better way might be to close part of the position (say 50%) at this point and leave the rest on the table. Any suggestions here very welcome.

Fixed TP
This is another "experimental" parameter and I may remove it at some stage. Basically it says that if the profit has reached this value as a % of the account then take a profit no matter what the other profit setting parameters are set at. On the face of it this would seem to be interfering with the other parameter settings yet I have found that it seems to improve profitability. Another parameter that needs to be tested.

Speed
This is strictly for controlling the visual back test speed (thanks Jim Dandy)

Lot Control
The lot size algorithm calculates the order size based on margin, risk and cost. This permits the user to further fine-tune the lot size (and ultimately the DD and profit) by reducing (or I suppose increasing) it by multiplying the base lot size by this value - so for example say the algo calculates a lot size of 2 and this parm is set to 0.9 then the actual order size will be 1.8 lots.

That's it for the parms so please find attached the code and the required indicators - over to you .....
Attached Files
File Type: mq4 Gurumarra Forex V1.mq4   16 KB | 433 downloads
File Type: ex4 MACD_Platinum.ex4   20 KB | 451 downloads
File Type: ex4 OsMA.ex4   11 KB | 383 downloads
File Type: ex4 QMP Filter.ex4   17 KB | 447 downloads
File Type: ex4 QQE ADV.ex4   4 KB | 419 downloads
File Type: ex4 RSIOMA.ex4   7 KB | 423 downloads
All that your hand finds to do, do with your very power...
  • Post #3
  • Quote
  • May 14, 2019 5:57am May 14, 2019 5:57am
  •  jonirrenicus
  • Joined Jun 2010 | Status: Member | 1,136 Posts
read all posts...and tested ea...

1 buy stop 1 sell stop , only close the winning trade and if lose happens exit trades at breakeven.

the basic theroy maybe wrong...

solution:

1 before blew up, make money as much as possible.

2 trading multiple pairs EX.
buy on EU is in -50 pips, the next trade is on UJ will be doubled on size. if we still get -50 pips, then the next trade on next pair should be doubled............exit untill we get some profit.
No one wants to be defeated~
  • Post #4
  • Quote
  • May 14, 2019 6:04am May 14, 2019 6:04am
  •  jonirrenicus
  • Joined Jun 2010 | Status: Member | 1,136 Posts
no offence dude only talking about the ea, 7 years i have been looking for a long trem profitable ea...

very few of them are profitable, some of them have SL, the others will start hedging to cover the loss.
No one wants to be defeated~
  • Post #5
  • Quote
  • Edited at 9:00pm May 14, 2019 6:27am | Edited at 9:00pm
  •  bryanjaldgm
  • | Joined Jun 2018 | Status: Member | 53 Posts
Quoting jonirrenicus
Disliked
no offence dude only talking about the ea, 7 years i have been looking for a long trem profitable ea... very few of them are profitable, some of them have SL, the others will start hedging to cover the loss.
Ignored
No offence taken. Glad someone has tried it out. I have found that results vary so here's the approach I take to testing...
Test 1 - set the parameters as per the attached - the first thing is to find the best settings for the RSIOMA - so set all other values as shown and then backtest just those values.
Test 2 - having set the RSIOMA test for the best risk setting
Test 3 - after setting RSIOMA and risk test for Standard Dev
Test 4 - now test lot_control
Test 5 - now try different combinations for the Buy and Sell targets - does a fixed TP % return better results?

Now do this for every pair you want to try against and select the best - I have found on the 30m chart the best pairs for me (and my broker) are in descending order:
USDCHF
AUDNZD
EURCAD
NZDUSD
EURNZD
USDCAD
CADCHF
GBPUSD

On the H4 chart:
EURCAD
AUDJPY
AUDUSD
AUDCAD
USDCHF
EURCHF
USDCAD

BUT BUT BUT - results may vary depending on your broker settings for things like MIN_LOT, LOT_STEP, and LEVERAGE

Do lots of testing!!!

Update - I use Tick Data Suite and my testing period is currently from Dec 1, 2015 to Apr 30, 2019 which gives plenty of trades. On June 1 I will roll my test period forward by 1 month and test again to confirm that my results remain within my expectations - e.g. profit and drawdown are within just a couple of % of my previous results.

Update - I noticed an error in the settings I loaded for initial backtest and have corrected the attached .jpg
Attached Image
All that your hand finds to do, do with your very power...
  • Post #6
  • Quote
  • May 15, 2019 9:06pm May 15, 2019 9:06pm
  •  bryanjaldgm
  • | Joined Jun 2018 | Status: Member | 53 Posts
A few downloads but only 1 comment - updates (even just to tell me you are testing or you hate it) would be very welcome. Especially any ideas for other indicators that might improve the entry/exit or reduce the DD.

I'm going to work on the next version - goal is to incorporate a partial close of the position when the profit is greater than STDDEV and set a profitable (hidden) stop loss for the rest of the order. Hopefully this will increase profitability.
All that your hand finds to do, do with your very power...
1
  • Post #7
  • Quote
  • May 16, 2019 3:50pm May 16, 2019 3:50pm
  •  bryanjaldgm
  • | Joined Jun 2018 | Status: Member | 53 Posts
I've tried partial close with the OrderClose function but this does not work with my broker. Reading through the forums indicates the only effective way to do this is to open multiple orders and then close the positions gradually. I'm not sure how to do that last part (gradual closing of the positions) specifically so will keep investigating. If anyone has a function or idea about this please share.
All that your hand finds to do, do with your very power...
  • Post #8
  • Quote
  • May 17, 2019 8:36am May 17, 2019 8:36am
  •  bryanjaldgm
  • | Joined Jun 2018 | Status: Member | 53 Posts
I'm thinking to close this down since no-one actually seems to want to contribute. Guess I was wrong about posting something here...
All that your hand finds to do, do with your very power...
  • Post #9
  • Quote
  • May 17, 2019 10:28am May 17, 2019 10:28am
  •  mikeh3855
  • | Joined Mar 2006 | Status: Member | 193 Posts
Hold on buddy. I'm downloading and will try some tests today. I'll follow that sequence you posted.

Thank you for sharing.
  • Post #10
  • Quote
  • May 17, 2019 11:00am May 17, 2019 11:00am
  •  mikeh3855
  • | Joined Mar 2006 | Status: Member | 193 Posts
Yes and regarding a partial close during operations, for American traders FIFO rules apply. So I believe multiple orders would have to be made and then closed on a First In First Out basis.
  • Post #11
  • Quote
  • May 17, 2019 3:35pm May 17, 2019 3:35pm
  •  PipBros
  • | Joined Jul 2018 | Status: Member | 89 Posts
Hi Bryanjaldgm

Thanks for sharing your hard work. Funny enough I was checking out some of Jim's stuff earlier and just so happened to come across this thread 2 hours later.

Is your entries exactly the same except for the added filter?

Are you hedging yourself out of losses?
  • Post #12
  • Quote
  • May 17, 2019 3:43pm May 17, 2019 3:43pm
  •  PipBros
  • | Joined Jul 2018 | Status: Member | 89 Posts
I'll be doing some testing next week
  • Post #13
  • Quote
  • May 17, 2019 5:00pm May 17, 2019 5:00pm
  •  danielhsc
  • | Joined May 2018 | Status: Member | 13 Posts
Can you post a backtest with fixed lot sizes?
  • Post #14
  • Quote
  • May 17, 2019 5:25pm May 17, 2019 5:25pm
  •  mankindeg
  • | Joined Mar 2015 | Status: Member | 143 Posts
If I try to backtest it, it tells me that there is an "array out of range".
  • Post #15
  • Quote
  • May 18, 2019 6:39am May 18, 2019 6:39am
  •  bryanjaldgm
  • | Joined Jun 2018 | Status: Member | 53 Posts
Quoting mikeh3855
Disliked
Yes and regarding a partial close during operations, for American traders FIFO rules apply. So I believe multiple orders would have to be made and then closed on a First In First Out basis.
Ignored
Hi Mike - yes I understand that. That may be an issue for US traders but in the "free" world there may be a solution. Still working on it...
All that your hand finds to do, do with your very power...
  • Post #16
  • Quote
  • May 18, 2019 6:45am May 18, 2019 6:45am
  •  bryanjaldgm
  • | Joined Jun 2018 | Status: Member | 53 Posts
Quoting PipBros
Disliked
Hi Bryanjaldgm Thanks for sharing your hard work. Funny enough I was checking out some of Jim's stuff earlier and just so happened to come across this thread 2 hours later. Is your entries exactly the same except for the added filter? Are you hedging yourself out of losses?
Ignored
Hi PipBros. Re Jim's entries - yes he uses the QMP Filter, QQE Advisor and MACD Platinum to signal a trade - he then has to weigh up his decision to trade or not based on his experience. I'm using the RSIOMA as a filter rather than Moving Averages which Jim also uses.

No I am not hedging. The trades are straight forward but the DD can be very deep (60% of account) and so without confidence in the price coming back you may have a few sleepless nights. This is why I have the Maximum DD as a parameter - it is up to the trader to determine how deep they are prepared to go before taking a loss. I hate using a SL as I have seen too many times where the stop was taken and then price moved back. There is a thread here (frequented by @Robots4me and @GeorgeAUS) which discusses the presence of a market maker who manipulates the prices to target heavy SL areas.
All that your hand finds to do, do with your very power...
  • Post #17
  • Quote
  • May 18, 2019 6:50am May 18, 2019 6:50am
  •  bryanjaldgm
  • | Joined Jun 2018 | Status: Member | 53 Posts
Quoting danielhsc
Disliked
Can you post a backtest with fixed lot sizes?
Ignored
I have done some testing with fixed lot sizes - only at 0.01 as the algorithm is built to re-invest the profits. You could however set a maximum lot size of say 2 lots and once the account gets large enough to hold that it will continue to trade at that lot size. Over time that has the interesting effect of reducing the DD % (not the $) as the DD % is a function of the account size. I'm currently testing another version so can't oblige just at the moment but will write myself a note to do so when that is finished.
My testing has found that fixed lot sizing definitely reduces the profitability.
All that your hand finds to do, do with your very power...
  • Post #18
  • Quote
  • May 18, 2019 6:52am May 18, 2019 6:52am
  •  bryanjaldgm
  • | Joined Jun 2018 | Status: Member | 53 Posts
Quoting mankindeg
Disliked
If I try to backtest it, it tells me that there is an "array out of range".
Ignored
Hi - can you post your test parms and the pair/chart you are testing and I will check what is happening.
All that your hand finds to do, do with your very power...
  • Post #19
  • Quote
  • May 18, 2019 7:15am May 18, 2019 7:15am
  •  PipBros
  • | Joined Jul 2018 | Status: Member | 89 Posts
Quoting bryanjaldgm
Disliked
{quote} Hi PipBros. Re Jim's entries - yes he uses the QMP Filter, QQE Advisor and MACD Platinum to signal a trade - he then has to weigh up his decision to trade or not based on his experience. I'm using the RSIOMA as a filter rather than Moving Averages which Jim also uses. No I am not hedging. The trades are straight forward but the DD can be very deep (60% of account) and so without confidence in the price coming back you may have a few sleepless nights. This is why I have the Maximum DD as a parameter - it is up to the trader to determine how...
Ignored
So what happens if price never returns?
  • Post #20
  • Quote
  • May 18, 2019 7:23am May 18, 2019 7:23am
  •  bryanjaldgm
  • | Joined Jun 2018 | Status: Member | 53 Posts
Quoting PipBros
Disliked
{quote} So what happens if price never returns?
Ignored
You would grow a pair and manage the trade as you would any other - look for the times when the price moves in your direction and take as small a loss as you believe you can stomach.

That is why I look for results where the EA does not have any losses at all over a 42+ month period - that confirms for me that the strategy is right. I have had to sit on a loss for 3 months before the price returned and took a profit - but it did come back and I did get a profit.

At the end of the day all trading is a risk - if you can't afford the loss then don't trade or run with tight parameters that will make you comfortable with the DD - you are still in charge at the end of the day and price diving forever could happen with any EA or trading strategy.

There is no holy grail and I do not claim that this is.
All that your hand finds to do, do with your very power...
  • Trading Systems
  • /
  • Gurumarra Forex
  • Reply to Thread
    • Page 1 23 4
    • Page 1 23 4
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 / ©2021