Difference between revisions of "Actions"

From NakedMarkets
Jump to navigation Jump to search
(Created page with "=== left|alt=CategoryRule Actions|CategoryRule Actions Summary === This Actions category contains all Default Rules used in the Backtesti...")
 
Line 2: Line 2:
This Actions category contains all [[Default Rules]] used in the Backtesting process.
This Actions category contains all [[Default Rules]] used in the Backtesting process.
<br><u>These Rules can only be used in Setup Rules</u> and help the user to process an action when a Setup Rule is triggered. None of these Rules return a value.
<br><u>These Rules can only be used in Setup Rules</u> and help the user to process an action when a Setup Rule is triggered. None of these Rules return a value.
<br>
<br>
<br>


Line 8: Line 9:
<br>For example, you can define a Setup Rule with a condition triggered when a specific Price Pattern is displayed and pause the Backtest accordingly.
<br>For example, you can define a Setup Rule with a condition triggered when a specific Price Pattern is displayed and pause the Backtest accordingly.
<br>Thus, you can launch the Backtest in automatic mode and it 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.
<br>Thus, you can launch the Backtest in automatic mode and it 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.
<br>
<br>
<br>


Line 14: Line 16:
Parameters :
Parameters :
* Message : The Message you want to print in the Backtest logs.
* Message : The Message you want to print in the Backtest logs.
<br>


=== Show Message ===
=== Show Message ===

Revision as of 01:09, 24 August 2021

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 it 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.