text stringlengths 1 93.6k |
|---|
4
|
) # Add 4 bytes of padding. This potentially can be totalTicks.
|
header += pack("<d", 99.9) # Modeling quality (max. 99.9).
|
# General parameters.
|
header += bytearray(
|
"EUR".ljust(12, "\x00"), "latin1", "ignore"
|
) # Base currency (12 bytes).
|
header += pack("<I", spread) # Spread in points.
|
header += pack("<I", 5) # Digits, using the default value of FXT format.
|
header += bytearray(4) # Add 4 bytes of padding.
|
header += pack("<d", 1e-5) # Point size (e.g. 0.00001).
|
header += pack("<I", 1) # Minimal lot size in centi lots (hundredths).
|
header += pack("<I", 50000) # Maximal lot size in centi lots (hundredths).
|
header += pack("<I", 1) # Lot step in centi lots (hundredths).
|
header += pack("<I", 10) # Stops level value (orders stop distance in points).
|
header += pack(
|
"<I", 1
|
) # GTC (Good till cancel) - instruction to close pending orders at end of day (default: True).
|
header += bytearray(4) # Add 4 bytes of padding.
|
# Profit Calculation parameters.
|
header += pack("<d", 100000.0) # ContractSize - contract size
|
header += pack("<d", 0.0) # Tick value in quote currency (empty).
|
header += pack("<d", 0.0) # Size of one tick (empty).
|
header += pack(
|
"<I", 0
|
) # Profit calculation mode: 0 - Forex, 1 - CFD, 2 - Futures.
|
# Swap calculation
|
header += pack("<i", 0) # Enable swap (default: False).
|
header += pack(
|
"<I", 0
|
) # Swap calculation method: 0 - in points, 1 - in the symbol base currency, 2 - by interest, 3 - in the margin currency.
|
header += bytearray(4) # Add 4 bytes of padding.
|
header += pack("<d", 0.0) # Swap of the buy order - long overnight swap value.
|
header += pack(
|
"<d", 0.0
|
) # Swap of the sell order - short overnight swap value.
|
header += pack(
|
"<I", 3
|
) # Day of week to charge 3 days swap rollover. Default: WEDNESDAY (3).
|
# Margin calculation.
|
header += pack("<I", 100) # Account leverage (default: 100).
|
header += pack(
|
"<I", 1
|
) # Free margin calculation mode {MARGIN_DONT_USE, MARGIN_USE_ALL, MARGIN_USE_PROFIT, MARGIN_USE_LOSS}
|
header += pack(
|
"<I", 0
|
) # Margin calculation mode: 0 - Forex, 1 - CFD, 2 - Futures, 3 - CFD for indexes.
|
header += pack("<I", 30) # Margin stopout level (default: 30).
|
header += pack(
|
"<I", 0
|
) # Margin stop out check mode {MARGIN_TYPE_PERCENT, MARGIN_TYPE_CURRENCY}
|
header += pack("<d", 0.0) # Margin requirements.
|
header += pack("<d", 0.0) # Margin maintenance requirements.
|
header += pack("<d", 50000.0) # Margin requirements for hedged positions.
|
header += pack("<d", 1.25) # Margin divider used for leverage calculation.
|
header += bytearray(
|
"USD".ljust(12, "\x00"), "latin1", "ignore"
|
) # Margin currency.
|
header += bytearray(4) # Padding space - add 4 bytes to align the next double.
|
# Commission calculation.
|
header += pack("<d", 0.0) # Basic commission.
|
header += pack(
|
"<i", 1
|
) # Basic commission type {COMM_TYPE_MONEY, COMM_TYPE_PIPS, COMM_TYPE_PERCENT}.
|
header += pack(
|
"<i", 0
|
) # Commission per lot or per deal {COMMISSION_PER_LOT, COMMISSION_PER_DEAL}.
|
# For internal use.
|
header += pack(
|
"<I", 1
|
) # Index of the first bar at which modeling started (0 for the first bar).
|
header += pack(
|
"<I", 0
|
) # Index of the last bar at which modeling started (0 for the last bar).
|
header += pack(
|
"<I", 0
|
) # Bar index where modeling started using M1 bars (0 for the first bar).
|
header += pack(
|
"<I", 0
|
) # Bar index where modeling started using M5 bars (0 for the first bar).
|
header += pack(
|
"<I", 0
|
) # Bar index where modeling started using M15 bars (0 for the first bar).
|
header += pack(
|
"<I", 0
|
) # Bar index where modeling started using M30 bars (0 for the first bar).
|
header += pack(
|
"<I", 0
|
) # Bar index where modeling started using H1 bars (0 for the first bar).
|
header += pack(
|
"<I", 0
|
) # Bar index where modeling started using H4 bars (0 for the first bar).
|
header += pack("<I", 0) # Begin date from tester settings (must be zero).
|
header += pack("<I", 0) # End date from tester settings (must be zero).
|
header += pack("<I", 0) # Order's freeze level in points.
|
header += pack(
|
"<I", 0
|
) # Number of errors during model generation which needs to be fixed before testing.
|
header += bytearray(60 * 4) # Reserved - Space for future use.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.