+- +-

+-User

Welcome, Guest.
Please login or register.
 
 
 

Login with your social network

Forgot your password?

+-Stats ezBlock

Members
Total Members: 12
Latest: side_job
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 3624
Total Topics: 1
Most Online Today: 3
Most Online Ever: 36
(July 03, 2021, 10:52:48 am)
Users Online
Members: 0
Guests: 1
Total: 1

Author Topic: TA Forex Trading  (Read 16174 times)

Pennies2007

  • Administrator
  • Hero Member
  • *****
  • Posts: 2006
    • View Profile
Re: TA Forex Trading
« Reply #3240 on: July 15, 2017, 07:35:28 pm »
Pennies how would you setup your stoploss-say using a audusd chart--using the MA SHADE

If you're using the recommended 15 minute time frame Jav, a 15 to 20 pip stop loss is plenty. Any more than that and it's just a waste of money since we're trading it manually.

An automated system would require a larger stop loss though. I've actually been working last night and today on an EA based on the general principals of the MA shade trading system but it's difficult to say the least. I can see the trade setup easily but teaching the stupid computer to recognize a setup is proving to be quite a job.,,LOL!

For higher time frames on the MA shade setup, you'll have to adjust stop losses accordingly although none of them have to be very large relative to the time frame you're trading compared to the win rate and what you make on the winning trades.

Pennies2007

  • Administrator
  • Hero Member
  • *****
  • Posts: 2006
    • View Profile
Re: TA Forex Trading
« Reply #3241 on: July 15, 2017, 09:30:15 pm »
EA is coming along slowly but surely. I've settled on using AU as the backtest pair. I'm running it all the way back 10 years. I'm still using conservative trading levels for now.

First backtest only showed a 40% gain over 10 years. After working with the code some more, I've got the gains up to about 190% with the same 10 year backtest.

The idea is to get the EA streamlined with a large data group as opposed to just a month or two. The larger the dataset, the less room there is for error.

Here's the pics of the 1st test vs. the revised test for AU.

The EA runs using a 5 minute timeframe.


javalin

  • Sr. Member
  • ****
  • Posts: 320
    • View Profile
Re: TA Forex Trading
« Reply #3242 on: July 15, 2017, 11:41:29 pm »
Pennies now you're talking Greek to me lol
on your backtest charts

Pennies2007

  • Administrator
  • Hero Member
  • *****
  • Posts: 2006
    • View Profile
Re: TA Forex Trading
« Reply #3243 on: July 16, 2017, 08:35:30 am »
Pennies now you're talking Greek to me lol
on your backtest charts

LOL! Sorry Jav, didn't mean to throw you. Basically, what the backtest does is go back in time however many days, months, or years you choose and it runs the trading robot against historical data to see how it would have done already. The longer the period of time you backtest it, the more accurate it is in telling you how your trading robot does against changing market conditions over time.

So if I tell the backtester to test 1 day of trading data, that's not much of a test. A week is better because you get more data to work with. And we go from there.

So what I did was I downloaded all of the data for AU as far back as I could go and I set the backtester to use 10 years worth of data. Basically, I wanted to see how my EA would have traded for the past 10 years. The results are what I posted. The first chart was my first attempt and, after several revisions, I increased the profits over 10 years from 40% to almost 200% for the same pair during the same time frame.

Hope that helps. The backtester can be really good to help weed out things but it's important to also realize that the data has to be accurate in order for it to do it's job correctly. Believe it or not, the backtester can use data that's not accurate so it's critical to always go back and let MT4 download all of the historical data for a particular pair before backtesting that pair in the simulator.

Pennies2007

  • Administrator
  • Hero Member
  • *****
  • Posts: 2006
    • View Profile
Re: TA Forex Trading
« Reply #3244 on: July 16, 2017, 07:04:28 pm »
EA Demo Account Tracking with Actual Trades

Ok gang, I created a new demo MT4 account to forward test this EA. I had to "creatively" borrow some other EA's along with my own code and set this up. However, it is only designed to run on a daily chart...no scalpers...sorry about that. I'm still working on that one so we can trade lower time frames.

I'm providing the link here for the demo account. I didn't realize it, but for some stupid reason, the demo MT4 accounts always set up with a million bucks starting balance no matter what you tell it you want...dumb...I don't know anyone who has a million bucks to throw around. I told it to use a thousand bucks and then it added 999,999 more. I tried it 3 times and it did the same thing no matter what I selected.

Oh well...it's about percentages anyway, not dollars.

So, I have 5 pairs running...AU, EU, NU, GU, and UJ...the big five. The rest don't matter. The EA has automatic money management so as it makes profit, it automatically adjusts trade entries...basically, it's all hands free.

The EA balances out the losses with the wins by taking additional trades at key points along the way. Rather than the Shade setup, I had to settle for a breakout strategy instead. Seems to work very well. The EA just doesn't lose money as long as you trade the daily account and it compounds the gains. Typical drawdown is around 5 or 6 percent max and its got a win rate of 90% or higher.

