MT5 Connector settings
After installing the MT5 connector to your chart, you will prompted to set the parameters.
Note: These settings will overwrite values given by your ORDER TICKET
.
Please do not forget to whitelist the domain pinetrader.io
in the WebRequest settings.
An exemple of the MT5 connector input window:
License ID
Perhaps the most important parameter. If you do not provide any value, you won’t be able to connect to the servers.
Required? YES ✅
Value expected: License ID #
found in your dashboard(Subscription)
Magic number
This parameter can be set using the order ticket or directly in the input window.
If no value is specified this field will be null
.
This field can be utilized to track trades and positions.
Required? NO ❌
Value expected: INTEGER
, a non-decimal number.
Trailing
The following settings manage the trailing behaviour of the trades.
Trailing price
The trailing price tells when to start trailing.
You can give the price in three different ways:
-
TpPrice
: The price at which trailing should begin. -
TpTick
: The number of ticks away, from the entry price, to start trailing. -
TpPercent
: Percent away from entry price to start trailing.
Trailing offset
The trailing price tells how much to trail trail.
You can give chose from one of two methods:
-
ToTick
: The value passed intrail_offset
from the order ticket will be interpreted in ticks. -
ToPercent
: The value passed intrail_offset
from the order ticket will be interpreted as the percentage to trail by.
Position sizing
Position sizing deals with the behaviour of the calculation of the volume to trade.
You can give chose from one of two methods:
-
PS_Fixed
: Stands for “Position Size Fixed”. By setting this method, the traded volume will be directly given in the order ticket. For exemple:size
is2.75
this will trigger a 2.75 lots or contracts position. -
PS_PercentageOfEquity
: [⚠️must also pass a validsl
] By setting this method, the volume to trade will be calculated using the stop-loss value. This makes sure that if the price hitssl
your loss will be contained to the percentage value given in the order ticket’srisk
parameter.
Stop-loss
The stop-loss is the price at which the position should be closed 100%, if the market is to go against you.
You can chose from one of two methods:
-
SL_Price
: Stop-loss by price. The value ofsl
in the order ticket will be treated as the price at which to close your position. -
SL_PercentageFromPrice
: Stop-loss by percentage variation. The value ofsl
in the order ticket will be used to calculate the price (+/- X%) at which the stop-loss should be set.
Take-profit
The take-profit is the price at which the position should be closed 100%, when you correctly predicted the market.
You can chose from one of two methods:
-
TP_Price
: Take-profit by price. The value oftp
in the order ticket will be treated as the price at which to exit your position. -
SL_PercentageFromPrice
: Take-profit by percentage variation. The value oftp
in the order ticket will be used to calculate the price (+/- X%) at which the take-profit should be set.
Position Size
If you plan on using fixed position sizes, you can directly set your volume to trade by updating the value
on Position size
.
Required? NO ❌