Hybrid Masking Instruments and Orders: Difference between revisions

From SharpTrader Arbitrage Software Wiki: A Detailed Overview of High-Speed Trading Technology
Jump to navigation Jump to search
Created page with "File:Hybrid masking instruments and orders.png === '''Instruments & Orders — Parameters Description''' === '''Enabled''' - Activates or deactivates trading for the selected instrument. ✅ Checked — strategy trades this pair. ⬜ Unchecked — trading is disabled for this pair. '''Name''' - The instrument’s symbol (e.g., EURUSD, XAUUSD, etc.) used for order execution and price data collection. '''Lot size''' - Specifies the trading volume per order, '''if..."
 
Formatting cleanup: section headings, parameter definition lists, whitespace
Line 2: Line 2:


=== '''Instruments & Orders — Parameters Description''' ===
=== '''Instruments & Orders — Parameters Description''' ===
'''Enabled''' - Activates or deactivates trading for the selected instrument.
; Enabled
: Activates or deactivates trading for the selected instrument.
: ✅ Checked — strategy trades this pair.
: ⬜ Unchecked — trading is disabled for this pair.
; Name
: The instrument’s symbol (e.g., EURUSD, XAUUSD, etc.) used for order execution and price data collection.
; Lot size
: Specifies the trading volume per order, '''if random lots are not enabled.'''
: Example: 0.5 = 0.5 lots per trade.


✅ Checked — strategy trades this pair.
== Lot type - Defines how the lot size is determined ==
 
⬜ Unchecked — trading is disabled for this pair.
 
'''Name''' - The instrument’s symbol (e.g., EURUSD, XAUUSD, etc.) used for order execution and price data collection.
 
'''Lot size''' - Specifies the trading volume per order, '''if random lots are not enabled.'''
 
Example: 0.5 = 0.5 lots per trade.
 
'''Lot type''' - Defines how the lot size is determined:


* Fixed – constant volume per order.
* Fixed – constant volume per order.
* ''(If supported)'' Dynamic – volume may depend on balance, risk %,    or randomizer.
* ''(If supported)'' Dynamic – volume may depend on balance, risk %,    or randomizer.


'''Decimals''' - Number of decimal digits used for the symbol’s quotes (e.g., 5 for EURUSD, 3 for USDJPY, 2 for XAUUSD).
; Decimals
 
: Number of decimal digits used for the symbol’s quotes (e.g., 5 for EURUSD, 3 for USDJPY, 2 for XAUUSD).
'''Spread SL''' -If enabled, the Stop Loss value will automatically include the current spread.
; Spread SL
 
: If enabled, the Stop Loss value will automatically include the current spread.
Useful for brokers with variable spreads.
: Useful for brokers with variable spreads.
 
; S/L (Stop Loss)
'''S/L (Stop Loss)''' - Distance from entry price to stop-loss in points.
: Distance from entry price to stop-loss in points.
 
: Example: 65 = 6.5 pips if the broker uses 5-digit pricing.
Example: 65 = 6.5 pips if the broker uses 5-digit pricing.
; T/P (Take Profit)
 
: Distance from entry price to take-profit in points.
'''T/P (Take Profit)''' - Distance from entry price to take-profit in points.
; Min Profit
 
: Minimum profit (in points) that must be reached before closing a trade if other conditions are met.
'''Min Profit''' - Minimum profit (in points) that must be reached before closing a trade if other conditions are met.
; Pips for Min Profit
 
: Number of pips required to activate profit-protection logic (for partial close or trailing).
'''Pips for Min Profit''' - Number of pips required to activate profit-protection logic (for partial close or trailing).
; Trail distance
 
: Distance (in points) for the trailing stop to follow the price once it moves in profit.
'''Trail distance''' - Distance (in points) for the trailing stop to follow the price once it moves in profit.
; Trail units
 
: Defines whether the trailing distance is measured in Points, Pips, or other units (if supported).
'''Trail units''' - Defines whether the trailing distance is measured in Points, Pips, or other units (if supported).
; Order Lifetime (minutes)
 
: How long a pending or open order remains valid before it is automatically closed.
'''Order Lifetime (minutes)''' - How long a pending or open order remains valid before it is automatically closed.
: Example: 270 = 4.5 hours.
 
Example: 270 = 4.5 hours.


'''Direction'''
'''Direction'''


Defines trade direction:
== Defines trade direction ==


* Buy    only
* Buy    only
Line 51: Line 47:
* Both – allows trading in both directions according to trend filters.
* Both – allows trading in both directions according to trend filters.


'''Comment''' - A custom label added to each order (useful for log tracking or identifying strategy instance).
; Comment
 
: A custom label added to each order (useful for log tracking or identifying strategy instance).
Example: c_EUR... for EURUSD setup.
: Example: c_EUR... for EURUSD setup.
 
; Fibo% %
'''Fibo% %''' - The Fibonacci retracement level used to calculate potential pullback entries (for limit orders).
: The Fibonacci retracement level used to calculate potential pullback entries (for limit orders).
 
: Example: 66 = price will look for retracement near 66% of the previous move.
Example: 66 = price will look for retracement near 66% of the previous move.
; Loopback period
 
: Defines how many previous bars (candles) are analyzed to identify the last completed trend move before measuring retracement.
'''Loopback period''' - Defines how many previous bars (candles) are analyzed to identify the last completed trend move before measuring retracement.
; Main timeframe
 
