# General Settings

{% hint style="info" %}
Settings marked with an asterisk \* are required fields
{% endhint %}

***

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FieEGvvfI1urS5EtlSE2Z%2Fuploads%2FzVHg2BixNaQu6Xkqjksu%2F0902.mp4?alt=media&token=806e9fbb-a5cf-4cf5-af08-d0743f0e90cb>" %}

{% stepper %}
{% step %}

## General

#### <mark style="color:orange;">Task Name\*</mark>

What would you like your task to be named. Choose a name that reflects the nature of the task group

#### <mark style="color:orange;">Module\*</mark>

What module would you like to use. Each modules unique purpose can be found [here](/lunar-cloud/general-guides/module-information.md)

#### <mark style="color:orange;">Wallet\*</mark>

What wallet would you like to trade with. This wallet will be used to buy/sell all tokens and pay all trading fees too

#### <mark style="color:orange;">SOL Amount\*</mark>

How much SOL should be exchanged when buying a token. This amount will be used for every buy TX you make

#### <mark style="color:orange;">Slippage</mark>

How much of an increase in price you are willing to pay. If the token exceeds this increase limit, the TX will fail

{% code overflow="wrap" %}

```
For example

1 Lunar Coin is worth 1 SOL. I want to buy 10 SOL of Lunar Coin with 50% slippage. Currently 10 S0L is worth 10 Lunar Coin.

With 50% slippage, I can buy Lunar Coin up to a 50% increase in price (1.5 SOL per coin). With 10 SOL this will be worth 6.67 Lunar Coins instead of 10. This TX will succeed.

If Lunar Coin doubles in price (100% increase), my TX will fail as it is beyond my slippage limits.
```

{% endcode %}

{% hint style="success" %}
HINT: To use unlimited slippage enter 0 slippage
{% endhint %}

#### <mark style="color:orange;">Custom Webhook</mark>

Connect a discord webhook to receive alerts about your trading

{% hint style="info" %}
A guide on how to get a discord webhook can be found [here](/lunar-cloud/general-guides/discord-webhook.md)
{% endhint %}

#### <mark style="color:orange;">Max Open Positions\*</mark>

The highest amount of trades you can be involved in at once. Once you sell 100% of a token, this trade will no longer count to this limit

#### <mark style="color:orange;">Token Repurchase</mark>

When enabled,&#x20;

#### <mark style="color:orange;">Market Cap</mark>

A mcap range you buy tokens from. Any token outside of this range will be ignored

{% code overflow="wrap" %}

```
For example

If you select min 50k mcap & max 250k mcap, any token that is less than 50k or above 250k will not be purchased.
```

{% endcode %}

#### <mark style="color:orange;">Block Timeout</mark>

If your trade takes longer than the blocks specified, the TX will be cancelled. You will still be charged priority fees.

{% hint style="info" %}
Enabling MEV protection protects you from MEV attacks but can reduce the speed of your TX
{% endhint %}

<figure><img src="/files/OlRLjan7NXVHpQ2Bppn0" alt=""><figcaption><p>Images are for illustrative purposes only</p></figcaption></figure>

***

{% endstep %}

{% step %}

## Transaction

#### <mark style="color:orange;">Priority Fees\*</mark>

How much SOL should be spent each TX on priority fees for buying and selling

{% hint style="info" %}
Priority fees are spent on every TX you send, including failed TX
{% endhint %}

{% hint style="success" %}
HINT: To use a flat rate fee, set the min and max as equal values
{% endhint %}

#### <mark style="color:orange;">Tip\*</mark>

How much should be spent on bribing/speeding up your TX via our providers

{% hint style="info" %}
Tips are only paid on successful TX
{% endhint %}

{% hint style="success" %}
HINT: We recommend using a lower priority fee and a higher tip
{% endhint %}

#### <mark style="color:orange;">Migration Tip</mark>

How much should be spent specifically on bribing/speeding up your migration TX via our providers

{% hint style="info" %}
This tip is only used for tasks involving migrating tokens
{% endhint %}