So here's the link. If it runs well over the next month or two, I'll go to a live account with it and turn it loose.

https://www.myfxbook.com/members/nettechs/breakout/2184811
« Last Edit: July 16, 2017, 07:17:00 pm by Pennies2007 »

quanticopious15

  • Sr. Member
  • ****
  • Posts: 303
    • View Profile
Re: TA Forex Trading
« Reply #3245 on: July 17, 2017, 09:46:41 am »
Pennies......just checking in here at the start of the new work week.     Read over the last four days worth of posts.     I noticed this morning that my 11 week old eur/aud short has finally brought price back to within a buck of my short entry.    I had forgotten all about it.    Not sure whether to continue to hold or close it out at a loss.    It was tucked in amongst all my USD/DKK longs.   

Regarding your EA, have you backtested this latest EA with it's 5 pairs against a decade worth of data yet?    If so, what were the percentage gains over the 10 years?    You were at almost 200 percent with your prior EA.     And I'm curious how you established an entry trigger as well as an exit trigger for your daily EA. 

quanticopious15

  • Sr. Member
  • ****
  • Posts: 303
    • View Profile
Re: TA Forex Trading
« Reply #3246 on: July 17, 2017, 09:58:11 am »
My thoughts pennies........it seems to me that with all the possible "if, and, then" possibilities that could be written into an EA program, it seems to me that running the program on a few different pairs can help catch profits on let's say the 5 minute chart when any one pair is in a long tight price range consolidation, while one or more of the other pairs might not be.    So you could be profiting on one pair while the program waits out price action change on the other consolidating pair.

Also, one would have to write trade triggers accommodating prior price action zones on any time frame including let's again say the 5 minute chart.     I have a real problem with taking losses, but if prior price action zones were accommodated in the software programming on the 5 minute chart, then I can see where the breakouts versus stop losses would still carry great profits in the long and short run.      I'm just at a loss as to how you could get the computer to recognize the actual and accurate historical price actions zones.
« Last Edit: July 17, 2017, 10:04:21 am by quanticopious15 »

quanticopious15

  • Sr. Member
  • ****
  • Posts: 303
    • View Profile
Re: TA Forex Trading
« Reply #3247 on: July 17, 2017, 12:23:00 pm »
I guess I should mention that when I refer to price action zones, I'm referring to immediately prior, as well as previous zones that can be considered "fresh" zones.     And with a 5 minute time frame for the EA which I would think would be fine for applying a "breakout" method to, I think there could be greater gains in the long term than with the daily as long as the number of wins during any given week is 3% or better average over the total percentage of losing trades.

Another thing that I would want to write into my EA is the rule that upon entry two separate trades are made with one closing out after just 30 to 50 pips while letting the other trade run until some other technical point was reached.   

I should mention that I just don't see how a "scalping" EA is a good idea.    Depending on what your definition of scalping is, that is.    Even the 1 minute charts will go on for hours without enough pullback to provide even a 10 pip scalp at times.    And speaking to the 1 minute chart on an EA, it appears to me that a highly profitable 1 minute EA would be based on 1) breakout consideration as well as 2) prior price action zones AND finally 3) the ema tunnel.     Don't roll your eyes yet pennies.    I know that price doesn't reverse on any technical mark including the ema tunnel, but both the 62 and 400 ema lines on the 1 minute chart are powerful lines.    If you could

Of course gaps have to be considered and I'm not sure how you would deal with a gap in the direction against your trade, and I see that as the biggest threat to long term gains on the 1 minute or 5 minute EA but maybe it would still be worthwhile writing and backtesting the 1 or 5 minute EA.

Ok, what do you all think?   

Pennies2007

  • Administrator
  • Hero Member
  • *****
  • Posts: 2006
    • View Profile
Re: TA Forex Trading
« Reply #3248 on: July 17, 2017, 07:53:11 pm »
Hey Qui, just checking back in. I did backtest the EA against all the 5 majors for the past 10 years and they all made money. Of course, you have to remember 2 things...

1. The EA is designed to run on a daily chart. It looks for 100 pips of profit per trade and the money management portion of the EA adjusts for any losses by taking additional trades after 1 trade closes so the effective loss is basically nothing. The largest drawdown on the majors after 10 years backtesting is only 5% to 6% per pair.

2. The EA is extremely conservative, taking only 2% of risk per trade. The money management potion of the EA automatically increases your trade size as profit accumulates in the account.

The pairs had different levels of profit over the 10 year backtest, which is of course to be expected. Most of them showed anywhere from 150% to 200% total profit over 10 years for each pair.

Now, that works out to 15% to 20% per year average gains per pair. So if you're trading one account with the 5 major pairs, you can basically expect to double the account each year, more or less.

That's at the extremely conservative level of only 2%. If you increase the risk, you increase the gains but of course, you can experience more drawdown in the account, which means you can't trade as many pairs.

