Reply To: Function to Assign Entry/Exit according to ruless

Optuma Forums Optuma Scripting Function to Assign Entry/Exit according to ruless Reply To: Function to Assign Entry/Exit according to ruless

#54481
MatthewMatthew
  • Topics: 5
  • Replies: 366
  • Posts: 371

Hi,

With the back tester, the Entry / Exit can be set to the price at a specific signal, but only when certain type of indicators (those that are plotted directly onto the chart, like a Moving Average, Bollinger Bands, etc) are used in the script.

When scripts using these types of indicators are setup, the entry or exit price will be placed at the indicators price (where possible).

Here is an example using a simple Close crossing above / below a 50EMA script:

Enter at Signal

Ex1

You can see the entry arrow is at the MA value, not the open or close.

Enter next day Open

Ex3

If there’s a gap up / down and the bar crosses the indicator line in one go, the Open price is used.

Scripts that don’t use chart based plot values, such as VOL() IsUp, can’t be set to enter / exit at the signal price.

Pin It on Pinterest