Actions

From NakedMarkets
Revision as of 02:13, 14 May 2022 by NMWikiWeb (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

CategoryRule Actions
Summary

This Actions category contains all Default Rules used in the Backtesting process.
These Rules can only be used in Setup Rules and help the user to process an action when a Setup Rule is triggered. None of these Rules return a value.

Pause Backtest

This Rule will pause the Backtest if the Setup Rule condition is satisfied. This is very useful when you want to speed your Backtest up.
For example, you can define a Setup Rule with a condition triggered when a specific Price Pattern is displayed and pause the Backtest accordingly.
Thus, you can launch the Backtest in automatic mode and this Rule will pause it when the Price Pattern is showed on the Chart. This avoids to press the Spacebar over and over to print every Bar, one after the other, to check if the Price Pattern is satisfying to enter the Market.

Print Message

This Rule will print the Message defined by the user in the Backtest logs. This can be used to help understanding when a Setup Rule is triggered or to check its behavior.
Parameters :

  • Message : The Message you want to print in the Backtest logs.


Show Message

This Rule will print the Message defined by the user on the screen. This can be used to help understanding when a Setup Rule is triggered or to check its behavior. This Rule is very similar to the Print Message Rule but is more invasive since you have to close the popup.
Parameters :

  • Message : The Message you want to print on the screen.