Trying to set up an EA to trade on a small time frame is, as I experienced, extremely difficult. There's too much variation in the way the chart can move. MA's cross and recross constantly as price action swings wildly back and forth over the MA's. Plus, when you're trading small time frames, you have to have smaller TP levels and smaller stop losses to be effective. Eventually, you get to a point where you're dealing with TP levels and stop losses that are only2 or 3 pips, which is pretty much the spread in most of the pairs we trade. So you start getting stopped out almost immediately when the trade triggers simply because of the spread.

Overall, I've found that the smaller time frames are just too risky to let a robot trade. It takes far too many losses for my comfort. I'll still play around with it but unless I can come up with an EA that gives me at least 90% accuracy with less than 10% drawdown over a 10 year period, I'm not gonna unleash it.

It's easy for us to look at a chart and say "this trade was obvious" for this reason or that reason. But trying to teach the robot to look at all the things that we take in when we look at a chart is like trying to get an artificial intelligence program to understand what a chair is.

Think about how you would teach a computer what a chair is. You might something like "Well, it's something you sit on." But that doesn't work well. You can also sit on a table or on the floor or on a couch or what have you.

So you might start adding conditions...things like, "It's something you sit on and it has 4 legs". Ok, that sounds good...until the software tries to figure out what a 3-legged stool is because it doesn't fit the rules.

A 2 year old child can figure out what a chair is because the human brain is a rather complex feat of engineering. But the computer and any software you attempt to create to interpret anything, is faced with the stumbling block of having to have every single step and every single possibility programmed in because it can't think on it's own.

Such is the ultimate problem with creating EA robots...most all of them fail miserably because they can't think on their own.




kermit42

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 274
    • View Profile
Re: TA Forex Trading
« Reply #3249 on: July 17, 2017, 08:27:07 pm »
North America is really not doing well right now. USD and CAD both disappointing me in their own ways.

EURNZD is performing nicely on bad Kiwi news, though.

Heavyweight

  • Hero Member
  • *****
  • Posts: 564
    • View Profile
Re: TA Forex Trading
« Reply #3250 on: July 17, 2017, 08:38:55 pm »
A short is in order for CAD/JPY.....IMO of course

kermit42

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 274
    • View Profile
Re: TA Forex Trading
« Reply #3251 on: July 17, 2017, 08:51:14 pm »
It went up 900 pips without a meaningful pullback, but I expected it to go a little further. To about 90.50. It may still, but from the looks of it, that is not its next move.

Heavyweight

  • Hero Member
  • *****
  • Posts: 564
    • View Profile
Re: TA Forex Trading
« Reply #3252 on: July 17, 2017, 08:56:02 pm »
It went up 900 pips without a meaningful pullback, but I expected it to go a little further. To about 90.50. It may still, but from the looks of it, that is not its next move.

May be right kermit. I wont ride it to 90 though. Like the AU short I'm still holding. And those that doubted the EU long pairs....behold!!!!

Heavyweight

  • Hero Member
  • *****
  • Posts: 564
    • View Profile
Re: TA Forex Trading
« Reply #3253 on: July 17, 2017, 09:00:56 pm »
AU 8000?....I'm out

quanticopious15

  • Sr. Member
  • ****
  • Posts: 303
    • View Profile
Re: TA Forex Trading
« Reply #3254 on: July 17, 2017, 09:42:16 pm »
Hey pennies..........I've spent a fair amount of the day watching "Mql4 Lessons" by "Jimdandy1958" on youtube to try to see if I can't put some of my ideas in an EA together at some point in the future.     I don't know C++ but the guys vids are helping to get a feel for the language and flow of the EA script.    He's put together over 150 vids relative to forex and EA programming.    He has one, and I've seen a couple from other people in searches regarding EMA trade based EAs, so I'm hopeful I can include the EMA tunnel as one of my trade variables in an EA.   

I do get what your saying about the inability to program the computer to think as a human thinks.   That's why I'm not sure the price action aspect of our method of trading can be applied to an EA.   Maybe there's some way to write in a formula that will work but I know this is going to take a while.    It's interesting though so I'm going to continue in my trek whether it ever pays off or not; a bit of a new hobby I guess.

Referring to the "drawdown" you mentioned in your last post, I would be more than happy to bump up the risk while reducing the number of pairs traded as long as the gains on trading only one or two pairs can be found to consistently deliver 5% or better profit per week.      Oh and your struggle to make the 5 minute chart pay off in the long run due to all the ema crosses and gaps etc., doesn't surprise me.     A 5 minute scalping EA just may not be realistic in the end.     If it is possible, I think applying the EMA tunnel to the trade variables will be the answer if it's even possible to do so.     
« Last Edit: July 17, 2017, 09:44:37 pm by quanticopious15 »

 

+-Recent Topics

TA Forex Trading by Heavyweight
September 30, 2018, 11:48:51 pm