#### <mark style="color:orange;">Maximum Tip & Dynamic Fee</mark>

Measures the current market conditions to determine the smallest fee for the fastest TX. The maximum tip is your limit for dynamic fee.

{% code overflow="wrap" %}

```
For example

You are using a maximum tip of 0.5 SOL

When 99% of TX are successful using a 0.2 SOL tip, you will use a 0.2 SOL tip. However, when 99% of TX are successful using a 1 SOL tip, you will use a 0.5 SOL tip
```

{% endcode %}

{% hint style="danger" %}
Dynamic fee overrides your standard tip settings
{% endhint %}

#### <mark style="color:orange;">Buy & Sell Providers</mark>

What providers should be used to send your TX

{% hint style="success" %}
HINT: You can select multiple providers as only the fastest will be paid your tip
{% endhint %}

<figure><img src="/files/S950m140amneIrqbsGXh" alt=""><figcaption><p>Images are for illustrative purposes only</p></figcaption></figure>

***

{% endstep %}

{% step %}

## Take Profit

#### <mark style="color:orange;">New TP Rule</mark>

Select "New TP Rule" at the bottom left to create a new TP. You can create an unlimited number of TP's

#### <mark style="color:orange;">Position %</mark>

How much of your remaining position do you want to sell

#### <mark style="color:orange;">Profit %</mark>

At what profit % should this sell be triggered

#### <mark style="color:orange;">Stop Loss %</mark>

The new SL for your position which will close your position if reached

{% hint style="info" %}
This SL overrides any existing SL but is only active once your TP has been triggered&#x20;
{% endhint %}

{% code overflow="wrap" %}

```
For example

I buy 5 SOL of tokens at 100k mcap.

For settings 20% position, 100% profit, 20% SL
Once the token reaches 200k mcap and is worth 10 SOL, I will sell 2 SOL and my new SL will be 160k mcap.

200k mcap is the 100% profit increase
2 SOL is the 20% position
160k mcap is the 20% SL from the TP (200k - 20%)
```

{% endcode %}

<figure><img src="/files/L0edo4lN6b2lMtHSq3bn" alt=""><figcaption><p>Images are for illustrative purposes only</p></figcaption></figure>

***

{% endstep %}

{% step %}

## Sell

#### <mark style="color:orange;">Trailing Stop</mark>

Close your position when the price drops from the highest price by how much %

{% code overflow="wrap" %}

```
For example

I buy a 10 SOL of tokens at 100k with a trailing stop of 20%. The token price falls to 90k but no sale is triggered. The price then spikes to 200k mcap and drops to 160k. The trailing stop is triggered by the 20% fall from the highest price.
```

{% endcode %}

#### <mark style="color:orange;">Stop Loss</mark>

Close your position when the price drops from your first buy by how much %

{% code overflow="wrap" %}

```
For example


I buy a 10 SOL of tokens at 100k with a trailing stop of 20%. The SL will only be triggered if the tokken reaches 80k mcap.
```

{% endcode %}

{% hint style="danger" %}
This will be overridden by any new SL from Take Profit
{% endhint %}

#### <mark style="color:orange;">Inactivity Timeout</mark>

Close your position when there are no trades for X ms

#### <mark style="color:orange;">Profit Timeout</mark>

Sell X% of your holdings if you don't achieve a Y% profit in Z ms

{% code overflow="wrap" %}

```
For example

I buy 1 SOL of tokens at 100k mcap with values 50% position, 100% profit & 2000 ms.

If my position doesn't increase by 100% in 2000 ms from the moment I buy it, I will sell 50% of my position and hold the other 50%.
```

{% endcode %}

#### <mark style="color:orange;">Sell % on Migration</mark>

How much of your position to sell instantly once the token migrates

<figure><img src="/files/WF3KkPcWtg3nswaVSunM" alt=""><figcaption><p>Images are for illustrative purposes only</p></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guide.lunar.trade/lunar-cloud/modules/general-settings.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
