💬 Trade Action Generator
To execute your trades correctly, TradingView alerts need to follow our message format. The syntax is designed to be simple and consistent, though it can take a little practice to master.
The good news is that you don't need to learn and memorize it when using Pip Sender. Our Trade Action Generator helps you create correct messages effortlessly with just a few clicks.
How to Use
Trade Action Generator is available right in your connection details, under connection info.
- Select the action you want
- Adjust parameters as needed
- Copy generated message and paste into TradingView alert
Right in the Trade Action Generator, you can hover the icon next to each field for usage guidelines. Or you can read below:
1. Buy action
Symbol, Size and Order Type are mandatory fields. All other fields are optional.
- Symbol: Enter the trading symbol you want to buy.
-
Size: Specific the size of buy order. Select the unit, then enter the value.
Supported units:
- Volume: Buy a fixed lot size of the symbol
- % Balance: Buy a size calculated as a percentage of account balance
- Currency: Buy using a fixed amount of your account's currency
-
Order Type: Select how the buy order should be placed.
Supported options:
- Market Price: Executes immediately at the current market price (a market order will be placed).
- Fixed Price: Executes at a specific price you define.
- A Value field will appear for you to enter the desired price.
- If the price is above the current market price → a Buy Stop order will be placed.
- If the price is below the current market price → a Buy Limit order will be placed.
-
Stop Loss: Specific the stop loss level. Select the unit, then enter the value.
Supported units:
- Price: A fixed stop loss price
- Point: A specific number of points away from the entry price
- %: A percentage distance from the entry price
Notes:
- Leave the Value field blank if you don't want to set a stop loss.
- Point is the smallest price change of symbol, depend on the symbol and broker.
- For EURUSD symbol with 5-digit brokers, 1 point = 0.00001. With 4-digit brokers, 1 point = 0.0001.
- For EURJPY symbol with 3-digit brokers, 1 point = 0.001. With 2-digit brokers, 1 point = 0.01.
- Take Profit: Specific the take profit level. As same as Stop Loss.
-
Breakeven: Configure breakeven settings. Toggle the switch to enable. It requires two parameters:
- Start: The trigger level, measured from the entry price, that activates the Breakeven. It must be > 0 and > Offset
- Offset: The price offset, calculated from the entry price, to which the stop loss is adjusted. Must be >= 0
Both Start and Offset are measured in Points (the smallest price change of symbol). The trailing stop logic is fully managed by the Pip Receiver. So keep it running on your MetaTrader terminal is required.
-
Pip Trailing Stop: Configure a Pip trailing stop. Toggle the switch to enable. It requires 3 parameters:
- Start: The trigger level, measured from the entry price, that activates the trailing stop. Must be >= 0
- Distance: The gap maintained between the current price and the stop-loss level. Must be > 0
- Step: The minimum price movement in your favor required before new stop-loss is adjusted. Must be > 0
All Start, Distance and Step are measured in Points (the smallest price change of symbol). The trailing stop logic is fully managed by the Pip Receiver. So keep it running on your MetaTrader terminal is required.
-
ATR Trailing Stop: Configure a ATR trailing stop. Toggle the switch to enable. It requires 5 parameters:
- Start: The trigger level, measured from the entry price, that activates the trailing stop. Measured in points (the smallest price change of symbol) and must be >= 0
- Timeframe: The timeframe used to calculate the ATR value.
- Period: The number of periods used in the ATR calculation. Must be > 0.
- Multiplier: he ATR multiplier used to determine the trailing stop distance. Must be > 0.
- Shift: The candle offset used for ATR calculation; 0 refers to the current candle. Must be >= 0.
MT4 timeframes: M1, M5, M15, M30, H1, H4, D1, W1, MN1
MT5 timeframes: M1, M2, M3, M4, M5, M6, M10, M12, M15, M20, M30, H1, H2, H3, H4, H6, H8, H12, D1, W1, MN1
The trailing stop logic is fully managed by the Pip Receiver. So keep it running on your MetaTrader terminal is required.
- Comment: Enter a trade comment.
- No spaces or special characters allowed
- Maximum 31 characters
2. Sell action
This works exactly the same as the way you generate message for Buy action.
3. Close action
All fields are optional. If nothing is specified, all positions will be closed.
-
Close Size: Specify how much of the position to close. Select the unit, then enter the value.
Supported units:
- Volume: Close a fixed lot size
- % Position: Close a percentage of the position
-
Select Positions By: Choose which positions to close.
Supported filter types:
- All: Apply to all open positions
- Ticket: Target a specific position by ticket
- Filter: Filter positions by Symbol and Type
Enter the desired symbol in the Symbol field and/or select the position type in the Type field.
-
Min Profit: Filter positions by a minimum profit value.
-
Max Profit: Filter positions by a maximum profit value.
4. Cancel action
All fields are optional. If nothing is specified, all orders will be canceled.
-
Select Orders By: Choose which orders to cancel.
Supported filter types:
-
All: Apply to all pending orders
-
Ticket: Target a specific order by ticket
-
Filter: Filter orders by Symbol and Type
Enter the desired symbol in the Symbol field and select the position type in the Type field.Order types:
- All: All orders
- Buy: All Buy orders
- BuyStop: Buy stop orders
- BuyLimit: Buy limit orders
- Sell: All Sell orders
- SellStop: Sell stop orders
- SellLimit: Sell limit orders
-
5. Update action
Select By is a mandatory field. All other fields are optional. However, at least one update detail should be specified. Otherwise, nothing will be updated.
-
Select By: Choose which trades to update.
Supported filter types:
-
Ticket: Target a specific trade by ticket
Enter the ticket number in the Ticket Id field. -
Orders: Filter by pending orders
Optionally enter a symbol in the Symbol field, and select an order type in the Type field if you want more specific filtering. -
Positions: Filter by open positions
Optionally enter a symbol in the Symbol field, and select an position type in the Type field if you want more specific filtering.
-
-
Stop Loss: Specific the stop loss level. Select the unit, then enter the value.
Supported units:
- Price: A fixed stop loss price
- Point: A specific number of points away from the entry price
- %: A percentage distance from the entry price
- Take Profit: Specific the take profit level. As same as Stop Loss.
-
Breakeven: Update breakeven settings.
- No Update: Keep the existing breakeven settings
- New Setup: Apply a new breakeven configuration
- Remove: Delete the current breakeven setup
- Pip Trailing Stop: Update a pip trailing stop.
- No Update: Keep the existing trailing stop settings
- New Setup: Apply a pip trailing stop configuration
- Remove: Delete the current trailing stop setup
- ATR Trailing Stop: Update a ATR trailing stop.
- No Update: Keep the existing trailing stop settings
- New Setup: Apply a ATR trailing stop configuration
- Remove: Delete the current trailing stop setup