In this article, you will learn more about creating and using Trade Strategies through the Language Editor. This is one of our five articles about different types of strategies that can be created. Click here to access an introductory article.
Regarding the two Strategy types we have mentioned so far, both are executed in Real-Time according to the asset’s price variation during the Open Market. However, Trade Strategies are only executed after each candle closes.
They are defined by the use of the Backtest functions on the Language Editor, specifically the trading functions (BuyAtMarket, BuyStop, SellShortAtMarket, etc).
Trade Strategies will simulate order sending according to the Strategy’s settings when they are executed in Backtest (by clicking on the “Play” icon on the Language Editor, either on the “Editor” or the “Split” tab).
During the open market, these strategies will only insert their respective markings, as configured in the Strategy.
Below we have an example of a simple trade strategy, in which Buy at Market is signaled if the closing is smaller than the Minimum’s Moving Average of the last 5 candles, and Sell at the market is signaled if the closing is bigger than the Maximum’s Moving Average of the last 5 candles.
if(Close > Media(5, High)) then
else if(Close < Media(5, Low)) then
To add a strategy to your chart, right-click the chart > “Add Trade Strategy” > select the strategy created.
Important: it’s worth highlighting that, currently, Trade Strategies will not automatically send orders on your markings, whether it’s on your real or simulation account. They only simulate the order sendings in Backtest and mark each of them on the chart, both on Backtest and Open Market.
How to remove Trade Strategies
Right-click the candle on your chart in which it has been added and select the option “Delete Trade Strategy (Strategy Name)”:
To read about the four other types of strategies, access the links below:
For further info about the functions mentioned above, read the following content by our partner Nelogica (available in Brazilian Portuguese). The document has a downloadable PDF file with the tool’s functions at the end of the text: Strategies Module.
We also recommend watching the introductory playlist about the module. To do so, click here (Available in Brazilian Portuguese).
Hey! Was this content helpful?
Please rate it below! It's important that we work together to make our Help Center even more complete.