Author Topic: Trying to create SMA, EMA and MACD. need help  (Read 10598 times)

Tags:
  • All members
  • Posts: 16
  • Karma: +0/-0
Re: Trying to create SMA, EMA and MACD. need help
« Reply #15 on: Tue, 10 May, 2011, 16:53 »
hi mcbee

in the original file I didn't have any conditions at all. perhaps you are using something else.

  • Élite
  • Posts: 4458
  • Karma: +252/-10
  • Gender: Male
*
Re: Trying to create SMA, EMA and MACD. need help
« Reply #16 on: Tue, 10 May, 2011, 16:58 »
hi
your last attachment has conditions.
you have put is equal or less than 0 , by mistake
it should be is greater than 0

only trying to help get a good trigger working.

mcbee
Please read the following  disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • Élite
  • Posts: 4458
  • Karma: +252/-10
  • Gender: Male
*
Re: Trying to create SMA, EMA and MACD. need help
« Reply #17 on: Tue, 10 May, 2011, 17:01 »
hi
 its not your trigger its the one rich put on.

SORRY.

mcbee
Please read the following  disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 16
  • Karma: +0/-0
Re: Trying to create SMA, EMA and MACD. need help
« Reply #18 on: Tue, 10 May, 2011, 17:12 »
its np at all mcbee. later on when the uk horse markets stop (i am testing a trigger) I will post the EMA trigger. I seemed to get it to work at the beginning and then broke it somehow. I think it is related to the refresh rate. I will look at it when the uk horse markets stop.

  • Élite
  • Posts: 4458
  • Karma: +252/-10
  • Gender: Male
*
Re: Trying to create SMA, EMA and MACD. need help
« Reply #19 on: Tue, 10 May, 2011, 17:21 »
hi mythos
your new approach to this problem will be ideal for pre start trading.
and if we could refine the time part, it will be ideal for inplay trading.
at the moment it is to slow
i watched the MA amounts move nice and smooth but the odds flew well past what would be a safe trade, ie - MA 8.00 odds 60+
but i am using a laptop with only 1 meg memory, so this will have some effect on the monitoring.

keep up the good work

mcbee
Please read the following  disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 16
  • Karma: +0/-0
Re: Trying to create SMA, EMA and MACD. need help
« Reply #20 on: Tue, 10 May, 2011, 17:29 »
hi mcbee,

what I had in mind was 5 to 1 minute before the race starts trading. not in play trading. If it can work in play that would be great though.

more specifically i found a guide:

"Trade MACD. The Moving Average Convergence Divergence (MACD) indicator (developed by Gerald Appel) combines a moving average crossover system with the overbought/oversold elements of an oscillator. A buy signal occurs when the faster line crosses above the slower and both lines are below zero. A sell signal takes place when the faster line crosses below the slower from above the zero line. Weekly signals take precedence over daily signals. An MACD histogram plots the difference between the two lines and gives even earlier warnings of trend changes. It's called a "histogram" because vertical bars are used to show the difference between the two lines on the chart."

so to conclude I thought we could represent buy and sell signals with conditions for automated trading. It won't be easy for sure. I don't even know if it is possible.

  • Élite
  • Posts: 4458
  • Karma: +252/-10
  • Gender: Male
*
Re: Trying to create SMA, EMA and MACD. need help
« Reply #21 on: Tue, 10 May, 2011, 18:05 »
hi
i do see where you are coming from.
BUT, with betting it happens so quick
NOW, if we were to use more than one fav to predict the movement, then i think we could do what others try to do.
because when the fav price moves in an upward direction
the second fav moves in a downward direction, unless there are more fancied favs, then the movements are between all.
so the answer been to choose a meeting where there is only 2 or 3 very good contenders
we then cross match the values

mcbee
Please read the following  disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • Élite
  • Posts: 4458
  • Karma: +252/-10
  • Gender: Male
*
Re: Trying to create SMA, EMA and MACD. need help
« Reply #22 on: Tue, 10 May, 2011, 19:12 »
hi mythos
with your trigger you have set all triggers to favourite.
but when the fav changes from one selection to another then the odds at one point will be half of one selection and half of the new fav.


mcbee
Please read the following  disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 16
  • Karma: +0/-0
Re: Trying to create SMA, EMA and MACD. need help
« Reply #23 on: Wed, 11 May, 2011, 06:46 »
here is a working EMA.

the market refresh rate must be at 1 second.


  • All members
  • Posts: 16
  • Karma: +0/-0
Re: Trying to create SMA, EMA and MACD. need help
« Reply #24 on: Wed, 11 May, 2011, 07:58 »
and here is a working MACD. Perhaps we need to adjust the seconds where EMA1 and EMA2 are calculated to reduce lag and have meaningful values.

you need to set your idle refresh rate at 1 second else it might bug.

  • All members
  • Posts: 65
  • Karma: +0/-0
Re: Trying to create SMA, EMA and MACD. need help
« Reply #25 on: Wed, 11 May, 2011, 09:27 »
Hi Mythos, yea you are probably right on the pre defined variables, maybe MF Support could answer that one?

  • All members
  • Posts: 65
  • Karma: +0/-0
Re: Trying to create SMA, EMA and MACD. need help
« Reply #26 on: Wed, 11 May, 2011, 10:55 »
ps. sorry about the messed up condition in my trigger, doh.

  • Élite
  • Posts: 4458
  • Karma: +252/-10
  • Gender: Male
*
Re: Trying to create SMA, EMA and MACD. need help
« Reply #27 on: Wed, 11 May, 2011, 11:54 »
hi
well thats me out of the MA triggers.
the macd set keeps crashing my mfp, due to me only having a laptop and 1 gb mem.


mcbee
Please read the following  disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 16
  • Karma: +0/-0
Re: Trying to create SMA, EMA and MACD. need help
« Reply #28 on: Wed, 11 May, 2011, 12:08 »
maybe indicators and/or graphs could be included in a future MF version?

I am sure there could be better ways to "code" those indicators.