Username: Password:

Author Topic: MA calculation  (Read 6262 times)

Offline FlyOnTheWallTrading

  • Rookie
  • *
  • Posts: 6
    • View Profile
MA calculation
« on: August 28, 2017, 06:36:36 PM »
I'm having a little difficulty understanding how to calculate the MAs. Using v4.0.5
Please correct me if I'm wrong, but MAs in the bot are time based, not based on the number of candles. Correct?

Example:
Having the bot use a 200 candle MA would be calculated as; MA = candle time period * number of candles or 3000(MA entry for bot) = 15 * 200.
Or would it be MA = candle time period / number of candles?
Or perhaps MA = (candle time period<1hr / 60) * number of candles; 50 = (15 / 60) * 200

Can anyone clarify?

I am trying to translate a strategy of buying when the price reaches at or just above either the 50 or 200 candle MA

Edit**
Source of confusion: seeing MA suggestions listed as 2, .02, .04; and config file listing 2000, 5000, etc.
« Last Edit: August 28, 2017, 07:53:10 PM by FlyOnTheWallTrading »

Offline vicdr

  • Rookie
  • *
  • Posts: 12
    • View Profile
Re: MA calculation
« Reply #1 on: August 31, 2017, 04:42:54 AM »
Not an answer to your issue, I know...

But I too am extremely interested to know as I'm completely lost with this and seems different to 3.3.2 so no cues and no documentation as to a reasonable starting point.

Someone here on the forum recommended EMA1:4, EMA2:2, and yet, for 4.0.5 "bbstepgain" parameters standard setup is "EMA1": 2000, "EMA2": 1000.

Without enough info for logical reasoning and conclusion I just don't get it.