|
Navigation: ScanExpert Wizard > Creating a New Script Creating a New Script |
Top Previous Next |
In this section we will walk through the steps required to create a new script in ScanExpert Wizard. The script that we create will have 7 columns:
Date |
Time |
Close |
50-period LSMA (Least Squares Moving Average) |
20-period CCI |
15-period EMA of the 25-period CCI |
15-period SlowRSI of the 15-period EMA of the 25-period CCI |
| • | In the ScanExpert Viewer, click on the Wizard button to launch ScanExpert Wizard. |

Launch Wizard
| • | In the Wizard, click on the Data Streams section in the Study Selection box to open that section. Now double-click on "date", double-click on "time", and double-click on "close". Your Layout Grid should look like this: |

Select data streams by double-clicking in the Study Selection box
| • | Scroll down in the Study Selection box and click on the Averages section. Now double-click on "exponentialMA" and double-click on "leastSquaresMA" to move them over to the Layout Grid. |

Select averages by double-clicking on them in the Study Selection box
| • | In the Selection Box, scroll down to the Oscillators section and double-click on "commodityChannelIndex" to move it over to the Layout Grid. Scroll further down in the same section and double-click on "slowRSI". Your Layout Grid should now look like this: |

Select oscillators by double-clicking on them in the Study Selection box
| • | Now let's rearrange the selected indicators. First, click on the row labeled "Study05". This is the row that contains the LSMA. We want to move it up by one row so click on the green up-arrow in the vertical button bar. Now click on the row labeled "Study06" which contains the CCI and do the same thing (move it up by one row). Your Layout Grid should now look like this: |

Rearrange the order of formulas by using the up/down arrows on the vertical button bar
| • | To configure the LSMA, double-click in that row and the Parameter Dialog will be displayed. We want a 50-period LSMA so change the default period of 10 to 50 and then click on the Ok button to close the dialog. |

Configure the LSMA
| • | Double-click on the next row down containing the CCI study. In this case change the period from 10 to 25 and then click Ok to close the Parameter Dialog. |
| • | Now to create our first "study-of-a-study". Double-click in the row labeled "Study06" which contains the EMA. Change the period from 10 to 15. Click on the down-arrow in the "source1" selection box and scroll down through the list of available input sources for this study. We want to use the CCI study as input to this EMA. If you look in the Layout Grid you will see that the identifier for the CCI is "Study05". So select Study05 as the input source for our EMA and click on the Ok button to close the dialog. |

Configure the EMA
| • | Last study to configure is the SlowRSI. We want to create a 15-period SlowRSI of the EMA of the CCI. Double-click on the row labeled "Study07" which contains the SlowRSI study. Change the period to 15, leave the smoothing at 5, and select "Study06" as the input source. Again, if you look at your Layout Grid you will see that the EMA that we configured in the prior step is designated as "Study06". Click on the Ok button to close the Parameter Dialog. Your Layout Grid should look like this: |

Layout Grid with all studies selected and configured
| • | I have decided that I do not want to actually display the "Time" column in my grid so I am just going to uncheck the "Show" checkbox for that row in the Layout Grid. I also want to clean up the default Titles. Once I make my changes, the final product looks like this: |

Prevent the Time column from displaying
| • | To save this new script, click on the Generate Script button on the toolbar.. A unique script name will automatically be generated for you. You can accept that name or type in a new one. Click on the Save button and the new script will be saved into the ScanExpert scripts folder. |

Generate and save the script.
| • | That's it. We are done. Close the ScanExpert Wizard (click on the Exit button) and return to the ScanExpert Viewer module. Below is a snapshot of what this new script looks like (in the ScanExpert Editor). Each time a script is generated in the Wizard, a Date and Time stamp is written at the top of the source file. |

The script as displayed in the ScanExpert Editor
| • | Back in the ScanExpert Viewer, click on the Configuration button on the toolbar and then click on Load Script in Configuration Manager to load the new script into the Viewer. Select a portfolio of symbols from the Symbols page and click on the Done button to close the Configuration Manager dialog. Click on the Start button on the Viewer toolbar and you should see output that looks like this: |

The script as displayed in the ScanExpert Viewer
| • | You can now experiment with some of the grid formatting options. Just right-click in any column and select the Column Properties menu option. |
See also: