+- +-

+-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: 4
Total: 4

Author Topic: TA Forex Trading  (Read 16100 times)

Pennies2007

  • Administrator
  • Hero Member
  • *****
  • Posts: 2006
    • View Profile
Re: TA Forex Trading
« Reply #3480 on: July 28, 2017, 07:58:29 pm »
Thanks for the enlightenment on "extern" pennies.    I get it now thanks to your simple reply.   

In regard to "onTick" versus "expert Start", I knew that onTick began to run upon receipt of the first tick of data from the broker but isn't it the same for the expert Start function?    Aren't they both functions which begin top/down operation of the command statements?

I'll play around with the "forexeadvisor.com" site.    It may help.

And I may have to give up on the ema crossover EA plan in time, but I still want to see if it won't increase my gains by adding other variables in time.

The primary difference between the 2 commands is that the "Expert Start" starts the EA immediately and the "OnTick" command waits for 1 tick of data to come in before starting the EA...so there's really not much difference between the two, other than that one starts immediately and the other waits for 1 tick to show up before kicking in.

Originally, the OnTick function wasn't available. It was added after Build 600 in MT4 (see excerpt below).

By the way, I wouldn't recommend MT5. The more I read up on it, the more I realize there are substantial problems with it. For example, MT5 requires re-writing a ton of code with different commands. It actually had a pretty low adoption rate compared to the MT4 crowd and the code rewrites are a large part of that problem.

Here's an excerpt straight from the MT4 Help file...

init(), deinit() and start() predefined functions have remained for compatibility, however, OnInit(), OnDeinit(), OnStart(), OnCalculate() and OnTick() ones can now be used instead. Besides, new predefined OnTimer(), OnChartEvent() and OnTester() handler functions have been implemented. In the previous MQL4, predefined functions could have any parameters and any return type, and they could be called by their names, not signatures. In the new MQL4, all predefined functions should strictly correspond to their signatures. In other words, they should have precisely defined set of parameters and return type.

Pennies2007

  • Administrator
  • Hero Member
  • *****
  • Posts: 2006
    • View Profile
Re: TA Forex Trading
« Reply #3481 on: July 28, 2017, 09:46:35 pm »
One other thing I forgot to mention Qui. In the older versions of MT4 that used only the Start function, it was difficult to tell if the program was a script, an EA, an indicator, etc. You had to dig through the code to see what it was and what it did before you could decide what it was.

The versions after build 600 used things like OnTick to define what type of code you are dealing with right at the beginning if you look at the code itself. Here's a list...they all basically do the same thing but it's much easier to tell what you're dealing with by looking at the function...

OnStart....Tells you you're dealing with a script.
OnCalculate...Tells you you're dealing with an indicator.
OnTick...Tells you you're dealing with an EA.

You can also add things like OnInit which can be used in any of the above types of code. Basically, OnInit guarantees that the code starts working immediately as soon as you drop it on the chart. It doesn't require anything to kickstart it.

quanticopious15

  • Sr. Member
  • ****
  • Posts: 303
    • View Profile
Re: TA Forex Trading
« Reply #3482 on: July 29, 2017, 05:53:32 pm »
Huge help pennies!    Thanks for that basic info.    Why isn't that basic info anywhere in any of the free e"tutorials" I've come across just to shorten the learning curve for the newbie, since it's such a foundational and change issue with MQL4 coding?    And yeah, I'm skipping MQL5 as there's only so many hours I can spend at EA coding and I need to be conservative with how much I try to take on in study.     I'm obviously still struggling to understand and interpret what I see when I see code EA code examples but it's getting easier by the week.  lol

Pennies2007

  • Administrator
  • Hero Member
  • *****
  • Posts: 2006
    • View Profile
Re: TA Forex Trading
« Reply #3483 on: July 29, 2017, 07:07:31 pm »
Huge help pennies!    Thanks for that basic info.    Why isn't that basic info anywhere in any of the free e"tutorials" I've come across just to shorten the learning curve for the newbie, since it's such a foundational and change issue with MQL4 coding?    And yeah, I'm skipping MQL5 as there's only so many hours I can spend at EA coding and I need to be conservative with how much I try to take on in study.     I'm obviously still struggling to understand and interpret what I see when I see code EA code examples but it's getting easier by the week.  lol

The best tutorials I've found are actually on Youtube, Qui. Look up JimDandy MQL4 on Youtube. Start at lesson 1 and keep going. Watch each one as many times as you need to. He does a very good job of breaking things down into simple to understand coding.

Pennies2007

  • Administrator
  • Hero Member
  • *****
  • Posts: 2006
    • View Profile
Re: TA Forex Trading
« Reply #3484 on: July 31, 2017, 01:26:49 am »
Working with a variation of the HA candle setup. This chart is much simpler to read and has no indicators on the bottom. The candle indicator is a special modification based on a code I modified from an existing version. Still playing with it but so far I really like what I see.

This is a trade I actually have set to trigger to short EJ at 129.45 with TP set at 128.55.

