</> Codebase - AlgoWizard
StrategyQuant X platform codebase – a place to share coded customizations and extensions – among all users.
Custom Analysis
Reading a variable value in a rule triggered on Strategy Init from your strategy settings
In a rule triggered on Strategy Init, for each Assign function, StrategyQuant assign a "AssignVrbVleEntMlt" variable to your variable instead of a value. This article, we will show how to retrieve the value of the original variable in an init rule.
AlgoWizard
XML
rule triggered on Strategy Init
Init Rule
AssignVrbVleEntMlt
AlgoWizard
Set Stop Loss Except One
Sets Stop Loss to a specified level except for one order : 'Magic Number Excluded'
AlgoWizard
multiple order
Order Modify
Order
Order
Closing N Market Order
This snippets close N order starting from the MagicNumber order
AlgoWizard
Order
Order Close
Order
Set Stop Loss if OpenPrice Order is Above or below a limit price Except One
Sets Stop Loss to a specified level if the openPrice order is above (for long position) or below (for short position) a price Limit except for one order : 'Magic Number Excluded'
AlgoWizard
Order
Modify Order
Order
Set Stop Loss if OpenPrice Order is Above or below a limit price
Sets Stop Loss to a specified level if the openPrice order is above (for long position) or below (for short position) a price Limit
AlgoWizard
Order
Modify Order
Trading options
Multiple Market Order
Here is a Multiple Orders at Market snippets. It will send multiple orders at once with a different magic number.
AlgoWizard
Market Order
Multiple Market Order
Indicators / Signals
Debug a variable in AlgoWizard
If we create a template or run a strategy in AlgoWizard, we need, sometimes, to output the variable on a log to be able to debug it. Here is a function to output the variable to a log
Debug
Output Variable
AlgoWizard