# Maya System

The Mayan Robot uses the technique of **averages**, calculating the average of open trades. It basically works by opening an order in the direction that we indicate, when it arrives at TakeProfit it takes the benefit and if it goes away a quantity given in the parameters opens another new position in the same direction without closing the ones that are in negative, and it continues until The sum of all open positions in the same direction gets the expected TakeProfit. It can be specified in the parameters that open positions in both directions (Hedging). It can be configured in so many ways that it allows to operate in **Grid** form, doing **Scalping**, **Hedging** and even can be configured as different types of **Martingala**. It is recommended to activate the robot in the indices without expiration like US500Cash NETH25Cash or in values with clear tendency either bullish or bearish. It is also recommended that it be tested with the strategy tester. For example for the NETH25Cash a good configuration would be: Buy only (Operations = 0), TakeProfit_B = 1.25 Decrement_B = 12.00.

### General parameters of the Robot

**Operations**- Type of operations to open: 0 --> BUY 1--> SELL 2--> BUY + SELL.**LimitBUY**- Limit from which BUY operations can not be opened.**LimitSELL**- Limit from which SELL operations can not be opened.**MaxOpen_B**- Maximum number of BUY operations that may be open.**MaxOpen_S**- Maximum number of SELL operations that can be open.

**Parameters for BUY operations:**

**TakeProfit_B**- Amount of money we want to win for each open operation. It is given in the account currency, not in pips.**Lots_B**- Lots for the first operation.**Decrement_B**- Indicates how many other operations will be opened. It is given in the account currency, not in pips.**IncDec_B**- Indicates how much**Decrement_B**will be increased for each new operation. It is given in the account currency, not in pips.**Type_B**- Indicates how the number of lots will be calculated for the next operation. Values: 0 à Always the same number of lots**Lots_B**.- The calculation will be done by adding
**Factor_B**. - The calculation will be done by multiplying by
**Factor_B**. **Factor_B**- Indicates how much is added or how much is multiplied the number of lots for the new operation to be opened.**Factor_Rep_B**- Indicates whether the number of times the number of batches previously calculated is repeated.**Partial_B**- Indicates if partial collections are made when the price starts to go in favor.**OpPartial_B**- Indicates from which operation number begins to collect partial.**CloseNeg_B**- Indicates if the most negative operation is closed,**Partial_B**must be <> 0.

**Parameters for SELL operations:**

**TakeProfit_S**- Amount of money we want to win for each open operation. It is given in the account currency, not in pips.**Lots_S**- Lots for the first operation.**Decrement_S**- Indicates how many other operations will be opened. It is given in the account currency, not in pips.**IncDec_S**- Indicates how much**Decrement_S**will be incremented for each new operation. It is given in the account currency, not in pips.**Type_S**- Indicates how the number of batches will be calculated for the next operation. Values: 0 à Always the same number of lots**Lots_S.**- The calculation will be done by adding
**Factor_S**. - The calculation will be done by multiplying by
**Factor_S.** **Factor_S**- Indicates how much is added or how much is multiplied the number of batches for the new operation to be opened.**Factor_Rep_S**- Indicates whether the number of times the number of batches previously calculated is repeated.**Partial_S**- Indicates if partial collections are made when the price starts to go in favor.**OpPartial_S**- Indicates from which operation number starts collecting partial.**CloseNeg_S**- Indicates if the most negative operation is closed,**Partial_S**must be <> 0.