EJ hourly chart...


Pennies2007

  • Administrator
  • Hero Member
  • *****
  • Posts: 2006
    • View Profile
Re: TA Forex Trading
« Reply #3485 on: July 31, 2017, 01:58:28 am »
Slight modification of the trade setup on EJ. I had the fib tool off a bit.

TP set for 128.75 instead of 128.55.

Heavyweight

  • Hero Member
  • *****
  • Posts: 564
    • View Profile
Re: TA Forex Trading
« Reply #3486 on: July 31, 2017, 10:02:14 am »
EU approaching the weekly Gann line around 1.1825. Could be the last gasp here before it finally turns over IMO.

Sent from my SM-G955U using Tapatalk


Pennies2007

  • Administrator
  • Hero Member
  • *****
  • Posts: 2006
    • View Profile
Re: TA Forex Trading
« Reply #3487 on: July 31, 2017, 11:38:53 am »
EU approaching the weekly Gann line around 1.1825. Could be the last gasp here before it finally turns over IMO.

Sent from my SM-G955U using Tapatalk

Agreed Heavy. There are multiple long-term supply zones in this area and price action is following a pretty thin channel along this top end.

4 hour chart...


Pennies2007

  • Administrator
  • Hero Member
  • *****
  • Posts: 2006
    • View Profile
Re: TA Forex Trading
« Reply #3488 on: July 31, 2017, 11:40:43 am »
One other thing I noticed that's different on this EU spike, Heavy. USD/MXN and USD/CAD didn't drop as they have been when EU moves up...neither did AU and NU move up with it. The rest of the pairs other than GU are now diverging away from the EU rally...could be a final topping sign as well.

Pennies2007

  • Administrator
  • Hero Member
  • *****
  • Posts: 2006
    • View Profile
Re: TA Forex Trading
« Reply #3489 on: July 31, 2017, 11:47:07 am »
DOW Transports have been falling while the market was making new highs...clear DOW Theory divergence. Market is getting ready for an ugly phase from the looks of it which is likely to drive investors to the US dollar as a safe harbor.

Heavyweight

  • Hero Member
  • *****
  • Posts: 564
    • View Profile
Re: TA Forex Trading
« Reply #3490 on: July 31, 2017, 11:49:27 am »
One other thing I noticed that's different on this EU spike, Heavy. USD/MXN and USD/CAD didn't drop as they have been when EU moves up...neither did AU and NU move up with it. The rest of the pairs other than GU are now diverging away from the EU rally...could be a final topping sign as well.
Thanks pennies. I didn't even look at those other ones.  That's another thing I need to mashes a habit of doing.

Sent from my SM-G955U using Tapatalk


Pennies2007

  • Administrator
  • Hero Member
  • *****
  • Posts: 2006
    • View Profile
Re: TA Forex Trading
« Reply #3491 on: July 31, 2017, 11:55:46 am »
One other thing I noticed that's different on this EU spike, Heavy. USD/MXN and USD/CAD didn't drop as they have been when EU moves up...neither did AU and NU move up with it. The rest of the pairs other than GU are now diverging away from the EU rally...could be a final topping sign as well.
Thanks pennies. I didn't even look at those other ones.  That's another thing I need to mashes a habit of doing.

Sent from my SM-G955U using Tapatalk

Yep Heavy, I think that correlation breakdown is important. Reminds me of the schoolyard bully who turns around and suddenly finds out his gang has disappeared and no longer has his back and the bully runs for cover...LOL!

Pennies2007

  • Administrator
  • Hero Member
  • *****
  • Posts: 2006
    • View Profile
Re: TA Forex Trading
« Reply #3492 on: July 31, 2017, 11:58:28 am »
GU now shows a rising wedge within a larger rising wedge. Not good for the bulls.

Sent from my LGL62VL using Tapatalk


Heavyweight

  • Hero Member
  • *****
  • Posts: 564
    • View Profile
Re: TA Forex Trading
« Reply #3493 on: July 31, 2017, 02:09:53 pm »
EU direct hit and rejection. We'll see how it goes now

Sent from my SM-G955U using Tapatalk


quanticopious15

  • Sr. Member
  • ****
  • Posts: 303
    • View Profile
Re: TA Forex Trading
« Reply #3494 on: July 31, 2017, 02:23:30 pm »
EU hit the 261.2 fib extension I show on the daily chart.     I don't think that going to turn it.   It's a breakout!    Where does it all end?    Seriously though I had to move cash from my secondary account to my primary account to reduce the risk in my primary account.    USD/DKK is close to hitting a weekly FE 300 level I have on that chart but I'm just not convinced that's going to give the bounce I've been waiting for.    It's almost 5000 pips below to the ascending weekly channel lower line on USD/DKK and that may be where it's headed, but I could use a nice little bounce before it gets there.
« Last Edit: July 31, 2017, 02:26:17 pm by quanticopious15 »

 

+-Recent Topics

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