66 lines
4.8 KiB
Markdown
66 lines
4.8 KiB
Markdown
---
|
|
title: Simulation Layers
|
|
summary: ""
|
|
sidebar: suite_sidebar
|
|
permalink: suite-simulation-layers.html
|
|
---
|
|
|
|
## Introduction
|
|
|
|
| Layers Manager |
|
|
| :---: |
|
|
|  |
|
|
|
|
The layers manager allows you to determine which visualization layers will be available at the Layers Panel to plot the results of testing sessions over the charts.
|
|
|
|
The layers manager and its offspring nodes must be visible in the Designer
|
|
|
|
Back on the charts, the following layers plot strategies' actions over the market data, providing a comprehensive set of visual clues showing how strategies would behave when trading.
|
|
|
|
> **NOTE:** The examples below illustrate the [*Weak-hands Buster*](https://github.com/Superalgos/Strategy-BTC-WeakHandsBuster) strategy, designed to sell BTC as prices start dropping and re-buy BTC as prices stabilize at a lower level.
|
|
|
|
## Simulation
|
|
|
|
The *Simulation* layer displays the actions of strategies throughout the tested period. Actions include the *take position event* and the management of *stop* and *take profit* in phases. By activating the Simulation layer you should be able to see something like this:
|
|
|
|
[](https://user-images.githubusercontent.com/13994516/67279788-040d5880-f4cc-11e9-9098-11496fac9c79.gif)
|
|
|
|
Notice Asset Balances in the bottom left corner of the screen. Asset A represents BTC while Asset B represents USDT.
|
|
|
|
[](https://user-images.githubusercontent.com/13994516/67279789-040d5880-f4cc-11e9-9124-9076273e6dfd.gif)
|
|
|
|
> **NOTE:** For the time being, asset balances displayed on-screen correspond to the Simulation layer that was turned on last.
|
|
|
|
The dashed line represents the duration of the trade at the price of the _take position_ event. Notice how one asset is exchanged for the other asset at the take position event, and exchanged back as the trade closes.
|
|
|
|
[](https://user-images.githubusercontent.com/13994516/67279791-040d5880-f4cc-11e9-9cac-db42c419ca0c.gif)
|
|
|
|
Notice the green horizontal lines indicating the _take profit_ value for each period (candle). _Take profit_ is managed in _phases_, marked with the corresponding icons.
|
|
|
|
[](https://user-images.githubusercontent.com/13994516/67279792-040d5880-f4cc-11e9-8487-cf390d78da92.gif)
|
|
|
|
Notice the red horizontal lines indicating the _stop_ value for each period (candle). *Stop* is managed in _phases_ marked with the corresponding icons.
|
|
|
|
[](https://user-images.githubusercontent.com/13994516/67279793-04a5ef00-f4cc-11e9-8ac1-32e98762bf5b.gif)
|
|
|
|
## Formulas and Conditions
|
|
|
|
The *Formulas and Conditions* layer helps identify which conditions are met at each candle. Notice how conditions are highlighted as the mouse pointer moves through different candles.
|
|
|
|
[](https://user-images.githubusercontent.com/13994516/67279794-04a5ef00-f4cc-11e9-9c53-cf5694701b50.gif)
|
|
|
|
It also allows to track the value of each formula, for instance, those used to dynamically manage take profit in phases.
|
|
|
|
[](https://user-images.githubusercontent.com/13994516/67279796-053e8580-f4cc-11e9-8688-4fea62c1f40b.gif)
|
|
|
|
## Strategies
|
|
|
|
The *Strategies* layer identifies trigger on and trigger off events, signaling the activation and deactivation of strategies.
|
|
|
|
[](https://user-images.githubusercontent.com/13994516/67280186-dd035680-f4cc-11e9-82e8-e52706749f5a.gif)
|
|
|
|
## Trades
|
|
|
|
The *Trades* layer marks trades with a triangle whose hypotenuse connects the price at the _take position_ event with the _exit_ price. When the trade is profitable, the triangle is green; when the _exit_ happens at a loss, the triangle is red.
|
|
|
|
[](https://user-images.githubusercontent.com/13994516/67280187-dd9bed00-f4cc-11e9-93be-74b497d8f7b5.gif) |