Eventually, after all is backtested and optimized ,the strategy has to connect to a broker to pull data and execute trades.
This part of the strategy is often overlooked, but is very significant because some brokers allow to implement some strategy logic using their API.
A simple example would be a trailing stop loss, if the strategy contains that logic, you don't have to implement it, just use the right order type and the trailing stop loss logic is taken care of, you could implement it, of course, but that means this would be a potential place for bugs while this part of the strategy is already there for you to use. Another example would be precise timing of entry and expiration duration for limit orders, when a specific order has to be executed at a specific time, and wait to be executed for a specific time period, this logic may be tricky to implement correctly while a broker already has that as part of the API (interactive brokers API for ex.).
Broker APIs are unique, not all provide the same services, not all use the same technology (REST, socket,...), some are pending in nature, others asynchronous.
Transfer as much load as possible to the broker, saving you the time of development, the broker connection is a significant part of the strategy and should be treated as such, that means that broker selection should be on top of the list when designing a strategy.
For example, Interactive brokers can't implement grid trading strategies because it does not allow long and short on the same underlying simultaneously, but metatrader and most crypto platform APIs allow that,
Trade smart.
This part of the strategy is often overlooked, but is very significant because some brokers allow to implement some strategy logic using their API.
A simple example would be a trailing stop loss, if the strategy contains that logic, you don't have to implement it, just use the right order type and the trailing stop loss logic is taken care of, you could implement it, of course, but that means this would be a potential place for bugs while this part of the strategy is already there for you to use. Another example would be precise timing of entry and expiration duration for limit orders, when a specific order has to be executed at a specific time, and wait to be executed for a specific time period, this logic may be tricky to implement correctly while a broker already has that as part of the API (interactive brokers API for ex.).
Broker APIs are unique, not all provide the same services, not all use the same technology (REST, socket,...), some are pending in nature, others asynchronous.
Transfer as much load as possible to the broker, saving you the time of development, the broker connection is a significant part of the strategy and should be treated as such, that means that broker selection should be on top of the list when designing a strategy.
For example, Interactive brokers can't implement grid trading strategies because it does not allow long and short on the same underlying simultaneously, but metatrader and most crypto platform APIs allow that,
Trade smart.