Loading...
 

Scripting: Programming of conditions

 Back to main page

Select from the main menu Strategy Handling-> Scripting followed by Condition -> New or Edit items to create new or modify existing conditions.

Condition Programming

 

Editing

If you wish to edit the existing condition, select the Edit submenu. You will see the following dialog box.

Edit Condition

The buttons inside this window have the following functions:

  • Click the Edit button or double-click on the entry to open the programming window for the selected condition.
  • Click the Delete button to remove the selected conditions.
  • Click the Compile button to compile all indicators, conditions, strategies and alert handlers. If you delete a condition, the system will only accept changes after you have clicked the Compile button.

 

Creating a new condition

  • Step 1. Enter the name 


Condition

 

  • Step 2. Define input parameters

Condition Parameters  

  • Step 3. Select the condition type: entry, stop or target. This will determine where the condition will appear in the SetupEscort (EntryEscort, StopEscort or TargetEscort respectively).

Additionally, you can specify the line and color for a condition

    • Entry: tba
    • Stop occurred: defines the color of the signal fluctuations ("spikes") within the indicator panel; price defines the color within the chart.
    • Target: tba


Condition Plots  

  • Step 4. Begin programming the condition-specific code.

ConditionScript

  • Step 5. Press the Scrp11 button to make the condition available.

Indicator Tab  

Search AgenaTrader Wiki

Switch Language