: Timeframe used for entry logic (trend + pullback detection).
'''Main timeframe''' - Timeframe used for entry logic (trend + pullback detection).
: Example: 5 Minutes.
 
Example: 5 Minutes.


'''Fast EMA period / Slow EMA period'''
'''Fast EMA period / Slow EMA period'''


Periods for EMA indicators used on the main timeframe:
== Periods for EMA indicators used on the main timeframe ==


* Fast EMA – reacts quickly, shows short-term trend.
* Fast EMA – reacts quickly, shows short-term trend.
* Slow EMA – smoother, shows overall direction. Their crossover determines trend direction or pullback start.
* Slow EMA – smoother, shows overall direction. Their crossover determines trend direction or pullback start.


'''High timeframe''' - A Higher timeframe is used to confirm the main trend direction.
; High timeframe
 
: A Higher timeframe is used to confirm the main trend direction.
Example: 30 Minutes, 1 Hour, 4 Hours.
: Example: 30 Minutes, 1 Hour, 4 Hours.


'''High fast MA period / High slow EMA period'''
'''High fast MA period / High slow EMA period'''
Line 82: Line 76:
Example: if Fast EMA crosses above Slow EMA — the trend is considered bullish.
Example: if Fast EMA crosses above Slow EMA — the trend is considered bullish.


'''Curr Spread Slow''' - Displays the current spread (in points) for the “slow” broker or feed.
; Curr Spread Slow
 
: Displays the current spread (in points) for the “slow” broker or feed.
Useful for comparing latency or spread widening effects.
: Useful for comparing latency or spread widening effects.


💡 '''Tip:'''
== 💡 Tip ==


To create realistic masking behavior:
== To create realistic masking behavior ==


* Use different EMAs for each pair.
* Use different EMAs for each pair.
* Set the Fibo% between 60–70 for believable retracements.
* Set the Fibo% between 60–70 for believable retracements.
* Adjust Order Lifetime and Trail distance according to volatility (shorter for FX, longer for gold).
* Adjust Order Lifetime and Trail distance according to volatility (shorter for FX, longer for gold).

Revision as of 19:47, 21 October 2026

Instruments & Orders — Parameters Description

Enabled
Activates or deactivates trading for the selected instrument.
✅ Checked — strategy trades this pair.
⬜ Unchecked — trading is disabled for this pair.
Name
The instrument’s symbol (e.g., EURUSD, XAUUSD, etc.) used for order execution and price data collection.
Lot size
Specifies the trading volume per order, if random lots are not enabled.
Example: 0.5 = 0.5 lots per trade.

Lot type - Defines how the lot size is determined

  • Fixed – constant volume per order.
  • (If supported) Dynamic – volume may depend on balance, risk %, or randomizer.
Decimals
Number of decimal digits used for the symbol’s quotes (e.g., 5 for EURUSD, 3 for USDJPY, 2 for XAUUSD).
Spread SL
If enabled, the Stop Loss value will automatically include the current spread.
Useful for brokers with variable spreads.
S/L (Stop Loss)
Distance from entry price to stop-loss in points.
Example: 65 = 6.5 pips if the broker uses 5-digit pricing.
T/P (Take Profit)
Distance from entry price to take-profit in points.
Min Profit
Minimum profit (in points) that must be reached before closing a trade if other conditions are met.
Pips for Min Profit
Number of pips required to activate profit-protection logic (for partial close or trailing).
Trail distance
Distance (in points) for the trailing stop to follow the price once it moves in profit.
Trail units
Defines whether the trailing distance is measured in Points, Pips, or other units (if supported).
Order Lifetime (minutes)
How long a pending or open order remains valid before it is automatically closed.
Example: 270 = 4.5 hours.

Direction

Defines trade direction

  • Buy only
  • Sell only
  • Both – allows trading in both directions according to trend filters.
Comment
A custom label added to each order (useful for log tracking or identifying strategy instance).
Example: c_EUR... for EURUSD setup.
Fibo% %
The Fibonacci retracement level used to calculate potential pullback entries (for limit orders).
Example: 66 = price will look for retracement near 66% of the previous move.
Loopback period
Defines how many previous bars (candles) are analyzed to identify the last completed trend move before measuring retracement.
Main timeframe
Timeframe used for entry logic (trend + pullback detection).
Example: 5 Minutes.

Fast EMA period / Slow EMA period

Periods for EMA indicators used on the main timeframe

  • Fast EMA – reacts quickly, shows short-term trend.
  • Slow EMA – smoother, shows overall direction. Their crossover determines trend direction or pullback start.
High timeframe
A Higher timeframe is used to confirm the main trend direction.
Example: 30 Minutes, 1 Hour, 4 Hours.

High fast MA period / High slow EMA period

EMA or MA periods are used on the higher timeframe for trend confirmation.

Example: if Fast EMA crosses above Slow EMA — the trend is considered bullish.

Curr Spread Slow
Displays the current spread (in points) for the “slow” broker or feed.
Useful for comparing latency or spread widening effects.

💡 Tip

To create realistic masking behavior

  • Use different EMAs for each pair.
  • Set the Fibo% between 60–70 for believable retracements.
  • Adjust Order Lifetime and Trail distance according to volatility (shorter for FX, longer for gold).